Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to stop the 0 from dropping when saving exel to a .csv file

I am making a price sheet in exel. The part numbers start with a 0. When I am
saving the file in a .csv the 0 is dropping off the part number how can I
stop it
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default how to stop the 0 from dropping when saving exel to a .csv file

precede the part number with single quote

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default how to stop the 0 from dropping when saving exel to a .csv file

When you save in .csv format, leading zeros should be preserved. Do this
experiment :

1. Format A1 as Text
2. Enter 00 in A1
3. Save the file as .csv

Open the file in Word, Notepad, or Wordpad and you will see the double zeros.

If you open the .csv file by double clicking the file icon, Excel will
start and all you will see is a single zero.

To get the double zero to appear when re-opening the file, first start Excel
and then pull-down File Open and specify the .csv file.

The Import wizard should start and allow the real double zero to be imported
(as a Text Field)
--
Gary's Student


"danny boahn" wrote:

I am making a price sheet in exel. The part numbers start with a 0. When I am
saving the file in a .csv the 0 is dropping off the part number how can I
stop it

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default how to stop the 0 from dropping when saving exel to a .csv file

If the file is named .csv then when you do the File|open, you won't see the text
import wizard.

Renaming the .csv file to .txt would work, though.

Gary''s Student wrote:

When you save in .csv format, leading zeros should be preserved. Do this
experiment :

1. Format A1 as Text
2. Enter 00 in A1
3. Save the file as .csv

Open the file in Word, Notepad, or Wordpad and you will see the double zeros.

If you open the .csv file by double clicking the file icon, Excel will
start and all you will see is a single zero.

To get the double zero to appear when re-opening the file, first start Excel
and then pull-down File Open and specify the .csv file.

The Import wizard should start and allow the real double zero to be imported
(as a Text Field)
--
Gary's Student

"danny boahn" wrote:

I am making a price sheet in exel. The part numbers start with a 0. When I am
saving the file in a .csv the 0 is dropping off the part number how can I
stop it


--

Dave Peterson
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 stop Excel from dropping leading zeros? Carl Nash Excel Discussion (Misc queries) 9 April 22nd 09 08:11 PM
Saving a csv file with out dropping 0 mike Excel Worksheet Functions 6 August 22nd 07 10:27 PM
How do I stop Series Line from Dropping to Zero joefish Excel Discussion (Misc queries) 0 April 7th 06 06:30 PM
How do I stop Excel from saving a file with a different name? Gary Excel Discussion (Misc queries) 5 September 14th 05 07:20 PM
How do I stop Excel 2000 from saving file history from file that . Cathy Excel Discussion (Misc queries) 0 March 29th 05 03:27 PM


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