![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 5
|
When opening a text file containing security IDs(mixture of numbers and characters), any security ID containing a "E" in the 8th position, followed by numbers, is interpreted as scientific notation. This goes further than cell formatting, the cell data has been altered. I have tried pre-setting the cell format to text prior to getting the external data, but no luck. BTW: MS Word opens this file just fine.
Any ideas? - Audri |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Wellington
Posts: 104
|
Hi,
You might want to try using the following formula to convert the number into text: =text(A1,"0") HTH |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
If that does not work, set it up as a string with an apostrophe in front of the first character. Such as AABBCCDE4524
Throw it into a string not a variant like this "'AABBCCDE4524" That should bully Excel into taking it as a text string. Hope It Works! Tom |
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi Audri
Try Importing the text file via Data>Get external data>Import text file. The last step of this Wizard allows you to easily nominate the Column format to be used. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|