Convert hard keyed/formatted numbers to dates

G

Guest

Have data that is supposed to be dates, e.g., 06-29-06, that has been
formatted with a custom number format of 00-00-00. I need to convert it/them
to actual dates; however, the number is really 62906, which converts to
03/23/72, not 06/29/06. Help! and THANKS!!
 
D

David Biddulph

Try: data, text to columns, delimited, next, next, date format MDY, finish.
Format result as date.
 
G

Guest

try

=DATE(2000+RIGHT(A23,2),LEFT(TEXT(A23,"000000"),2),MID(TEXT(A23,"000000"),3,2))

where A23 contains your number
 

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

Top