Formula to return month number for the next 12 months

Marklarbear

Board Regular
Joined
Nov 6, 2003
Messages
112
Office Version
  1. 365
Platform
  1. Windows
Hi Brains Trust,

I'm trying to work out a formula that completes column B (based of current date) and then have the formula in column C return the month name as a txt value... hopefully that makes sense...

I can do the basic formulas to start off in cells A2 and B2 - but a bit stumped after that.....


1707891010279.png



What i'm trying to achieve is that whatever day of the year it is, columns B & C adjust accordingly....

cheers
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Since you are using XL365, put this single formula in cell B2 and it will generate the full result you are looking for...
Excel Formula:
=LET(n,MOD(SEQUENCE(12,,MONTH(A2))-1,12)+1,HSTACK(n,TEXT(28*n,"mmm")))
 
Upvote 1
Solution
Or you could just format columns B & C as Custom: m (for column B) and mmm (for column C)
Book1
ABC
1Today's dateMonth NumberMonth Name
214/02/20242Feb
Sheet1
Cell Formulas
RangeFormula
A2A2=TODAY()
B2B2=A2
C2C2=A2
 
Upvote 0
Excel Formula:
=LET(d,EDATE(A1,SEQUENCE(12,,0)),HSTACK(MONTH(d),TEXT(d,"mmm")))
 
Upvote 0
Since you are using XL365, put this single formula in cell B2 and it will generate the full result you are looking for...
Excel Formula:
=LET(n,MOD(SEQUENCE(12,,MONTH(A2))-1,12)+1,HSTACK(n,TEXT(28*n,"mmm")))
Cheers Rick - works a treat!
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

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