#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Date Conversion

A file I download from a mainframe has date data in it in a ddmmyyyy format.
Example, 1/1/2007 comes across as 1012007. How do I convert to a dd/mm/yyyy
format?

Thanks
Bill Falzone
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Date Conversion

hi,
you might try a formula like this....
=LEFT(B3,1) & "/" & MID(B3,2,2) &"/" & RIGHT(B3,4)
I tried it on the example you gave and it took. and is treated by excel as a
date because i can add 1 to the results and get 1/2/2007.

regards
FSt1

"billbrandi" wrote:

A file I download from a mainframe has date data in it in a ddmmyyyy format.
Example, 1/1/2007 comes across as 1012007. How do I convert to a dd/mm/yyyy
format?

Thanks
Bill Falzone

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Date Conversion

Thank you

"FSt1" wrote:

hi,
you might try a formula like this....
=LEFT(B3,1) & "/" & MID(B3,2,2) &"/" & RIGHT(B3,4)
I tried it on the example you gave and it took. and is treated by excel as a
date because i can add 1 to the results and get 1/2/2007.

regards
FSt1

"billbrandi" wrote:

A file I download from a mainframe has date data in it in a ddmmyyyy format.
Example, 1/1/2007 comes across as 1012007. How do I convert to a dd/mm/yyyy
format?

Thanks
Bill Falzone

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Date Conversion

It might be easier to use datatext to columns if you do this on a regular
basis

select the column with the dates. do datatext to column, click next twice,
under column data format select Date and DMY from dropdown, click finish

record macro while doing it and attach a keyboard shortcut for next time


--

Regards,

Peo Sjoblom
"billbrandi" wrote in message
...
Thank you

"FSt1" wrote:

hi,
you might try a formula like this....
=LEFT(B3,1) & "/" & MID(B3,2,2) &"/" & RIGHT(B3,4)
I tried it on the example you gave and it took. and is treated by excel
as a
date because i can add 1 to the results and get 1/2/2007.

regards
FSt1

"billbrandi" wrote:

A file I download from a mainframe has date data in it in a ddmmyyyy
format.
Example, 1/1/2007 comes across as 1012007. How do I convert to a
dd/mm/yyyy
format?

Thanks
Bill Falzone



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
Date Conversion Port Man Excel Discussion (Misc queries) 2 March 1st 07 06:40 PM
Date conversion Tom Excel Discussion (Misc queries) 7 January 2nd 07 09:47 PM
Date Conversion - sorry DTTODGG New Users to Excel 5 December 13th 05 07:36 PM
Date conversion Kristiaaan Excel Discussion (Misc queries) 5 July 30th 05 05:49 AM
Date Conversion jdmcleod Excel Discussion (Misc queries) 2 March 20th 05 12:12 AM


All times are GMT +1. The time now is 10:05 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"