Automatically Update Sum Rannge

DALLOW

New Member
Joined
Apr 16, 2012
Messages
3
Hey everyone...I've trawled around the site but can't find an answer to my specific problem. Hopefully someone can help!

I would like to calculate the Year To Date total without having to manually adjust the sum range. For instance in Jan the YTD calc is just col M; in Feb the YTD calc is sum(L:M); in March, sum(K:M) etc.

M will remain constant in the formula but I need to find a way looking up the data in Jan column which moves every month. I think HLOOKUP is the way to go but the variations of hlookup, offset, column combinations I've tried have not been successful.

Hope you guys can help.

Thanks
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Welcome to the board..

Do you want it to be based on just today's current month?

Try

=SUM(OFFSET($M2,0,1-MONTH(TODAY()),1,MONTH(TODAY())))
 
Upvote 0
Thanks for the speedy reply.

I've tried to adjust your formula but with no success. I am not using calendar months as the data is labelled with day,month and year and is text rather than Date formatted.
 
Upvote 0
why did you try to adjust it?

It doesn't matter how your data is labled, it's based on whatever the current real world month is.

The only thing you should udjust is maybe the row#
=SUM(OFFSET($M2,0,1-MONTH(TODAY()),1,MONTH(TODAY())))
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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