Formula problem

J

Joyce

I am having problems coming up with a formula
Here is my scenario

If A2:A5 = Apples and B2:B5 = Oranges, then count the number of oranges in
Column B
 
B

Bob Phillips

=SUMPRODUCT(--(A2:A5="Apples"),--(B2:B5="Oranges"))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
G

Gaurav

There might be a better way but this one should also work.

=SUMPRODUCT(--(A1:A5="Apples"),--(B1:B5="Oranges")*(B1:B5="Oranges"))
 

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