Excel Convert yyyymmdd text to Date format
Excel Convert yyyymmdd text to Date format
(OP)
Importing text into Excel sets the yyyymmdd field as text format. Program will not convert this field to DATE format. Get ######. Cannot find help in Excel on this matter. Can anyone tell me how to convert 20060701 to 07/01/2006?
RE: Excel Convert yyyymmdd text to Date format
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
Copy the formula down as far as needed.
(Replace A1 with the appropriate cell reference)
_____
-John
The plural of anecdote is not data
Help us help you. Please read FAQ181-2886 before posting.
RE: Excel Convert yyyymmdd text to Date format
FYI...
Why do Dates and Times seem to be so much trouble? FAQ68-5827
Skip,
RE: Excel Convert yyyymmdd text to Date format
RE: Excel Convert yyyymmdd text to Date format
_____
-John
The plural of anecdote is not data
Help us help you. Please read FAQ181-2886 before posting.
RE: Excel Convert yyyymmdd text to Date format
Regards
Ken.............
----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission
----------------------------------------------------------------------------