Convert Month name to date - last day of the month

ifeelalone

New Member
Joined
Mar 6, 2017
Messages
31
Is there any way to convert a Month name to date format? It should be the last day of that month and current year.

Example:

June should be converted to 06/30/2019
July should be converted to 07/31/2019
 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
First shot (must be something more elegant) with month name in column A, fill this down:

Code:
=DATE(2019,MONTH(DATEVALUE(A1&" 1")),DAY(EOMONTH(DATE(2019,MONTH(DATEVALUE(A1&" 1")),1),0)))

Or, for the future:

Code:
=DATE(YEAR(DATEVALUE(A1&" 1")),MONTH(DATEVALUE(A1&" 1")),DAY(EOMONTH(DATE(YEAR(DATEVALUE(A1&" 1")),MONTH(DATEVALUE(A1&" 1")),1),0)))
 
Last edited:
Upvote 0
First shot (must be something more elegant) with month name in column A, fill this down:

Code:
=DATE(2019,MONTH(DATEVALUE(A1&" 1")),DAY(EOMONTH(DATE(2019,MONTH(DATEVALUE(A1&" 1")),1),0)))

Or, for the future:

Code:
=DATE(YEAR(DATEVALUE(A1&" 1")),MONTH(DATEVALUE(A1&" 1")),DAY(EOMONTH(DATE(YEAR(DATEVALUE(A1&" 1")),MONTH(DATEVALUE(A1&" 1")),1),0)))

That worked! Thank you!
 
Last edited:
Upvote 0
It's a great thing that Rick's here to keep these long-winded lines to a minimum!!! Thanks, Rick, as usual!

He obviously doesn't sleep much as it's VERY LATE in NJ. It's late in CA (for me), so hitting the sheets now.
 
Last edited:
Upvote 0
He obviously doesn't sleep much as it's VERY LATE in NJ. It's late in CA (for me), so hitting the sheets now.
Sleep? I am not familiar with that term, what is it? :lol: Yes, you are right, I don't sleep much, somewhere between 4 and 5 (usually closer to 4) hours a night.

I see you live in La Jolla, California. I just finished watching a movie and turned on CNN and see there was another, much larger earthquake in Ridgecrest which is about 225 miles from your city, so I am guessing you were not affected by it.
 
Last edited:
Upvote 0
Nope, neither quake had any shaking here. San Diego and the surrounds are not on a fault line so generally we remain in Paradise.
I use to live in NYC (Greenwich Village).
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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