Link to home
Start Free TrialLog in
Avatar of britpopfan74
britpopfan74Flag for United States of America

asked on

Need help formatting a DOB text field from current format of YYYYMMDD

Hello,

I've been given an Excel 2007 spreadsheet that has DOB column entered like this in text format:  '20000101' for January 01, 2000.

I don't know what Excel function may be used to get it into a format that is either mm-dd-yyyy or mm-dd-yy?

If anyone could help, it is much appreciated!
ASKER CERTIFIED SOLUTION
Avatar of jppinto
jppinto
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If your "20000101" is in cell A1, this formula will produce a "date code", which you only need then to format according to how you wish it to be displayed:
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
Please check the attached example file...
Date-formula.xlsx
Avatar of britpopfan74

ASKER

This is perfect - thank you so much!