Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
saybut
 
Posts: n/a
Default problem with dates in csv file


Hi,

I'm trying to save a .csv file at the moment, the person who I'm
sending it to needs the dates in 1 column as dd-mmm-yy, eg 18-Sep-05,
eg 09-Sep-05. When I save the file it always reverts the dates 09 or
below back to a single number, 9 etc.

I've tried copying the column into word, paste special as text,
formatting the column in excel to text and pasting special back in as
text, it works ok but when I save and open the file it reverts back!

does anyone know how I could get around this?

Many thanks,

saybut.


--
saybut
------------------------------------------------------------------------
saybut's Profile: http://www.excelforum.com/member.php...fo&userid=5949
View this thread: http://www.excelforum.com/showthread...hreadid=484241

  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default problem with dates in csv file

The key is re-open.

If you save as .csv and look at the .csv file in, say, Notepad, the leading
zero will be there. When you re-open the file in Excel, Excel tries to
"help" you by removing the leading zero. If you re-name the file from .csv
to .txt and then open it in Excel, Excel will start the import wizard, which
will give you control over the import process.
--
Gary's Student


"saybut" wrote:


Hi,

I'm trying to save a .csv file at the moment, the person who I'm
sending it to needs the dates in 1 column as dd-mmm-yy, eg 18-Sep-05,
eg 09-Sep-05. When I save the file it always reverts the dates 09 or
below back to a single number, 9 etc.

I've tried copying the column into word, paste special as text,
formatting the column in excel to text and pasting special back in as
text, it works ok but when I save and open the file it reverts back!

does anyone know how I could get around this?

Many thanks,

saybut.


--
saybut
------------------------------------------------------------------------
saybut's Profile: http://www.excelforum.com/member.php...fo&userid=5949
View this thread: http://www.excelforum.com/showthread...hreadid=484241


  #3   Report Post  
saybut
 
Posts: n/a
Default problem with dates in csv file


Ah... Thank you very much.


--
saybut
------------------------------------------------------------------------
saybut's Profile: http://www.excelforum.com/member.php...fo&userid=5949
View this thread: http://www.excelforum.com/showthread...hreadid=484241

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
Stop Excel from changing numbers to dates in CSV file Curt L. Excel Discussion (Misc queries) 2 June 7th 05 01:23 AM
Help - now really stuck! File transfer problem ohboy! Excel Discussion (Misc queries) 10 May 2nd 05 10:07 PM
Problem with File lock/unlock Slim Excel Discussion (Misc queries) 2 March 25th 05 10:45 AM
Problem Opening An Excel file. - by yk ilikecy Excel Discussion (Misc queries) 0 February 4th 05 09:19 AM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 06:37 AM


All times are GMT +1. The time now is 10:25 AM.

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

About Us

"It's about Microsoft Excel"