Is there a way to sum values in an index-match-match array with duplicate values in one of the criteria? For example, in row criteria of the total array, there are several duplicate values:

1 2
Food 100 200
Food 50 100
Drinks 10 20

I would like the formula to return:

1 2
Food 150 300
Drinks 10 20

Any help is appreciated!