Cell format on reading .csv file

  • Thread starter Thread starter sdawson
  • Start date Start date
S

sdawson

I have a .csv file where fields may have value "01234".

When I read this file into Excel, I want the cell to be formatted as text
(so the 0 is retained). By default Excel formats as numeric and loses the 0.

There is an alternative where I can rename the file as .txt and use the
wizard, but I want to see if there is a simpler alternative.

I have tried prefixing the field with "'" character, but that resyults in
the value "101234" in the cell.

Any ideas?
 
You dont need to rename the file instead in 2007 from menu Data>From Text and
in 2003 from menu Data>Import External Data>Import Data select the .csv file
to be opened and then follow ..the Wizard.

If this post helps click Yes
 
Thanks Jacob - just found that one as well; but is there nothng I can do to
the field in the csv to make Excel automatically interpret as text?

If I type directly into the cell, I can force Excel to intepret as text by
prefixing with "'". I was hoping for something similar I can use fo the file.
 

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

Back
Top