I'm trying to make Excel perform a typical database reporting function, but so far I'm striking out.
I have on 1st sheet a grid of numbers, and each row has a category label:
I have on 2nd sheet a list of possible category labels w/ attributes:
I want to write a formula to sum all the rows that have categories matching a given attribute. For example, given the attribute blue which is linked to cat1 & cat3, sum all rows that have cat1 or cat3.
I've tried to accomplish this with an array formula as follows. Say there are 50 categories in sheet2 and 100 rows in sheet1, spacing added for legibility:
This formula does NOT work. But I can't figure out why not, and I can't think of another way of approaching the problem. (I'm trying to not touch the structures of sheet1 & sheet2).
Can anyone tell me why the formula doesn't work? Or how to solve the problem?
Bookmarks