Trying to summarize values based on category matches without using helper cells
Example:
| Charges to Sum | | Category Lookup | | Desired Output |
| company | amount | | company | category | | category | sum |
| --- | --- | --- | --- | --- | --- | --- | --- |
| A | 100 | | A | Utility | | Utility | 110 |
| B | 50 | | B | Credit Card | | Credit Card | 50 |
| C | 200 | | C | Loan | | Loan | 275 |
| D | 10 | | D | Utility | | | |
| E | 75 | | E | Loan | | | |
I've been able to accomplish this using 'helper' cells (the extra vlookup column shown below) but would like to have a single formula to do the summarization instead, I've tried various combinations of XLOOKUP, SUMIF, SUMIFS, VLOOKUP, just can't seem to get the correct combination.
| Charges to Sum | | Category Lookup | | Desired Output |
| company | vlookup | amount | | company | category | | category | sum |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| A | =vlookup(a3,$e$3:$f$7,2,false) | 100 | | A | Utility | | Utility | =sumif(b3:b7,"="&h3,c3:c7) |
| B | | 50 | | B | Credit Card | | Credit Card | 50 |
| C | | 200 | | C | Loan | | Loan | 275 |
| D | | 10 | | D | Utility | | | |
| E | | 75 | | E | Loan | | | |