Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format of Excel Column 2

Status
Not open for further replies.

kabushnell

Technical User
Jun 4, 2003
81
US
I have a .txt file that I am opening with Excel so I can parse some data from the file and import into another program. I have one column of data that I cannot get to format properly. Most of the cells contain numbers which need to be formated to nine digits. I can format those ok using the custom feature and setting the format to 000000000. There are a group of cells though that contain 74680E101 in the original data but when opened by Excel it changes the cell to 7.468E+105. Is there a way to format this column so that the numbers are all nine digits long and these other cells are 74680E101 versus 7.468E+105?
 
You need to force the column to text format. "74680E101" is a valid number in so-called scientific notation, and will normally be interpreted as a number.
 



FYI,

Fields that contain NUMERIC CHARACTERS that are not used for numeric calculations are usually IDENTIFIERS, like Part Number, Invoice Number, ZIP code, Employee Number, etc.

These fields should be imported as TEXT, as pbrodsky suggested.

Skip,

[glasses] [red][/red]
[tongue]
 
Thanks, that's what I needed. When I do the Text to Columns I just format that column as text and it comes through fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top