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
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,060
Latest member
mtsheetz

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