Importing a Text file into Excel

D

Doug D

When I import a text file into Excel, leading zeros in columns are truncated.
Has anyone else seen this? Is there a cure?
 
J

JE McGimpsey

Choose Data/Get External Data/Import Text File...

navigate to your file, click OK. Select Delimited in the Text Import
wizard, click OK, Select your delimiter, click OK, Select the column(s)
of data you want to preserve as text and click the Text radio button.
Click Finish.
 
E

Eva Shanley

Try formatting the columns as Custom before importing the
text file. For example, if you have a 6-digit vendor
number in a column, format that column as Custom, 000000.
That should force the preceeding zeros when the data comes
in. HTH.
 
E

Ellen

When importing with the text import wizard (I guess that's
what they call it) there's a screen where you can format
your columns. Set the column with the leading zeros as
text. I see this issue on a regular basis. Are you
working with CAS#s by any chance?
 
G

Guest

-----Original Message-----
When I import a text file into Excel, leading zeros in columns are truncated.
Has anyone else seen this? Is there a cure?
.
Highlight your column/cell and go to "Data", "Text to
Columns".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top