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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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