COUNTIF Statement with Multiple Conditions in Different Ranges

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

Guest

I'd like to count the number of values where:

Column A equals X
AND
Column B equals y

(for any given row)

Is this possible?
 
Hi
You'll need to use SUMPRODUCT() for this. eg:
=SUMPRODUCT((A2:A1000="X")*(B2:B1000="Y"))
You cannot use full column references eg A:A and the references you do use
must be the same size.
 

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