Sum Range Moving Reference Target

Bkisley

Board Regular
Joined
Jan 5, 2017
Messages
100
I have sales by platform by month in a table
Let's say I have the following
Cell A1 = dropdown with all the months of the year
Cell A5 = Platform
Cells A6:A20 are the different platforms
Cell B5:M5 are the months of the year
Then cells B6:M20 is the sales by platform by month

What I need to do is come up with an equation (let's put it in cell N6, N7.....N20) that will do the sum range of each platform per the month I choose

So I select May in the dropdown in cell A1 in cell N6 I need to take the sum of January through May for that one platform.

I know I can do this with a very long if statement, but I don't want that. There has to be a better way

May is the 5th month so if I select May then sum the first 5 cells to the right or something like that??
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Maybe...

N6 copied down
=SUM(B6:INDEX(B6:M6,MATCH(A$1,B$5:M$5,0)))

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,223,969
Messages
6,175,680
Members
452,667
Latest member
vanessavalentino83

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