Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
converting Dates | Excel Worksheet Functions | |||
Converting Dates | Excel Worksheet Functions | |||
Converting Day Numbers to Dates... | Excel Worksheet Functions | |||
Converting dates | New Users to Excel | |||
converting dates into numbers | Excel Discussion (Misc queries) |