Sum index multiple criteria

EmileEA

New Member
Joined
Apr 7, 2014
Messages
7
Hi,

I have a big sales report which expands every week. It shows the sales in different weeks (CYWeek) for each of the 15 stores.

Now I want to make a graph to show the sales for each store during the year, so It's easy for me to see trends for all different stores.

I have the criteria CYweek in the first column and the store name in the rows (see example excel sheet attached).
A simple index match will give me the first match of the cyweek and the store name. But I need it to sum up for all weeks.

So in the attached example in url (Imgur: The most awesome images on the Internet) I want the following for Store 2:

201614: 11
201615: 17
201616: 12

Could anyone help me with the correct formula which also uses as little calculation power as possible since it's becoming a huge file.
My life would be so much easier if anyone could help me and I would be forever grateful :)

Regards,

Emile

4l2ZF
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi Emile,

This is my solution, please test it.


Excel 2016 (Windows) 64 bit
ABCDEFGHIJK
1Store1Store2Store3Store4201614201615201617
22016142529Store2402422
32016143827Store3172118
4201614210610
52016142837
62016146518
72016149431
82016157174
920161576210
1020161581026
1120161510646
122016154163
132016172521
1420161710311
152016176759
162016174268
1720161742310
182016172315
Sheet1
Cell Formulas
RangeFormula
I2=SUMIF(OFFSET($A$1,1,0,COUNT($A:$A),1),I$1,OFFSET($C$1,1,MATCH($H2,$C$1:$F$1,0)-1,COUNT($A:$A),1))


Asia
 
Upvote 0
Hi Emile,

This is my solution, please test it.

Excel 2016 (Windows) 64 bit
ABCDEFGHIJK
1Store1Store2Store3Store4201614201615201617
22016142529Store2402422
32016143827Store3172118
4201614210610
52016142837
62016146518
72016149431
82016157174
920161576210
1020161581026
1120161510646
122016154163
132016172521
1420161710311
152016176759
162016174268
1720161742310
182016172315

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
I2=SUMIF(OFFSET($A$1,1,0,COUNT($A:$A),1),I$1,OFFSET($C$1,1,MATCH($H2,$C$1:$F$1,0)-1,COUNT($A:$A),1))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Asia


Thanks a lot for this solution, you made my day!

<3
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,826
Members
449,190
Latest member
rscraig11

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