+ Reply to Thread
Results 1 to 8 of 8

Excel failing at simple math?

  1. #1
    Registered User
    Join Date
    11-11-2018
    Location
    Minnesota
    MS-Off Ver
    2016
    Posts
    3

    Question Excel failing at simple math?

    I have this huge spreadsheet with a ton of formulas that was giving me odd results. I traced it back to a very simple math formula that wasn't calculating correctly.

    Cell H8 contains =(E74*B8)
    E74 was 1.5 and B8 was 3.69 yet cell is displaying 169.2

    Cell E74 was getting the value of 1.5 by summing up a column so I changed it to 1.5 rather than have it sum, and then Cell H8 properly showed 5.5. I used the undo button to switch back to the formula, and then cell H8 was properly showing the value of 5.5....but another cell that is adding H9 to H8 is still giving a result as if H8 is the old incorrect value of 169.2

    Please see attached screenshots. Sorry am not allowed to share actual sheet.
    Attached Images Attached Images

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,198

    Re: Excel failing at simple math?

    Sounds like you have calculation set to manual.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,878

    Re: Excel failing at simple math?

    Hi Fluff,

    I also thought that, but it would help the OP if you told him what to do about it (i.e. click on the Formulas tab, then in the Calculation group click on Calculation Options and ensure that Automatic is checked).

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    11-11-2018
    Location
    Minnesota
    MS-Off Ver
    2016
    Posts
    3

    Re: Excel failing at simple math?

    just checked my Excel Options, automatic is turned on.

    also clicking calculate now just causes the numbers to drop off and reappear at same value

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Excel failing at simple math?

    If "a picture is worth a thousand words", an Excel file is worth a million.

    Attach an example Excel file (redacted) that demonstrates the problem. Unfortunately, that is not as easy in this forum as it should be. Click Go Advanced, then scroll down and click Manage Attachments. The Attachments icon on the toolbar does not work.

    Since the "obvious" solution (Automatic calculation mode) does not fix the problem, my wild guess is: there is a series of circular references. Since a circle has no beginning, no end, Excel cannot always ensure that all of the cell values in the series are consistent.
    Last edited by joeu2004; 11-12-2018 at 11:11 AM. Reason: "fix" --> "not fix"; other typos

  6. #6
    Registered User
    Join Date
    11-11-2018
    Location
    Minnesota
    MS-Off Ver
    2016
    Posts
    3

    Re: Excel failing at simple math?

    I am purposely running a series of circular references, and reiterate calculations is on. I have a sheet for every day of the week. They are all working fine. I ended up just copying one of those renaming it and going forward.

    Could this be to running excel on an old laptop will a slow processor and limited memory? (I'm guessing running a circular reference 1000 times takes a lot of resources)

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,949

    Re: Excel failing at simple math?

    That is starting to sound like your iterative algorithm is diverging or oscillating and not converging onto an appropriate value. I think the next debugging step I would try is to set max iterations to 1, then repeatedly press F9 and see if the cells involved in the iterative calculation are oscillating (or otherwise doing something unexpected). If it turns out that they are, then you will need to investigate further as to why the algorithm is not converging.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Excel failing at simple math?

    Quote Originally Posted by Andrew337 View Post
    I am purposely running a series of circular references, and reiterate calculations is on.
    My previous "wild guess" seems to apply. But it might not have been clear, due to many typos. I meant to write:

    ``my wild guess is: there is a series of circular references. Since a circle has no beginning, no end, Excel cannot always ensure that all of the cell values in the series are consistent.``

    This might be even more true if the circular references run through several worksheets (you wrote: ``I have a sheet for every day of the week``).

    I used to have a simple example to demonstrate this behavior; cannot find it. I would not call it "misbehavior" by Excel. Again, Excel cannot ensure the consistency of interdependent circular references, by definition. It might have worked before only by coincidence; and something might have changed in Excel to reduce the serendipitous result.

    The take-away is: designs with interdependent circular references are inherently flawed. They are a "bad practice", IMHO.

    I can usually avoid circular references by adding helper cells. If necessary, I resort to using a VBA function (UDF) to do the iteration.

    Or better: Sometimes I can find a different way to solve the problem by spending more time on the mathematics of the problem.
    Last edited by joeu2004; 11-12-2018 at 11:30 AM.

+ 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. Simple VLookup Failing
    By yahoowizard in forum Excel General
    Replies: 7
    Last Post: 05-08-2015, 04:10 PM
  2. [SOLVED] Simple math formula
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-26-2013, 10:18 PM
  3. Excel 2007 : Simple math problem
    By kingbob in forum Excel General
    Replies: 1
    Last Post: 09-10-2009, 03:21 PM
  4. Replies: 3
    Last Post: 02-16-2006, 07:00 AM
  5. [SOLVED] Need help, simple math...from a percentage
    By cfiser in forum Excel General
    Replies: 2
    Last Post: 11-17-2005, 12:55 PM
  6. Incorrect Simple Math
    By mklalli in forum Excel General
    Replies: 4
    Last Post: 11-12-2005, 09:30 AM
  7. Simple math calculation - 50/50?
    By Abi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2005, 03:06 PM

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