Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
beachwurm
 
Posts: n/a
Default How do I preserve cell content when saving an excel file in csv

I am saving an excel spreadsheet in a Comma Delimited format. And when I do
it changes some cell information. Specifically I have a column of ID numbers
"00200030" that is changed to "200030". Is there any way to preserve the
"00" prefix in the csv format?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default How do I preserve cell content when saving an excel file in csv

The trick is not in saving, its in re-opening:

Let's say you format A1 as Text and enter 01 in it. Save as .csv and exit
Excel. Right-click the .csv file and open with NotePad and you will see the
leading zero. If you re-open the .csv file with Excel, it will discard that
leading zero. So:

Once you have created the .csv, re-name it to .txt

If you tell Excel to open a .txt file, it will display the Import Wizard.
You can tell the Wizard that the field is text.
--
Gary's Student


"beachwurm" wrote:

I am saving an excel spreadsheet in a Comma Delimited format. And when I do
it changes some cell information. Specifically I have a column of ID numbers
"00200030" that is changed to "200030". Is there any way to preserve the
"00" prefix in the csv format?

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
Excel Outlook Attachments opening after several errors everytime cito_support Setting up and Configuration of Excel 2 March 13th 06 06:15 PM
Excel should merge cells without removing content of any cell Rumpa Biswas Excel Discussion (Misc queries) 14 January 1st 06 12:32 AM
Pasting Word table cell with paragraph markers into single Excel c Steve Excel Discussion (Misc queries) 1 June 16th 05 11:26 PM
saving excel file as tab delimited Craig Hilliard Excel Discussion (Misc queries) 0 February 1st 05 10:39 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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