ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Converting Dates (https://www.excelbanter.com/excel-worksheet-functions/133166-converting-dates.html)

Jacq

Converting Dates
 
I have a bunch of numbers on an excel file that are this format: 70220. I
would like to convert them to a regular date. I tried just formatting the
cells to dates, but it does not work. It should be 2/20/07. Can anyone help?

Thanks.

David Biddulph[_2_]

Converting Dates
 
=DATE(2000+LEFT(A1,LEN(A1)-4),MID(A1,LEN(A1)-3,2),RIGHT(A1,2))
--
David Biddulph

"Jacq" wrote in message
...
I have a bunch of numbers on an excel file that are this format: 70220. I
would like to convert them to a regular date. I tried just formatting the
cells to dates, but it does not work. It should be 2/20/07. Can anyone
help?

Thanks.




daddylonglegs

Converting Dates
 
Assuming all your dates are 2000 or later

=TEXT(20&TEXT(A1,"000000"),"0000-00-00")+0

format as date

"David Biddulph" wrote:

=DATE(2000+LEFT(A1,LEN(A1)-4),MID(A1,LEN(A1)-3,2),RIGHT(A1,2))
--
David Biddulph

"Jacq" wrote in message
...
I have a bunch of numbers on an excel file that are this format: 70220. I
would like to convert them to a regular date. I tried just formatting the
cells to dates, but it does not work. It should be 2/20/07. Can anyone
help?

Thanks.





Teethless mama

Converting Dates
 
=TEXT(200&A1,"0000\/00\/00")*1


"daddylonglegs" wrote:

Assuming all your dates are 2000 or later

=TEXT(20&TEXT(A1,"000000"),"0000-00-00")+0

format as date

"David Biddulph" wrote:

=DATE(2000+LEFT(A1,LEN(A1)-4),MID(A1,LEN(A1)-3,2),RIGHT(A1,2))
--
David Biddulph

"Jacq" wrote in message
...
I have a bunch of numbers on an excel file that are this format: 70220. I
would like to convert them to a regular date. I tried just formatting the
cells to dates, but it does not work. It should be 2/20/07. Can anyone
help?

Thanks.





Teethless mama

Converting Dates
 
Try this:

=DATE(LEFT(A1,1)+2000,MID(A1,2,2),RIGHT(A1,2))


"Jacq" wrote:

I have a bunch of numbers on an excel file that are this format: 70220. I
would like to convert them to a regular date. I tried just formatting the
cells to dates, but it does not work. It should be 2/20/07. Can anyone help?

Thanks.


Jacq

Converting Dates
 
Thank you all so much. Very helpful. It finally works.

"Jacq" wrote:

I have a bunch of numbers on an excel file that are this format: 70220. I
would like to convert them to a regular date. I tried just formatting the
cells to dates, but it does not work. It should be 2/20/07. Can anyone help?

Thanks.



All times are GMT +1. The time now is 08:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com