Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm trying to import data from a CSV file, where one of the columns contains
both text and numbers. This column is being imported as a "General" column. The numbers in the CSV file are like this "6123011162730412" After the data import, they are shown in Excel as "6.12E+15" or 6123010000000000 Any thoughts on how can this can be resolved would be much appreciated? Many thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sorry, I forgot to mention that I've already tried renaming from CSV to TXT
without success "Harry" wrote: I'm trying to import data from a CSV file, where one of the columns contains both text and numbers. This column is being imported as a "General" column. The numbers in the CSV file are like this "6123011162730412" After the data import, they are shown in Excel as "6.12E+15" or 6123010000000000 Any thoughts on how can this can be resolved would be much appreciated? Many thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Before you import, change the file extension from .csv to .txt. Then, using
the wizard, you'll be able to specify that the long numbers should be treated as text. Excel can only cope with 15 significant figures, so any "number" with more (like a credit card number) will be truncated one way or another unless you tell excel to treat it as text. -- Noel "Harry" wrote in message ... I'm trying to import data from a CSV file, where one of the columns contains both text and numbers. This column is being imported as a "General" column. The numbers in the CSV file are like this "6123011162730412" After the data import, they are shown in Excel as "6.12E+15" or 6123010000000000 Any thoughts on how can this can be resolved would be much appreciated? Many thanks in advance. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for the prompt reply Ildhund, but unfortunately that doesn't seem to
work either. The result displayed AND the ACTUAL value are both 6.12301E+15 now, whereas previously the ACTUAL value was "6123010000000000". (By actual value, I mean the value in the formula bar when I click on the cell.) This may have something to do with the text import wizard because the number is displayed as "6.12301E+15" in the "Data Preview Pane" at step 2 of the Wizard. btw. not sure if this relevant but the "file origin" in Step1 is "437 : OEM United States", I've also tried changing that to "1252 : Western European (Windows)" without any success. Any other ideas that might be worth trying ? "Ildhund" wrote: Before you import, change the file extension from .csv to .txt. Then, using the wizard, you'll be able to specify that the long numbers should be treated as text. Excel can only cope with 15 significant figures, so any "number" with more (like a credit card number) will be truncated one way or another unless you tell excel to treat it as text. -- Noel "Harry" wrote in message ... I'm trying to import data from a CSV file, where one of the columns contains both text and numbers. This column is being imported as a "General" column. The numbers in the CSV file are like this "6123011162730412" After the data import, they are shown in Excel as "6.12E+15" or 6123010000000000 Any thoughts on how can this can be resolved would be much appreciated? Many thanks in advance. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Sat, 13 Jan 2007 15:43:20 -0800, Harry
wrote: Thanks for the prompt reply Ildhund, but unfortunately that doesn't seem to work either. The result displayed AND the ACTUAL value are both 6.12301E+15 now, whereas previously the ACTUAL value was "6123010000000000". (By actual value, I mean the value in the formula bar when I click on the cell.) This may have something to do with the text import wizard because the number is displayed as "6.12301E+15" in the "Data Preview Pane" at step 2 of the Wizard. btw. not sure if this relevant but the "file origin" in Step1 is "437 : OEM United States", I've also tried changing that to "1252 : Western European (Windows)" without any success. Any other ideas that might be worth trying ? Can you give a sample of the actual data in the file you are importing? If I set up a file with long numbers; save it as a *.txt file, and then open the file with Excel 2002, the wizard shows the original data at step 2, and I can specify text for the type and have it imported correctly. I wonder if there is something unusual about your data, or the process you are using. --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Importing CSV file (saved as Text) into XL as Text -- over 60 colu | Excel Discussion (Misc queries) | |||
importing a particular excel worksheet into another excel file | Excel Worksheet Functions | |||
Why are 1/2 my numbers imported as text and the rest as numbers? | Excel Discussion (Misc queries) | |||
Format cells with a formula (7 conditions). | Excel Discussion (Misc queries) | |||
Importing text file to excel | Excel Discussion (Misc queries) |