View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs daddylonglegs is offline
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.