You will need to convert the cell to text to get it to stay the way you want
in the CSV file.
Either use an initial apostrophe in data entry (as in '012345). This forces
the entry to stay as text.
If it's a calculated field, use something like:
=text(a1,"000000")
Again, this will create a 6-character text field.
Regards,
Fred.
> Whenever I populate a numeric value into a cell, the leading zeros are
> always
[quoted text clipped - 11 lines]
> '012345' not '12345 '. I can't save it as .xls because I can't FTP an .xls
> file to another box and and use it in another application.
GKW in GA - 23 May 2008 00:58 GMT
That doesn't work, for CSV anyway. When you save the CSV file you get the
standard prompt that says it contains features not compatible with CSV. The
choices are YES, to save it as CSV omitting the incompatible features or NO
to save it in another format besides CSV (like .xls). If you select YES, then
when you return, the leading zeros have been removed.
What you said works for .xls but not .csv. I tried it before I ever created
this post.
Maybe I have an option set wrong or something.
> You will need to convert the cell to text to get it to stay the way you want
> in the CSV file.
[quoted text clipped - 26 lines]
> > '012345' not '12345 '. I can't save it as .xls because I can't FTP an .xls
> > file to another box and and use it in another application.
Gord Dibben - 23 May 2008 02:16 GMT
Don't re-open the *.csv file in Excel.
Open it in Notepad or similar.
Your zeros will be there.
Gord Dibben MS Excel MVP
>That doesn't work, for CSV anyway. When you save the CSV file you get the
>standard prompt that says it contains features not compatible with CSV. The
[quoted text clipped - 5 lines]
>this post.
>Maybe I have an option set wrong or something.