Say I have a worksheet containing the following values:
A B
------
1 | A 5
2 | B 4
3 | C 7
4 | A 3
5 | C 2
6 | B 1
What function can I use to sum the values in column B if the value in column A = "A" or "B"? The only way I can think of is to use SUMIF(A:A,"=A",B:B) + SUMIF (A:A,"=B",B:B). But in my real worksheet A could contain about 15 different text strings that I want to sum the corresponding values for, so that is a lot of SUMIF's. I have played around with SUMPRODUCT but without success.
Thanks.
Bookmarks