Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default leading zeros fall off in csv format.

leading zeros fall off in csv format. I need to know if this is normal or if
I need to make a change to formatting or some other option .
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default leading zeros fall off in csv format.

Open the CSV file with Notepad, are the leading zeros still there?

susanmarie wrote:
leading zeros fall off in csv format. I need to know if this is normal or if
I need to make a change to formatting or some other option .


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 897
Default leading zeros fall off in csv format.

Can you be more specific, i.e.

1. Are the zeros being dropped when you enter them and then leave the
cell? or,
2. Are the zeros being dropped when you (re)open the file or import it
in Excel or in another program?


Thx,
JP

On Jan 9, 1:50*pm, susanmarie
wrote:
leading zeros fall off in csv format. I need to know if this is normal or if
I need to make a change to formatting or some other option .


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default leading zeros fall off in csv format.

The leading zeros are dropped when the .csv file is opened, not when it is
created. You can verify this by openning the .csv with NotePad.

To preserve the leading zeros, don't open the .csv by double-click. Just
open Excel and:

Data Import External Data... Import Data and select the .csv from the
dialog.

The Import Wizard will allow you to specfy Text rather than General and thus
save the leading zeros.
--
Gary''s Student - gsnu200764


"susanmarie" wrote:

leading zeros fall off in csv format. I need to know if this is normal or if
I need to make a change to formatting or some other option .

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default leading zeros fall off in csv format.

Have you looked at the CSV with Notepad to see whether the leading zeroes
really have fallen off?

My guess is that they were there in the CSV, but that someone has tried to
open the file with Excel, and Excel has assumed on the import that they are
numbers and thus lost the leading zeroes at that stage. If you do want to
read a CSV in Excel, don't use File/ Open or double-click the CSV, but
instead in Excel use Data/ Import External Data ... then you'll get the Text
import wizard which will allow you to specify the column format as Text.
--
David Biddulph

"susanmarie" wrote in message
...
leading zeros fall off in csv format. I need to know if this is normal or
if
I need to make a change to formatting or some other option .





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
leading zeros in text format BigBrook Excel Discussion (Misc queries) 5 December 11th 08 08:00 PM
How do I keep leading zeros and format my cells as text? BlabberLots Excel Discussion (Misc queries) 1 February 9th 07 06:29 PM
Format a cell to keep leading zeros. Shadyhosta New Users to Excel 5 July 27th 05 04:37 PM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM
retain leading zeros in number format Jeff Excel Discussion (Misc queries) 5 February 22nd 05 09:24 PM


All times are GMT +1. The time now is 12:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"