Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Edwin Castro
 
Posts: n/a
Default Conditional count of rows dependent on multiple columns

Hi

I'm want to count rows in a worksheet given the following condition:
count row if ((column A has "*approved*") AND (column B,C,D, or E has
"failed"))

In the second condition I'd like to count the row if any of those
columns has "failed".

I'm trying to setup a function (or somethign) where I can then get a
total count given a range of rows.

Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default Conditional count of rows dependent on multiple columns

If there will only be one occurrence of 'Failed' in any row, try...

=SUMPRODUCT((A1:A10="Approved")*(B1:E10="Failed"))

Otherwise, try...

=SUM((A1:A10="Approved")*(MMULT(--(B1:E10="Failed"),TRANSPOSE(COLUMN(B1:E
10)^0))0))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article . com,
"Edwin Castro" wrote:

Hi

I'm want to count rows in a worksheet given the following condition:
count row if ((column A has "*approved*") AND (column B,C,D, or E has
"failed"))

In the second condition I'd like to count the row if any of those
columns has "failed".

I'm trying to setup a function (or somethign) where I can then get a
total count given a range of rows.

Any ideas?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Count Rows with defined values in multiple columns ryesworld Excel Worksheet Functions 9 November 8th 05 06:32 PM
Sort multiple rows by data in certain columns lbabli Excel Discussion (Misc queries) 1 October 28th 05 10:48 PM
How to reverse order of rows and columns Johnny Excel Discussion (Misc queries) 3 September 11th 05 03:42 PM
inserting columns within certain rows only crimsonkng Excel Discussion (Misc queries) 4 July 14th 05 05:13 PM
Count Rows with Conditional Format? Ken Excel Discussion (Misc queries) 3 March 24th 05 02:27 PM


All times are GMT +1. The time now is 11:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"