Sum formula change when you go into a new month

mickyd67

Board Regular
Joined
Jul 13, 2011
Messages
80
Office Version
  1. 365
Platform
  1. Windows
Might be an easy one, but I've got a mental block

Looking for a formula that will move to the next column of data when we move into a new month

  • i.e. the current formula in Column N is =SUM(B1:J1)
  • When we get to next Tuesday I need to change that manually to =SUM(B1:K1)

Easy when it's one line of data like below, but I have a file with multiple calculations & rows so trying to find a formula driven solution

Is there a way to do it?

Demand.png
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try this:

Book1
ABCDEFGHIJKLMN
1JanFebMarAprMayJunJulAugSepOctNovDecYTD
251015202530354045505560225
Sheet1
Cell Formulas
RangeFormula
N2N2=SUM(B2:INDEX(B2:M2,MATCH(TEXT(TODAY(),"mmm"),$B$1:$M$1,0)))
 
Upvote 0
How about
Excel Formula:
=SUM(B2:INDEX(B2:M2,,MONTH(TODAY())))
 
Upvote 0
Hi both - thanks a lot for replying. Apologies it took me so long to get back.

I got both versions to work, which is great.

I do have a couple of caveats though... :cautious:

What would the formula need to be if I wanted to have this calculation happen when my year doesn't run from Jan to Dec, but a fiscal year from April to March?

Also - what if I wanted to look at demand YTD but also include the next month, and another formula to include the following month so I would have

Demand YTD
Demand YTD+1
Demand YTD+2

:)
 
Upvote 0
What would the formula need to be if I wanted to have this calculation happen when my year doesn't run from Jan to Dec, but a fiscal year from April to March?
Phuoc's formula should already do that.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,174
Members
452,615
Latest member
bogeys2birdies

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