#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting Dates torpido Excel Worksheet Functions 2 January 27th 15 10:24 AM
Converting Dates Mike Excel Worksheet Functions 2 July 11th 06 06:16 PM
Converting Day Numbers to Dates... Birmangirl Excel Worksheet Functions 6 June 23rd 06 03:02 PM
Converting dates Ana New Users to Excel 6 September 9th 05 07:51 AM
converting dates into numbers help me Excel Discussion (Misc queries) 3 December 17th 04 03:11 AM


All times are GMT +1. The time now is 07:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"