SUMIF with OR

D

dave roth

Good morning:

I'm running XL 2007, SP1 under WinXP.

I need to sum a range based on whether another range is either "DSO" or
"OOJ", i.e =SUMIF(OR(B$2:B$40="DSO","OOJ",),C$2:C$40)This formula obviously
doesn't work, and I can't seem to get the syntax correct. Should I be using
the double hyphen here?

Thank you for your assistance.
 
B

Bernard Liengme

To sum B values if A column is "a" or "b"
1) =SUMIF(A1:A6,"a",B1:B6)+SUMIF(A1:A6,"b",B1:B6)
or
2) =SUMPRODUCT((A1:A6={"a","b"})*B1:B6)
 

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