countif problem

I

ims

Dear all,

I have a worksheet

A B
1 1/1/03 John
2 1/1/03 John
3 2/3/03 John
4 2/3/03 Mary
5 2/3/03 Jack

What's the formula if I want to count the total number each name appears
per date?

thanks

ims
 
T

Tom Ogilvy

=sumproduct(--($A$1:$A$5=DateValue("1/1/03)),--($B$1:$B$5="John"))

You could replace the DataValue and "John" entries with cells containing
those values.
 
I

ims

I got it, thank you Tom~~

ims



Tom Ogilvy said:
=sumproduct(--($A$1:$A$5=DateValue("1/1/03)),--($B$1:$B$5="John"))

You could replace the DataValue and "John" entries with cells containing
those values.
 

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