Reputation: 1
In Excel/Googlesheet table where row & column headers have duplicated values, how can we sum up cells in range B2:F6 by looking at each cell's row & column headers, aiming a table
Upvotes: 0
Views: 438
Reputation: 1952
Assuming the target table is located at A8:D11, with B8 = a, C8 = b, D8 = c and so on for x, y, z..
=SUMIF($B$1:$F$1,B$8,$B2:$F2)
and drag till J6 .=SUMIF($A$2:$A$6,$A9,H$2:H$6)
and drag till D11.Done.
Hope it helps.
Upvotes: 0