Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting date format in Excel

Status
Not open for further replies.

XrayVision

Technical User
Jan 9, 2003
10
US
I have column a with the dates in this format:
19990527 (yyyymmdd)I would like to convert them to:
05/27/1999 in column b. Could someone post a formula or routine that would parse col a?

Thanks a bunch


 
Assuming date is in cell A!:

=RIGHT(A1,2)&"/"&MID(A1,4,2)&"/"&LEFT(A1,4)
 
opps:

=RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4)
 
lets try this again :):

=MID(A1,5,2)&"/"&RIGHT(A1,2)&"/"&LEFT(A1,4)
 
Now you can format column B for date mm/dd/yyyy

and do:

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top