Conditional count of rows dependent on multiple columns

E

Edwin Castro

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?
 
D

Domenic

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top