Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Help with Excel Dates

HELLLLP !!!! :D

Ok I have a database at work that when extracted from Foxpro to Access
and then to Excel so that i can finaly work with it, all the fields
(which are numbers) are stored as text. After converting all the fields
(thanks to another post showing that you can copy blank cells over your
data using the add and value options in paste special) my dates are all
messed up. What is happening is that the date is stored as a number in
the following format "yyyymmdd". Example "20010123". When you try and
convert that to a date it gives me an infinate number of #. How do i
convert this format into a date i can actualy use in excel in a date
field??

Thanks
Andrew

  #2   Report Post  
Ian
 
Posts: n/a
Default

=VALUE(RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4)) and format the cell as
date (if necessary).

--
Ian
--
wrote in message
oups.com...
HELLLLP !!!! :D

Ok I have a database at work that when extracted from Foxpro to Access
and then to Excel so that i can finaly work with it, all the fields
(which are numbers) are stored as text. After converting all the fields
(thanks to another post showing that you can copy blank cells over your
data using the add and value options in paste special) my dates are all
messed up. What is happening is that the date is stored as a number in
the following format "yyyymmdd". Example "20010123". When you try and
convert that to a date it gives me an infinate number of #. How do i
convert this format into a date i can actualy use in excel in a date
field??

Thanks
Andrew



  #3   Report Post  
 
Posts: n/a
Default

That was amazlingly quick
Thanks a bunch

  #4   Report Post  
Ian
 
Posts: n/a
Default

Happy to help.

--
Ian
--
wrote in message
oups.com...
That was amazlingly quick
Thanks a bunch



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
How do I calculate duration between two dates and times in excel? Robin CSM002 Excel Discussion (Misc queries) 3 May 13th 23 07:42 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Ensure dates imported into Excel 2003 are shown in DD/MM/YYY form. KymY Excel Discussion (Misc queries) 3 February 11th 05 02:28 PM
dates in Excel 2003 [email protected] Excel Discussion (Misc queries) 3 January 4th 05 11:04 PM
how do I show dates in a column in an excel worksheet? papacradd Excel Discussion (Misc queries) 1 December 8th 04 02:33 PM


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