countif

G

Guest

I am trying to count the number of times data appears in a column based on
criteria from another column.

Ex: Count the number of Times "Yes" occurs for 11/01/05
A B
11/01/05 Yes
11/01/05 Yes
11/01/05 No
11/04/05 Yes
11/04/05 No

Your assistance is appreciated.
 
D

Domenic

Try...

=SUMPRODUCT(--(A1:A5="2005/11/01"+0),--(B1:B5="Yes"))

or

=SUMPRODUCT(--(A1:A5=C1),--(B1:B5="Yes"))

....where C1 contains the date of interest.

Hope this helps!
 
G

Guest

Many thanks this worked great!

Domenic said:
Try...

=SUMPRODUCT(--(A1:A5="2005/11/01"+0),--(B1:B5="Yes"))

or

=SUMPRODUCT(--(A1:A5=C1),--(B1:B5="Yes"))

....where C1 contains the date of interest.

Hope this helps!
 

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