countif with multiple criteria

  • Thread starter Thread starter Sarah (OGI)
  • Start date Start date
S

Sarah (OGI)

I'd like to be able to count the number of "Y" in column H where the values
in column D are equal to 12, 21, 60 or 23.

Any ideas would be appreciated.
 
Try :
=SUMPRODUCT(((D1:D7=12)+(D1:D7=21)+(D1:D7=23)+(D1:D7=60))*(F1:F7="y"))
HTH
Daniel
 

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