How can you use count with an array formula similar to using sum

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I understand how to a mutiple condition sum using an array formula following
the format that is created by the conditional simif wizard. Can count use
multiple conditions in the same way, and if so how ?
 
Yes, you can have multiple criteria included within the Countif() function,
using it in conjunction with the Sum() function.

Count the items in Column A, where their color, in Column B, is *either*
Red, or Blue, or White:

=SUM(COUNTIF(B:B,{"Red","White","Blue"}))

This is *not* an array formula!
 
Thanks, but what if you have a third column that contains names and you only
want to count items that relate to either "Red" or "Blue" for column B and
"Dave " or "Steve" for column C.
 
One way

=SUMPRODUCT(--((B2:B200="Blue")+(B2:B200="Red")>0),--((C2:C200="Dave")+(C2:C200="Steve")>0))

--
Regards,

Peo Sjoblom

(No private emails please)
 

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

Back
Top