View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default excel xls to csv numbers stored as txt lose first 0

I would be willing to be that the zeroes are *not* lost when you save as
CSV. Open your CSV file in something like Notepad and check.

My guess is that you have subsequently allowed Excel to open the CSV file,
using its default options. In that case, Excel will treat the values as
numbers, not text, and Excel does not store the leading zeroes. If you do
want to read the CSV file with Excel, use Data/ Import External Data, and
specify the relevant columns as text.
--
David Biddulph

"steve44122" wrote in message
...
we have a mix field with some having only numbers. it is text. when
converting it to a csv the 0 in the first column are lost.... this happens
only to fields that are only numeric