sum over a changing range

almagg

Well-known Member
Joined
Aug 21, 2002
Messages
705
so the fiscal year is Oct - Sep
as new data appears each month i want the YTD column to update.
right now i have formulas extended thru all the months e.g., Aug & Sep columns have values in them but they are there because of the formulas.

so i want the YTD to be summing Oct - Jul

ColC..........ColD.....ColE..........................................ColM
YTD..........Oct.......Nov..........................................Jul
1000..........50........100..........................................75

i thought nof starting with a 'Match'

=MATCH("*"&TEXT(TODAY()-DAY(TODAY()),"mmm") &"*",D2:Q2,0)

which returns '10' the correct column for Jul.
but then i got stumped.

thanks
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
The OFFSET function can be used to for a summing over a range that is expanding and contracting. One of its arguments will be the number of columns - it's the last argument in fact.
 
Upvote 0
got it.

=SUM(OFFSET(D3,0,0,1,MATCH(TEXT(TODAY()-DAY(TODAY()),"mmm"),D2:Q2,0)))

thanks
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,854
Members
452,948
Latest member
UsmanAli786

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