I'd like to be able to use SUMPRODUCT to sum up a range of cells for which its category corresponds to a list of my criteria.
For example (see attached), I want to sum up all cells in column B with a Category of A, B, or C (which is listed out in a range in column A), resulting in an output of 325 (orange cells). I'd like to be able to add whatever category I want to Column A, so the sumproduct criteria must refer to a range of cells. In other words, I can use OR in the sumproduct to achieve the same effect but I'd rather not because the Criteria lists can get quite large.
sumproduct.png
I believe the formula will look something like:
=SUMPRODUCT(B2:B10,--(C2:C10=??????))
Bookmarks