Hi, I am trying to sum up the amounts belonging to certain categories through their ID number but cannot think of any way to find all matching items - xlookup only finds the first item and I can't have a spilling function like filter. The ID number/amount table and ID No./category table must remain separate table. My current function only finds the first result and does not sum all options. I added some sample data (not actual tables or amounts I'm working with) to try to illustrate my issue:
Red should equal 155 but the formula only shows 23 (the first result) and so on.
Any help would be greatly appreciated.
ID No. | amount |
1245 | 23 |
2345 | 45 |
3453 | 56 |
6546 | 78 |
7454 | 89 |
6335 | 87 |
7456 | 98 |
ID No. | category |
1245 | red |
2345 | red |
3453 | green |
6546 | blue |
7454 | orange |
6335 | red |
7456 | blue |
category | total amount |
red |
Excel Formula:
|
green |
Excel Formula:
|
blue |
Excel Formula:
|
orange |
Excel Formula:
|
Red should equal 155 but the formula only shows 23 (the first result) and so on.
Any help would be greatly appreciated.