Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TRminator
 
Posts: n/a
Default .csv drops "0" when saved, even if file was set as "text".

Hi. I need to save files as .csv for importing Product Codes into my
purchasing system. My problem is that, even if I change the relevant column
to "TEXT", after saving the file as a .csv the "0" or even sometimes "00"
that appear at the beginning of many of the product code is being dropped by
Excell when the file is reopened.

Any thoughts on how I can solve this issue?
  #2   Report Post  
David Biddulph
 
Posts: n/a
Default .csv drops "0" when saved, even if file was set as "text".

"TRminator" wrote in message
...
Hi. I need to save files as .csv for importing Product Codes into my
purchasing system. My problem is that, even if I change the relevant

column
to "TEXT", after saving the file as a .csv the "0" or even sometimes "00"
that appear at the beginning of many of the product code is being dropped

by
Excell when the file is reopened.

Any thoughts on how I can solve this issue?


Change the file name to txt rather than csv, & when you read in through the
import wizard, set the relevant columns to format as "Text".
--
David Biddulph


  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default .csv drops "0" when saved, even if file was set as "text".

If you don't need to reimport that data back into excel (say you're just
verifying that the creation of the .csv file worked), then you could use Notepad
to do that verification.

You'll see the leading 0's in that .csv text file.

TRminator wrote:

Hi. I need to save files as .csv for importing Product Codes into my
purchasing system. My problem is that, even if I change the relevant column
to "TEXT", after saving the file as a .csv the "0" or even sometimes "00"
that appear at the beginning of many of the product code is being dropped by
Excell when the file is reopened.

Any thoughts on how I can solve this issue?


--

Dave Peterson
  #4   Report Post  
TRminator
 
Posts: n/a
Default .csv drops "0" when saved, even if file was set as "text".

Hi David.

I experimented with a few lines from the main record. When I open the .txt
file to view it the "0" have been dropped there as well. Please note also
that I am dealing with 29,000 lines (too big for a .txt file?) and that I'm
exporting from excel/windows and importing into my system, not the other way
around so i don't get to use the Wizard. thanks for taking the time out to
try and help though David, I really do appreciate it.

"David Biddulph" wrote:

"TRminator" wrote in message
...
Hi. I need to save files as .csv for importing Product Codes into my
purchasing system. My problem is that, even if I change the relevant

column
to "TEXT", after saving the file as a .csv the "0" or even sometimes "00"
that appear at the beginning of many of the product code is being dropped

by
Excell when the file is reopened.

Any thoughts on how I can solve this issue?


Change the file name to txt rather than csv, & when you read in through the
import wizard, set the relevant columns to format as "Text".
--
David Biddulph



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 get Excel to open a previously saved file? Jeff S Excel Discussion (Misc queries) 1 August 17th 05 06:11 PM
Multiple columns of data saved in a CSV file appears in a single c TRR Excel Discussion (Misc queries) 2 June 8th 05 01:49 PM
Picture disappears when saved as html file Tim - Daiwa Excel Discussion (Misc queries) 1 April 8th 05 10:49 PM
When converting an .xls file to .csv I get too many commas at the. One-eyed-Ian Excel Discussion (Misc queries) 3 December 7th 04 01:03 AM
Openning an .csv file hbarniv Excel Discussion (Misc queries) 4 December 1st 04 01:29 AM


All times are GMT +1. The time now is 12:56 AM.

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"