Date formatting in excel

tatiana131

New Member
Joined
Apr 21, 2015
Messages
5
Hello,

I get huge amounts of data formatted with the date as 2011-03 all in one cell. I need to convert that 2011-03 into 20110331 - i.e. yyyy mm last day of month. Right now we are all doing this manually, for some reason, which takes hours.

Is there a formula that would accomplish this? I found an old thread with [FONT=&quot]=text(c1,”emmd”) as a suggestion, but that just gives me a #NAME? error message.

Thanks.
[/FONT]
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
When you select one of the dates, is the value as seen in the formula bar a date like mm/dd/yyyy or dd/mm/yyyy or is it still yyyy-mm
 
Upvote 0
That totally worked!!!! Thank you bunches. Not the most concise formula, but it gets the job done.

You rock.
 
Upvote 0
Another one for what it's worth...

=TEXT(EDATE(A1&"-01",1)-1,"yyyymmdd")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,217,343
Messages
6,136,007
Members
449,977
Latest member
altizerc2196

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