Summing 2 columns

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I can't seem to figure this out...here's an example spreadsheet.

1 blue red
2 red red
3 blue blue
4 red red
5 red blue

I trying to get the sum of red only when red is equal in both columns.
In this case the the total would be 2. I tried count and sum if but I think
my syntax is all wrong. Thanks so much..............

Terry
 
=SUMPRODUCT(--(A1:A100="red"),--(A1:A100=B1:B100))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
YOU! YOU! Your good! You my man are a genius. Many, many thanks.
Now! Can you point me to a good website so I can understand that formula?

Thanks again
Terry
 

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

Back
Top