Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Software > Spreadsheets   »   MS Excel spreadsheet changing numbers

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Mar 24, 2006, 04:50 AM
zix
Junior Member
zix is offline
 
Join Date: Aug 2005
Posts: 37
zix See this member's comment history on his/her Profile page.
MS Excel spreadsheet changing numbers

I have a spreadsheet where I enter credit card numbers, 16 digits. One note, I have the field setup as a custom format, that displays in the custom format as ####-####-####-####. This way it automatically adds the 4 dashes.

For some reason, it always changes the last digit to zero. For example, I enter 1111222233334567, after I hit enter, it becomes 1111-2222-3333-4560.
WHY is it doing changing the 7 to a 0 ???????



This error, of changing the last digit to zero, only occurs when I type my data into my custom format field.

Reply With Quote
 
     

Answers
 
 
Old Mar 24, 2006, 06:28 AM   #2  
Senior Member
colbtech is offline
 
colbtech's Avatar
 
Join Date: Aug 2005
Location: Guernsey
Posts: 702
colbtech See this member's comment history on his/her Profile page.
Just tried your problem. I get the same thing. Have you reported it to microsoft? It also happens after 15 digits, the 16th changes to a zero????

Microsoft knowledgebase shows:

SYMPTOMS
When you type a number that contains more than 15 digits in a cell, Microsoft Excel changes any digits past the fifteenth place to zeroes. For example, if you attempt to type a credit card ID number in the following format
####-####-####-####
Excel changes the last digit to a zero.
CAUSE
Excel follows the IEEE 754 specification on how to store and calculate floating-point numbers. Excel therefore stores only 15 significant digits in a number, and changes digits after the fifteenth place to zeroes.
WORKAROUND
To work around this behavior, format the cell as text. The cell can then display up to 1,024 characters.
MORE INFORMATION
This behavior only occurs with numbers that are intended for calculation, that is, in cells that are formatted as numbers. In cells that are formatted as text, you can type up to 32,767 characters, of which Excel displays up to 1,024 characters on the worksheet.

Because custom number formats are designed to work primarily with numbers, you cannot create a custom number format that stores more than 15 digits. For example, you cannot use the following format to store a 16-character credit card ID as a number:
####-####-####-####
If you type the number 1111222233334444 in a cell that uses the ####-####-####-#### format, Excel displays 1111-2222-3333-4440 in the cell. The actual number that you are attempting to store is 1,111,222,233,334,444, which is over one quadrillion. But because this number is so large, Excel drops the last (least significant) digit, and puts a zero in its place.

Comments on this post
StuMegu agrees: Good answer, changing the field to text format should sort this issue
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
The Red Heifer Of Numbers 19
(7 replies)
Iodine Numbers
(3 replies)
Possible to link a spreadsheet 2 way
(7 replies)
What are the next 3 numbers in the sequence?
(1 replies)
cell phone numbers
(2 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 10:55 AM.