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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,215,830
Messages
6,127,133
Members
449,361
Latest member
VBquery757

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