counting with multiple criteria

A

Andyd74

I want to count the number of cells in column B, where two criteria is
true.

I.e. i want to count the number of cells in column B that equal
01/01/2006 where A7:A3000 = C7 and also B7:B3000 = 01/01/2006

Thanks

Andy
 
B

Bob Phillips

=SUMPRODUCT(--(A7:A3000="C7"),--(B2:B3000=--"2006-01-01"))

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)
 
G

Guest

Hi

Try this:
=SUMPRODUCT(--(A7:A3000=$C$7),--(B7:B3000=DATEVALUE("01/01/2006")))
You have column B twice in your explanation, by the way. I've put it in
once.
I've also assumed that your reference to C7 is absolute.

This is untested.

Hope this helps.
Andy.
 

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