count if

S

scooter

I am looking to count the number of times a value(ie "3") appears in one
column only if the column next to it has a different specific value(ie
"bob").
column value1 value2
12 3 tim
13 3 tim
14 2 tim
15 3 bob
16 4 bob
17 3 bob
So in this case, it would count 2.
 
T

T. Valko

Try something like this:

...........A..........B
1........2.........Bob
2........3.........Tim
3........3.........Bob
4........1.........Bob
5........3.........Bob

=SUMPRODUCT(--(A1:A5=3),--(B1:B5="Bob"))
 

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