SUM a Group in a list

Plokimu77

Board Regular
Joined
Oct 1, 2014
Messages
138
A
B
C
D
E
F
G
1
chi.aDal.a
2
chi.bDal.bDen.
3
Stores
Volume
Chicago
Dallas
Denver
4
Chi. a 2679
5
Dal. a4
6
Chi. b4
7
Dal. b3
8
Den.9

<tbody>
</tbody>

I would to know of a formula that would sum up the totals for a group, that is define in some cells.
For example if the Chicago group consist of stores Chi.a and Chi.b that are defined in cells E1 and E2.
I would the total of both groups in cell E4. ie. Chi.a + Chi.b = 6
I tried the sumifs but it only work with one criteria. =SUMIFS(B4:B8,A4:A8,E1)
as soon an put the second criteria (cell E2) it returns a 0.

Any help would be appreciated.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try

E4
=SUMPRODUCT(SUMIF($A$4:$A$8,E$1:E$2,$B$4:$B$8))
copy across

Note that E1 and E2 must be equal respectively to A4 and A6. i.e. , Chi. a and Chi. b (not chi.a or chi.b)
The same idea for F1, F2 ang G2

Hope this helps

M.
 
Upvote 0
One way to do it (with 2 criteria)


Excel 2010
ABCDEFGH
1chi.aDal.a
2chi.bDal.bDen.
3StoresVolumeChicagoDallasDenver
4Chi.a2679
5Dal. a4
6Chi.b46
7Dal. b3
8Den.9
Sheet5
Cell Formulas
RangeFormula
H6=SUMIF(A4:A8,E1,B4:B8)+SUMIF(A4:A8,E2,B4:B8)


Note also that in the text you provided, the criteria are "chi.a and chi.b" but real data has a space before the a and b like "chi a" and "chi b"
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top