Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default 16th digit in the cell changes to a zero??

Our company uses a program that has some inventory items that are 16
numerical digits long. When I run an export to a csv file. I notice that
after opening the file, all the cells that have skus which are 16 digits
long, get changed to end with a zero instead of the real number. After some
labored testing, I finally decided to try to manually input a sample number
into excel and noticed that the 16th digit gets changed everytime to a zero.
Is there a fix or way to keep this from happening?

Thanks in advance for your help.

Roman
  #2   Report Post  
Niek Otten
 
Posts: n/a
Default

Excel's precision for numbers is 15 significant digits.
If an identifying item, such as credit card number or product number has to
be used, don't treat it as a number, since it is not meant to calculate
with.
Treat is as text can be done in several ways: enter an apostrophe before
entering the number (the apostrophe will not show) or format the cells as
text before entering the numbers.
Or have the exporting program export something like A12345678901234567 (add
an "A") and remove the A in Excel.

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

" wrote in
message ...
Our company uses a program that has some inventory items that are 16
numerical digits long. When I run an export to a csv file. I notice that
after opening the file, all the cells that have skus which are 16 digits
long, get changed to end with a zero instead of the real number. After
some
labored testing, I finally decided to try to manually input a sample
number
into excel and noticed that the 16th digit gets changed everytime to a
zero.
Is there a fix or way to keep this from happening?

Thanks in advance for your help.

Roman



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

But if you can see the 16th digit before you save the file, you'll be able to
see the 16th digit in the CSV file--if you open that file in notepad (or
anyother text editor).

But when you reopen the .csv file in excel, excel will "fix" your data (like
Niek wrote).

You could rename the .csv file to .txt, then when you reopen that file (via
File|open), you'll be able to specify each field type--including text for those
long digit strings.



wrote:

Our company uses a program that has some inventory items that are 16
numerical digits long. When I run an export to a csv file. I notice that
after opening the file, all the cells that have skus which are 16 digits
long, get changed to end with a zero instead of the real number. After some
labored testing, I finally decided to try to manually input a sample number
into excel and noticed that the 16th digit gets changed everytime to a zero.
Is there a fix or way to keep this from happening?

Thanks in advance for your help.

Roman


--

Dave Peterson
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
Cell addressing using the content of another cell. De Jandon Excel Worksheet Functions 5 April 1st 05 10:59 PM
how can i get a cell to hold a zero in front of a digit ie. 01 or. Southern Belle Excel Discussion (Misc queries) 2 February 2nd 05 09:56 PM
excel - numbers as text Thuferhawat New Users to Excel 12 January 24th 05 09:29 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
16 DIGIT NUMBERS IN CELL WITHOUT LAST DIGIT BEING A ZERO jnkell Excel Worksheet Functions 2 December 18th 04 07:13 PM


All times are GMT +1. The time now is 08:18 PM.

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

About Us

"It's about Microsoft Excel"