A | B | C | D | E | F | G | ||
1 | Sales | Amount Sold | John | Paul | Adam | |||
2 | John | Apples | ||||||
3 | Apples | 5 | Oranges | |||||
4 | Oranges | 6 | Pears | |||||
5 | Pears | 4 | ||||||
6 | ||||||||
7 | Paul | |||||||
8 | Apples | 3 | ||||||
9 | Oranges | 8 | ||||||
10 | Pears | 5 | ||||||
11 | ||||||||
12 | Adam | |||||||
13 | Apples | 5 | ||||||
14 | Oranges | 8 | ||||||
15 | Pears | 7 |
<tbody>
</tbody>
Hey guys,
I have a whole bunch of sales data. I'd like to consolidate it into the table on the right (D1:G4). In cell E2, I tried putting in this formula:
=SUMIFS($B:$B,$A:$A,$D2,$A:$A,E$1)
but it keeps returning a 0
Thanks in advance.