Hi guys,
I know this question has been asked before, but I need a bit more help and explanation. What I really need is a SumIfs-like function that calculates the product of a column, only if certain multiple criteria are met. I have three columns of data; a Category (A-D), a State (many of them, this is just a sample I made up, so I just used WA and WV as an example, but I have way more data than this and multiple states, which is why I don't simply sort the data), and a Percentage Change:
Product Data.xls
What I would like to do is multiply together the % Changes for each of the Categories A-D for WA and VA separately, to get:
Product Results.xls
So I have 2 columns that contain "criteria" (two states and four categories) that need to be met in order for the multiplication to occur. I've tried combinations of the PRODUCT function in Excel along with the IF function and the AND function, but I can't seem to get the right combination, especially because the two criteria must be searched in a range, and the PRODUCT function must be pointed to a range of data as well. If I had a ProductIfs function, this is what I would want:
=PRODUCTIFS(C2:C17,A2:A17,"A",B2:B17,"WA") to get the results for category A for WA.
I've tried using an IF inside of a product function:
=PRODUCT(IF(AND(A2:A17 = "A", B2:B17 = "WA"), C2:C17, 1))
but that doesn't seem to work. Anyone have any other ideas? Or any idea why the above function doesn't work properly?
Thanks in advance for your help!
Bookmarks