countif for 2003

M

mbreter

I am trying to write a countif formula using two criteria in seperate cells.
I realize excel 2007 has countifs formula that will allow you to use multiple
ranges and criteria for this but is there a way to do the same thing using
excel 2003?
 
T

T. Valko

Try this:

=SUMPRODUCT(--(A1:A10="x"),--(B1:B10="y"))

Using cells to hold the criteria:

D1 = x
E1 = y

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10=E1))
 

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