SUMPRODUCT

C

Castor

Hello:

I have the following problem:

Column A Column B
A 1
A 2
B 1
B 1
B 2
B 2

I want to count all instances when column A = B and Column B = 1 i.e. the
answer should be 2
I am using the following:

=SUMPRODUCT((A1:A200="B")*(B1:B200=1))

Tks a lot! - Saad
 
D

Dave Peterson

Check for extra stuff in each of the cells. (Spaces, especially).

Check to see if those 2's are just formatted to show 2 but the actual value is
different?
 

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