Date to month on a specific date

mickeystanford_alumni

Board Regular
Joined
May 11, 2022
Messages
129
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
Hi everyone,

I am trying to find a formula that gives me the month in a format =TEXT(A1,"MMM")
Where A1 is =TODAY() --> 15.09.2022.

In this case, it would give us SEP. However, I want to tell excel that if the day on the month is before the 15th, so from 1st-14th then to report SEP, but if day is on the 15th or after, to report OCT (so the month after).

Could you provide any guidance?

Thank you!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try
Excel Formula:
=TEXT(DATE(1,MONTH(A1)+(DAY(A1)>14),1),"MMM")
 
Upvote 0
Hi Peter, thank you for the prompt response. It is perfectly working.
What if I would like to drag down the formula:
A2=TEXT(DATE(1,MONTH(A1)+(DAY(A1)>14),1),"MMM")
A3= ? (NOV)
A4= ? (DEC)
 
Upvote 0
A2 & copy down:
Excel Formula:
=TEXT(DATE(1,MONTH(A$1)+ROWS(A$2:A2)*(DAY(A$1)>14),1),"MMM")


Or, if you wanted say 12 rows of this, just put this in A2 and no need to copy down
Excel Formula:
=TEXT(DATE(1,MONTH(A1)+SEQUENCE(12)*(DAY(A1)>14),1),"MMM")
 
Upvote 0
Hi Peter, great help.
I am actually complicating this a bit more, basically I do not want all the months 1 by 1, but want to tell the formula to skip some months. It would look like:
OCT
NOV
DEC
FEB
APR

So basically trying to create an index here. Is there any way that with the formula above, I just make a manual formula for each month linked to the first one, so I create the index there?

Let me know if clear...and thank you so much again.
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,956
Members
449,057
Latest member
FreeCricketId

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