Converting Date Format

nickwood1066

Board Regular
Joined
Aug 21, 2009
Messages
55
Hi,

Does anyone know how I can convert "201205" into "May - 2012"?

Do I have to concatenate?

Best regards

Nick
 

Some videos you may like

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try like this - format the result cell as Custom

mmmm - yyyy

Sheet2

*AB
1201205May - 2012

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:96px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B1=DATE(LEFT(A1,4),RIGHT(A1,2),1)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
To return a text entry you can use:

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

To return a serial date you can use:

=TEXT(A1&"01","0000-00-00")+0

formatted as mmmm - yyyy.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,023
Messages
5,622,268
Members
415,888
Latest member
Ifeanyi

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
Top