Countif Function using more than 1 criteria

C

carl

Hi. Can the CountIf function be used with more than 1
criteria.

For example. If I wanted to countif a cell contained Black
OR Blue ?

Thank you in advance.
 
F

Frank Kabel

Hi
some solutions
=COUNTIF(A1:A1000,"Black")+COUNTIF(A1:A1000,"Blue")

or
=SUMPRODUCT((A1:A1000="Black")+(A1:A1000="Blue"))

or
=SUMPRODUCT(--(A1:A1000={"Black","Blue"}))
 

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