Formula for Date Name

Iccreamann21

New Member
Joined
Sep 25, 2013
Messages
41
Office Version
  1. 365
Platform
  1. Windows
Hello, Good Morning, Happy 2024,

Quick questions, the data I am exporting has the column "Closed Date" and what I'm looking to do is extract just the name of the month.

Closed DateMonth Name
12.21.2023December


Currently, I am doing this way and it works, but Im trying to eliminate having to add the cheater cell and the AA:AB table.

Closed DateCheaterMonth Name
12.21.2023=left(A2,2)=vlookup(B2,AA:AB,2,0) <- then create a table in column in AA:AB


Any help will be appreciated. Thank you
 
apologies last question on this, (I did try to work out this out but to no avail) on the formula that was provided by @Fluff why is it if i was to change the "mmmm" to "yyyy" this gives me 2027 ?

I would have assumed to see 2024 as this what was entered for the year aspect within the DATE function

View attachment 104674
What @Fluff has done is strip out the year from a date that was input as text ("2024/12/21"). But the excel date value of that date is 45647.
The left two characters of that number are 45. So the DATE function in the formula inserts 45 as the months argument is calculated using:
DATE(2024,45,1) which calculates to 2024/09/01. Then the text conversion formula changes that date value to 4 digit years, so "2027".
If you use the exact same data in cell A2 but ask for the "mmmm" long month name you'll get SEPTEMBER and not DECEMBER.

what is below does not have the checks for cell being blank or not.

Book1
ABCDEF
1
2Entered as a date:Date ValueLeft 2DATE(y,m,d)
312/21/202445647452027-09-012027September
4
5Entered as textcell contentsleft 2Date(y,m,d)
612/21/202412/21/2024122024-12-012024December
Sheet1
Cell Formulas
RangeFormula
B3,B6B3=A3
C3,C6C3=LEFT(A3,2)
D3,D6D3=DATE(2024,LEFT(B3,2),1)
E3,E6E3=TEXT(DATE(2024,LEFT(B3,2),1),"yyyy")
F3,F6F3=TEXT(DATE(2024,LEFT(B3,2),1),"mmmm")
 
Upvote 0

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I would have assumed to see 2024 as this what was entered for the year aspect within the DATE function
Firstly the formula was written for the OP who had a text date with the month as the left 2 digits. By the looks of things you have a real date which makes a very big difference & even if your date was text you have the day as the 1st 2 digits not the month.
 
Upvote 0
@awoohaw appreciate the detailed the response, I shall go over this as it seems to be going over my head at the min (put it down to rust as not having used Excel over the christmas/new years period) never really had an issue with dates in excel but this seems to have thrown me but shall read over your example, thanks once again
 
Upvote 0
Firstly the formula was written for the OP who had a text date with the month as the left 2 digits. By the looks of things you have a real date which makes a very big difference & even if your date was text you have the day as the 1st 2 digits not the month.

Hi Fluff yeah I did notice the OP had used American date format but I was using the year as an example as this was in the same location whether US or UK format but shall go over the response provided by awoohaw as I think its more an understanding of the manner of how the date is entered, as text etc

as always appreciate the response
 
Upvote 0
Here is one more solution to the original question for this thread...
Excel Formula:
=IFERROR(TEXT(28*LEFT(A2,2),"mmmm"),"")
 
Upvote 0

Forum statistics

Threads
1,215,106
Messages
6,123,124
Members
449,097
Latest member
mlckr

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