Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Fish
 
Posts: n/a
Default Replacing last digit with Zero

I have a CSV file that has 16 digit numbers in it, when I open the file Excel
replaces the last digit with a zero. Saving it as an .xls file and changing
the format to allow for a 16 digit number still gives the same results. If I
open the file in notepad I can see the proper numbers in there. if you type
in 1234567891234567 it will display it as 1.23457E+15, then when you change
the format it replaces the 7 with a zero.

Thanks, Jim

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid
 
Posts: n/a
Default Replacing last digit with Zero

Jim,
this is because Excel supports up to 15 digits in precision. Digits
beyond the 15th are truncated.
Try formatting the destination cells to Text (Format | Cells... |
Number tab, choose Text). The imported data should be stored as text,
no digits will be lost. However, if you attempt to use them in
numerical calculations, the calculation will only take into account the
15 most significant digits.

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Replacing last digit with Zero

When Excel opens your .csv file it is converting the 16 digit number string
into an integer. If your .csv file has very long strings of digits, rename
the file to .txt. When you open the .txt file, Excel will present you with
an import wizard. Tell the wizard that the long digit strings are a text
field
--
Gary's Student


"Fish" wrote:

I have a CSV file that has 16 digit numbers in it, when I open the file Excel
replaces the last digit with a zero. Saving it as an .xls file and changing
the format to allow for a 16 digit number still gives the same results. If I
open the file in notepad I can see the proper numbers in there. if you type
in 1234567891234567 it will display it as 1.23457E+15, then when you change
the format it replaces the 7 with a zero.

Thanks, Jim

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
Creating a Check Digit Ilan Charts and Charting in Excel 1 December 3rd 05 12:43 PM
Excell Check Digit Formula tnelson Excel Worksheet Functions 1 August 28th 05 11:30 PM
only 5 digit zip codes sweet_tart08 Excel Discussion (Misc queries) 1 July 13th 05 05:28 PM
Return a digit in a string of numbers W M Excel Discussion (Misc queries) 5 May 11th 05 06:51 PM
Tell users how to sort 5 digit and 9 digit zipcodes correctly aft. [email protected] New Users to Excel 1 February 18th 05 12:59 AM


All times are GMT +1. The time now is 09:44 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"