Rearranging a date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any simple way to convert text in Excel

19721221

to: 12-21-1972 ?

We are often sent birthdates in the top format and HAVE to have it
mm/dd/yyyy. I have been using the =LEFT function to split the text out,
rearrange, then =CONCATENATE to put it all together again. I'm having
problems though when dates are mixed with a month containing only one value.
Example: 1972314 / 3-14-1972

If anyone can figure this out ---they are a genius!
 
Janice

Data>Text to Columns>Next>Next>Column Data Format>Date>YMD and Finish.


Gord Dibben MS Excel MVP
 
There can't be a unique answer if both the month and the day can be one or
two digits.

If you have 197121 Is this January 21 or December 1?

Yureally need to get the data generated in a fashion easier to use.

I had to write a very similar Custom function using dots between the fileds
like

12.3.06
I could write the function because I got unique answers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top