Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Keeping leading zeros in field

It sounds like you are formatting the actual cells in the
Excel worksheet as 'text' prior to importing the text file.
What you should be doing is...in step 3 of 3 in the import
process, make sure that you make column 3 text.
HTH,
Gary Brown



-----Original Message-----
I have a delimitted file that is created in an

application. One of the
fields has leading zeros which must be kept when

importing into Excel.
However, the zeroes get stripped out. I can not change

the format of the
delimmitted file being imported due to application

limitations creating the
file.

Here is a sample of a record in the delimited file.

"12202","ABC Company","001234567"

I have set the format for the cells I am importing

to "text" but it still
strips out the leading zeroes. How do I make sure the

leading zeroes are
kept using either formatting or programming?

Note the field will either be blank (will be "" in the

delimmitted file) or
will have nine digits. I need to keep all nine digits

and ignore the blanks.

Thanks for your help.

Joe
.

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
Keeping Leading Zeros; How Please ? Robert11[_2_] New Users to Excel 2 January 7th 12 06:15 PM
How to copy a number into a text cell, keeping leading zeros? Basher Bates Charts and Charting in Excel 2 February 23rd 08 03:26 PM
Keeping leading zeros in imported data (one digit month as 05) exito816 Excel Discussion (Misc queries) 2 September 28th 07 10:35 PM
How do I format a field in Excel to allow for leading zeros? debbie Excel Discussion (Misc queries) 3 April 16th 07 02:51 AM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM


All times are GMT +1. The time now is 08:49 AM.

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

About Us

"It's about Microsoft Excel"