Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 71
Default Importing long numbers from CSV file

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 71
Default Importing long numbers from CSV file

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Importing long numbers from CSV file

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 71
Default Importing long numbers from CSV file

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Importing long numbers from CSV file

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing CSV file (saved as Text) into XL as Text -- over 60 colu sbp Excel Discussion (Misc queries) 1 October 14th 06 11:50 PM
importing a particular excel worksheet into another excel file dinouk Excel Worksheet Functions 0 August 10th 06 02:03 PM
Why are 1/2 my numbers imported as text and the rest as numbers? KBear Excel Discussion (Misc queries) 2 April 21st 06 01:40 PM
Format cells with a formula (7 conditions). danindenver Excel Discussion (Misc queries) 3 January 2nd 06 02:40 PM
Importing text file to excel dany04 Excel Discussion (Misc queries) 1 November 9th 05 01:13 AM


All times are GMT +1. The time now is 04:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"