newbie - custom format help

matthewtball

New Member
Joined
Sep 9, 2008
Messages
1
I have a spreadsheet that has a column that has a date such as 0510; which represents YR MO. I would like this column to display as follows: 2005 October.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hello matthew, welcome to MrExcel

Unless your data is already a formatted date - i.e. formatted as yymm - you won't be able to do this with cell formatting. Assuming that there will always be 4 digits, and that data is text formatted and represents dates from 2000 onwards you could try this formula to convert in another cell

=TEXT(TEXT(20&A1&"01","0000-00-00"),"yyyy mmmm")

[edit: where A1 contains your data]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,924
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