+ Reply to Thread
Results 1 to 5 of 5

Excel forgotten how to add

  1. #1
    Registered User
    Join Date
    03-23-2019
    Location
    Phuket Thailand
    MS-Off Ver
    2016
    Posts
    2

    Excel forgotten how to add

    I had a problem yesterday where a cell answer should have been zero after subtracting the same number over 130 cells. The two rows above it gave the zero answer so I couldn't understand where I had made an error. To check it was not me I started a new spreadsheet and did this:

    in cell B2 input the number -3
    in cell B3 below it input the formula =B2+0.1
    copied that down to cell B36
    in cell B32 the answer was 1.53E-15 instead of zero
    when the cell format is changed to 30 decimal places it can be seen that excel makes an error in cell B22 for some unknown reason

    I have also contacted Microsoft help who were able to replicate the error so not my computer doing something weird. Unfortunately their advice was to format the number and the problem would go away! I have posted my example spreadsheet and would appreciate any advice on how to resolve.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Excel forgotten how to add

    You have a floating point error

    floating point error
    https://support.microsoft.com/en-gb/...sults-in-excel

    https://www.microsoft.com/en-us/micr...wrong-answers/

    https://www.excel-easy.com/examples/...nt-errors.html

    so you need to use a round()
    =ROUND(B2+0.1,1)
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    03-23-2019
    Location
    Phuket Thailand
    MS-Off Ver
    2016
    Posts
    2

    Re: Excel forgotten how to add

    etaf
    Thanks for the useful information. Having used excel for over 20 years this is the first time the error has turned up for me. Whilst your explanation makes sense I don't think it solves the problem. adding a Round function as a work around seems completely wrong. The fact remains excel cant add or subtract correctly. In the simple example I gave, Microsoft help advice was to use the number format to 2 decimal places, which when used displays 0.00 but when you ask if the cell = zero with an IF statement it clearly does not.

    If you look at the example I posted the rounding issue only turns up after 19 copies of the formula. If you change -3 to -30 and still add 0.1 the error turns up at the 35th copy with the prior 34 copies answer correct to 124 decimal places and logically challenged by an If statement . With that sort of inconsistency I don't think it reasonable for Microsoft to use the excuse on number standards.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Excel forgotten how to add

    Whilst your explanation makes sense I don't think it solves the problem.
    as you will see from the links I posted or if you search for Excel Floating Point Error - you will see this is a very very common issue
    Formatting the cell , will make no difference to the result , as that is the number that is displayed NOT the number that is actually contained in the cell - So even though thats what MS may have said to you - as you have found out , its not actually a solution for some applications of excel.

    Again those articles I posted actually show that error and impact when used in any logical test - for TRUE & FALSE, you get the WRONG result, since displaying to 2 decimal places does NOT actually resolve whats contained within the actual cell.

    I guess you have been lucky not to have come across this in 20 years of using excel or perhaps it did happen, but in the application you have been using was not visible or an issue

    I don't think it reasonable for Microsoft to use the excuse on number standards.
    agree, BUT it a known error, and you will need to work around it, as excel will not be changed anytime soon.

    I have been using excel since version 4 about 1992 and before that lotus 123 from about 1987 - the first time i came across the error was in 2006 when I was doing a highly complex financial currency exchange conversion across about 30 countries and different currencies for one of the largest global IT company.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Excel forgotten how to add

    I agree with etaf - this is a long-standing known problem, with quite a few ways to work around it. Without changing the whole underlying mechanics that excel is based on - which is about as likely as me falling pregnant (Im a guy btw), there is no way this will be rectified. It is not a "excel cannot add" problem, it is a fundamental underflow/overflow situation with binary math
    Microsoft Excel was designed around the IEEE 754 specification to determine how it stores and calculates floating-point numbers. IEEE is the Institute of Electrical and Electronics Engineers, an international body that, among other things, determines standards for computer software and hardware. The 754 specification is a very widely adopted specification that describes how floating-point numbers should be stored in a binary computer. It is popular because it allows floating-point numbers to be stored in a reasonable amount of space and calculations to occur relatively quickly. The 754 standard is used in the floating-point units and numeric data processors of nearly all of today's PC-based microprocessors that implement floating-point math, including the Intel, Motorola, Sun, and MIPS processors.
    So, it is a problem with the system excel is based on, not a problem with excel.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 06-24-2006, 11:00 PM
  2. i have forgotten the password i made for an excel document
    By nmunk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-21-2006, 12:55 PM
  3. How to open Excel spreadsheet when forgotten password
    By Glenys693 in forum Excel General
    Replies: 0
    Last Post: 03-26-2006, 06:55 PM
  4. [SOLVED] RE: How to open Excel spreadsheet when forgotten password
    By bigwheel in forum Excel General
    Replies: 0
    Last Post: 03-26-2006, 06:50 PM
  5. HELP, I'VE FORGOTTEN
    By Mickey Mouse in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-08-2006, 06:10 PM
  6. [SOLVED] how do i recover a forgotten excel password
    By Shadow in forum Excel General
    Replies: 1
    Last Post: 11-17-2005, 07:43 AM
  7. [SOLVED] how can i unprotect an excel worksheet when i have forgotten passw
    By Bowling265 in forum Excel General
    Replies: 1
    Last Post: 09-02-2005, 09:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1