Convert Dates

  • Thread starter Thread starter Guest
  • Start date Start date
This formula did not work. I have a date of 20050609 for June 9, 2005 but
when I put in the formula it gave me this date: 8/31/2021
 
This formula did not work. I have a date of 20050609 for June 9, 2005 but
when I put in the formula it gave me this date: 8/31/2021
 
That is not a Julian date. You want

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 
That is not a Julian date. You want

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 
Hi Jo Anna

With your value in A1, try
=DATE(--LEFT(A1,4),--MID(A1,5,2),--(RIGHT(A1,2)))

What you have is not a Julian date, that is why the formula on Chip's
site does not work
 
Hi Jo Anna

With your value in A1, try
=DATE(--LEFT(A1,4),--MID(A1,5,2),--(RIGHT(A1,2)))

What you have is not a Julian date, that is why the formula on Chip's
site does not work
 
Joanna

Bob and Roger supplied formulas.

If you do not want to deal with formulas use...

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


Gord Dibben MS Excel MVP
 
Joanna

Bob and Roger supplied formulas.

If you do not want to deal with formulas use...

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


Gord Dibben MS Excel MVP
 
Back
Top