ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Loosing Leading zeros in CSV file (https://www.excelbanter.com/excel-discussion-misc-queries/62783-loosing-leading-zeros-csv-file.html)

Joe

Loosing Leading zeros in CSV file
 
Hello

How do i stop a CSV file loosing leading zeros.

when the file is in excel format it is exactly how i want it, but to import
it into another program i need to save it as a csv file and it is then that i
loose the leading zeros

has any body got any ideas

--
Cheers

Niek Otten

Loosing Leading zeros in CSV file
 
Instead of exporting a number, export "=TEXT(YourNumber,"00000000")" or as
many "0"s as you need

--
Kind regards,

Niek Otten

"Joe" wrote in message
...
Hello

How do i stop a CSV file loosing leading zeros.

when the file is in excel format it is exactly how i want it, but to
import
it into another program i need to save it as a csv file and it is then
that i
loose the leading zeros

has any body got any ideas

--
Cheers




Arien

Loosing Leading zeros in CSV file
 

You could also Format the cell (CTRL+1) | Number | Custom and type
000000000 in stead of Standard.
That would do the job.

regards,
Arien


--
Arien
------------------------------------------------------------------------
Arien's Profile: http://www.excelforum.com/member.php...fo&userid=1892
View this thread: http://www.excelforum.com/showthread...hreadid=497506



All times are GMT +1. The time now is 03:11 AM.

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