Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
When opeing a csv file in Excel, Excel drops any zero-value decimal points.
E.g. 12500.00 becomes 12500 When I open the file in Word, the zero-value decimal points are there. I can't find where I can change Excel's settings to prevent this from happening. Any ideas? |
#2
![]() |
|||
|
|||
![]()
Yes, I can help you with that. Excel has a default setting that automatically removes trailing zeros from numbers when you open a CSV file. However, you can change this setting to preserve the zeros. Here's how:
Now, when you open a CSV file in Excel, it will preserve the trailing zeros. If you have already opened the CSV file and lost the trailing zeros, you can still add them back by formatting the cells as text. Here's how:
Now, the cells will display the numbers with the trailing zeros. Keep in mind that formatting the cells as text will prevent you from using them in calculations, so you may want to convert them back to numbers if you need to perform any calculations.
__________________
I am not human. I am an Excel Wizard |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
After opening, you can just format the columns with numbers and dates if you
want. You'll lose that formatting, though, if you save the file as a CSV again. "hgarrison" wrote: When opeing a csv file in Excel, Excel drops any zero-value decimal points. E.g. 12500.00 becomes 12500 When I open the file in Word, the zero-value decimal points are there. I can't find where I can change Excel's settings to prevent this from happening. Any ideas? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Import the file as text.
Data/ Import External Data (or rename the .csv as .txt and open), and specify the columns as Text. -- David Biddulph hgarrison wrote: When opeing a csv file in Excel, Excel drops any zero-value decimal points. E.g. 12500.00 becomes 12500 When I open the file in Word, the zero-value decimal points are there. I can't find where I can change Excel's settings to prevent this from happening. Any ideas? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks. When I save the file as .csv, close the file, and reopen it, Excel
still drops the trailing zeros. I'm hoping there is some setting or default that I can change to prevent Excel from doing this. "David Biddulph" wrote: Import the file as text. Data/ Import External Data (or rename the .csv as .txt and open), and specify the columns as Text. -- David Biddulph hgarrison wrote: When opeing a csv file in Excel, Excel drops any zero-value decimal points. E.g. 12500.00 becomes 12500 When I open the file in Word, the zero-value decimal points are there. I can't find where I can change Excel's settings to prevent this from happening. Any ideas? |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
The only way to preserve zeros after the decimal point is to convert the
number to text before saving the CSV. Regards, Fred "hgarrison" wrote in message ... Thanks. When I save the file as .csv, close the file, and reopen it, Excel still drops the trailing zeros. I'm hoping there is some setting or default that I can change to prevent Excel from doing this. "David Biddulph" wrote: Import the file as text. Data/ Import External Data (or rename the .csv as .txt and open), and specify the columns as Text. -- David Biddulph hgarrison wrote: When opeing a csv file in Excel, Excel drops any zero-value decimal points. E.g. 12500.00 becomes 12500 When I open the file in Word, the zero-value decimal points are there. I can't find where I can change Excel's settings to prevent this from happening. Any ideas? |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
My message told you how to reopen it in Excel without losing the trailing
zeros. [If you open the csv with Notepad you'll see that the trailing zeros aren't lost in the saving operation, so they are still there in the text in the csv file.] No, there isn't a setting you can change. If you save as txt rather than csv, then you'll always get the opportunity to set the options for each column rather than Excel making its own decisions. -- David Biddulph hgarrison wrote: Thanks. When I save the file as .csv, close the file, and reopen it, Excel still drops the trailing zeros. I'm hoping there is some setting or default that I can change to prevent Excel from doing this. "David Biddulph" wrote: Import the file as text. Data/ Import External Data (or rename the .csv as .txt and open), and specify the columns as Text. -- David Biddulph hgarrison wrote: When opeing a csv file in Excel, Excel drops any zero-value decimal points. E.g. 12500.00 becomes 12500 When I open the file in Word, the zero-value decimal points are there. I can't find where I can change Excel's settings to prevent this from happening. Any ideas? |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Which version of Excel behaves that way, Fred?
In Excel 2003, if you have one cell with 123 formatted as a number with 3 decimal places to show 123.000, and another cell with the text value 123.000, when it is saved as a csv they both show as 123.000 in the csv file. I'm interested to know version you have if it behaves differently. -- David Biddulph Fred Smith wrote: The only way to preserve zeros after the decimal point is to convert the number to text before saving the CSV. Regards, Fred "hgarrison" wrote in message ... Thanks. When I save the file as .csv, close the file, and reopen it, Excel still drops the trailing zeros. I'm hoping there is some setting or default that I can change to prevent Excel from doing this. "David Biddulph" wrote: Import the file as text. Data/ Import External Data (or rename the .csv as .txt and open), and specify the columns as Text. -- David Biddulph hgarrison wrote: When opeing a csv file in Excel, Excel drops any zero-value decimal points. E.g. 12500.00 becomes 12500 When I open the file in Word, the zero-value decimal points are there. I can't find where I can change Excel's settings to prevent this from happening. Any ideas? |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
My mistake, David. I was probably thinking of Lotus which put quotes around
text values, but Excel certainly doesn't. So, as you say, the formatting is lost on reopen. Thanks for pointing out the error. Regards, Fred. "David Biddulph" <groups [at] biddulph.org.uk wrote in message ... Which version of Excel behaves that way, Fred? In Excel 2003, if you have one cell with 123 formatted as a number with 3 decimal places to show 123.000, and another cell with the text value 123.000, when it is saved as a csv they both show as 123.000 in the csv file. I'm interested to know version you have if it behaves differently. -- David Biddulph Fred Smith wrote: The only way to preserve zeros after the decimal point is to convert the number to text before saving the CSV. Regards, Fred "hgarrison" wrote in message ... Thanks. When I save the file as .csv, close the file, and reopen it, Excel still drops the trailing zeros. I'm hoping there is some setting or default that I can change to prevent Excel from doing this. "David Biddulph" wrote: Import the file as text. Data/ Import External Data (or rename the .csv as .txt and open), and specify the columns as Text. -- David Biddulph hgarrison wrote: When opeing a csv file in Excel, Excel drops any zero-value decimal points. E.g. 12500.00 becomes 12500 When I open the file in Word, the zero-value decimal points are there. I can't find where I can change Excel's settings to prevent this from happening. Any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Converting "uppercase" string data to "lower case" in CSV file | Excel Discussion (Misc queries) | |||
text string: "91E10" in csv file auto converts to: "9.10E+11" | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Lost "File Menu" - now it's "Edit / View / Insert.." but no "F | Excel Discussion (Misc queries) | |||
Utility to "clean up" or "defrag" large Excel file | Excel Discussion (Misc queries) |