Reputation: 15061
I have a two tabs (data) and (summary).
My data tab looks something like this (mine has more columns but this gives you an idea:
The column order repeats every 9 columns.
In my summary tab I want it split out and a SUM of the 8th of 9 column grouped by the 1st of 9 column.
Example output from the numbers above:
ALPHA 45
BETA 53
CHARLIE 45
I have tried doing a VLOOKUP
but this just brings back a single value.
How can I do a VLOOKUP
that sums all found?
Upvotes: 2
Views: 81
Reputation: 14383
As a crude solution, SUMIF should do the job.
=SUMIF(A1:A7,"ALPHA",H1:H7) + SUMIF(A1:A7,"ALPHA",Q1:Q7) + SUMIF(A1:A7,"ALPHA",Z1:Z7)
If the total number of column groups isn't known you may need something more elaborate.
Upvotes: 2