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
 
How about
Excel Formula:
=IF(A2="","",TEXT(DATE(2024,LEFT(A2,2),1),"mmmm"))
Money in the bank! That worked like a champion. You are the real MVP!

This doesn't matter as much, but how do I get the month name to show in all uppercase?
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
For caps use
Excel Formula:
=IF(A2="","",UPPER(TEXT(DATE(2024,LEFT(A2,2),1),"mmmm")))
 
Upvote 0
At work, I can't use XL2BB.

I did not. What I have is 12/21/2023 Date format. Cell A2 is in general format, still showing "December" as OP wanted. Cell D1 just includes
VBA Code:
=FORMULATEXT(B1)

Edit. I see my mistake. OP is using 12.21.2023 as opposed to 12/21/2023. My bad!
I was equally bad. I though your post was from the OP! Best wishes.
 
Upvote 0
You can use a lookup
With E2, you do not need the Lookup table.

T202401a.xlsm
ABCDEFGH
1Closed DateColumn41JANUARY
212.21.2023DECEMBERDECEMBER2FEBRUARY
301.21.2024JANUARYJANUARY3MARCH
44APRIL
55MAY
66JUNE
77JULY
88AUGUST
99SEPTEMBER
1010OCTOBER
1111NOVEMBER
1212DECEMBER
13
1g
Cell Formulas
RangeFormula
D2:D3D2=LOOKUP(--LEFT(C2,2),$G$1:$G$12,$H$1:$H$12)
E2:E3E2=LOOKUP(--LEFT(C2,2),{1;2;3;4;5;6;7;8;9;10;11;12},{"JANUARY";"FEBRUARY";"MARCH";"APRIL";"MAY";"JUNE";"JULY";"AUGUST";"SEPTEMBER";"OCTOBER";"NOVEMBER";"DECEMBER"})
 
Last edited:
Upvote 0
A quick question on this (I was looking at this trying to solve) would anyone know why when I try to do a search for the "/" this gives me #VALUE

In my mind (probably the wrong approach) I was hoping to find the month value of 09 by doing a search and then attaining the month this way but tripped up at the first hurdle when I noticed the SEARCH function wouldn't pick up the "/"

1704815831682.png
 
Upvote 0
I f the date is a real date, then the / is just part of the format & does actually exist.
 
Upvote 0
Thanks Fluff! (assume you mean doesn't exist)
 
Upvote 0
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

1704820838563.png
 
Upvote 0

Forum statistics

Threads
1,215,125
Messages
6,123,195
Members
449,090
Latest member
bes000

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