ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Leading zeros lost in csv (https://www.excelbanter.com/excel-worksheet-functions/106682-leading-zeros-lost-csv.html)

Liz C

Leading zeros lost in csv
 
I have a text column in Excel where numbers are stored like 001 or 001a.
When I save the file as csv, it deletes the leading zeros on the ones that
are like 001.

Any ideas?

Thanks in advance for your help!

Liz

Gord Dibben

Leading zeros lost in csv
 
Liz

Open the CSV file in Notepad or Wordpad to see the leading zeros.

If you re-open in Excel, you lose the leading zeros.


Gord Dibben MS Excel MVP

On Wed, 23 Aug 2006 08:45:02 -0700, Liz C
wrote:

I have a text column in Excel where numbers are stored like 001 or 001a.
When I save the file as csv, it deletes the leading zeros on the ones that
are like 001.

Any ideas?

Thanks in advance for your help!

Liz



Dave Peterson

Leading zeros lost in csv
 
Instead of verifying that the leading 0's are there using excel, open the .CSV
file in notepad.

It's not the saving of the .CSV file that gets rid of the leading 0's. It's the
reopening in excel that removes them.



Liz C wrote:

I have a text column in Excel where numbers are stored like 001 or 001a.
When I save the file as csv, it deletes the leading zeros on the ones that
are like 001.

Any ideas?

Thanks in advance for your help!

Liz


--

Dave Peterson


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

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