It is interesting because this is an ID mixed in with a handful of others as a teb-delimited text file. I can’t figure out a way to stop this from happening when I open the file straight into Excel.
If I create a new worksheet, change the cell to text and enter the data, it does work fine. The problem is I’m not hand entering this stuff.
I just tried this with a large tab-delimited text file. Upon opening the file, the Text Import wizard starts. On the third page of the wizard–where you set the format of each column, highlight the column containing the IDs and change the format type to “text” using the “Column Format” radio buttons in the upper right-hand corner. All data in this column will then be treated as text. If you leave it as “general”, 3E281 is indeed stored as the number “3E+218”.
“3E+218” is shorthand for the numeral “3 x 10^218”, the value represented by the digit 3 followed by 218 zeroes. Many computer programs store scientific numerical data in this way–using “E” to stand in to the multiplication by an exponent–since it is difficult for ASCII test to show exponents.
Scientific notation is a compact numerical way to handle very large or very small numbers, which come up quite commonly in scientific work.
I just tried this with a large tab-delimited text file. Upon opening the file, the Text Import wizard starts. On the third page of the wizard–where you set the format of each column, highlight the column containing the IDs and change the format type to “text” using the “Column Format” radio buttons in the upper right-hand corner. All data in this column will then be treated as text. If you leave it as “general”, 3E281 is indeed stored as the number “3E+218”.
“3E+218” is shorthand for the numeral “3 x 10^218”, the value represented by the digit 3 followed by 218 zeroes. Many computer programs store scientific numerical data in this way–using “E” to stand in to the multiplication by an exponent–since it is difficult for ASCII test to show exponents.
Scientific notation is a compact way to handle very large or very small numbers, which come up quite commonly in scientific work.
Excel has it’s roots in accounting, so it assumes that any valid number entered into a cell is meant to be a number. You have to delineate the entry as text with the apostrophe, or overall formatting as CJJ* noted.
Yes, but if you open a blank sheet and then use the import function, you will get the options that CJJ* pointed out. Furthermore, there will be a button on the toolbar the allows you to ‘Update’ your data. Forever more you would be able to import your data at the click of a botton, do whatever it is you need to do to it, and then save it off to a file. No muss, no fuss.
I had this problem before, with Excel formatting certain serial numbers as dates. If you use the import function, and designate your columns to be text, it will work ok.
Checking the document I wrote up about it (our clients have to do this sometimes), you use Data->Get External Data -> Import Text File, make sure your delimiters are set right, and then force it to import the problem columns as text.