ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to stop the 0 from dropping when saving exel to a .csv file (https://www.excelbanter.com/excel-programming/345321-how-stop-0-dropping-when-saving-exel-csv-file.html)

danny boahn[_2_]

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

sugargenius

how to stop the 0 from dropping when saving exel to a .csv file
 
precede the part number with single quote


Gary''s Student

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


Dave Peterson

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


All times are GMT +1. The time now is 10:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com