+ Reply to Thread
Results 1 to 3 of 3

NESTED IF Formula not returning value despite conditions being true...

  1. #1
    Registered User
    Join Date
    02-22-2021
    Location
    Melbourne
    MS-Off Ver
    2008
    Posts
    1

    NESTED IF Formula not returning value despite conditions being true...

    Calling All Excel Gurus!

    I need your expertise to advise me on why this nested if formula isn't returning the $20K value despite all conditions being true.

    See screenshots below for details

    Thanks in advance!
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: NESTED IF Formula not returning value despite conditions being true...

    Screenshots are useless compared to attaching sample files. Even with proprietary data, you could replace all text with Xs and clear all numbers other than those producing the problem.

    In this case, I'd guess that the problem is floating point rounding error. Instead of using SUM(...)=0, change that to ABS(SUM(...))<1E-6.

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

    Re: NESTED IF Formula not returning value despite conditions being true...

    Quote Originally Posted by mosmanpk View Post
    advise me on why this nested if formula isn't returning the $20K value despite all conditions being true.
    As someone else wrote: if a picture is worth 1000 words, an Excel file is worth 1000 pictures. It is better to attach an example Excel file (redacted and simplified) that demonstrates the problem.

    That said....

    It appears that you have a circular reference. In H10, the IF-expression references SUM($F10:H10).

    It is unclear whether that is a typo (other parts of the IF-expression reference G10) or on purpose.

    If you are not getting a "circular reference" warning (lower-left of the status bar), you have Iterative calculation mode enabled. IMHO, that mode is "evil"; many purposeful circular references cause "inexplicable" results.

    Bottom line: fix the reference to H10; be sure that you do not depend on circular references on purpose; and be sure that Iterative calculation mode is disabled (click Files > Options > Formulas).

    -----

    Aside....

    It is prudent to explicitly round calculations with decimal fractions that we expect to accurate to some number of decimal places. For example, ROUND(SUM($F10:G10),2).

    It might be prudent to explicitly round other calculations, as well. For example, the cells that appear to be 0.00 due to cell formatting might be as large as 0.00499999999999999.

    (But only if those values are the result of calculations. Normally, constants do not need to be rounded.)

    Normally, cell formatting only affects the appearance of values, not their actual value.

    -----

    PS.... Unless you might have purposeful Excel errors in some referenced cells (they should be avoided, IMHO), consider the following form of the formula in H10 (fixing the circular reference), which minimizes function nesting.

    Please Login or Register  to view this content.
    Last edited by joeu2004; 02-22-2021 at 08:50 PM.

+ 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. Nested IF Returning False - Need to Return True for Three Scenarios
    By rhelmer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2015, 05:50 PM
  2. [SOLVED] A Little Help Please - Nested IF's i think... Looking to do a IF Conditions True, then SUM
    By RichyRichNeedsHelp in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-07-2015, 12:13 PM
  3. Change from checking if 2 conditions are true to if any of 4 conditions are true
    By tafoyavision in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2014, 02:17 PM
  4. Replies: 1
    Last Post: 03-26-2014, 02:14 PM
  5. Nested IF & AND not returning a true response.
    By wooby103 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-11-2012, 10:02 AM
  6. Nested if with two true conditions
    By joey_cava in forum Excel General
    Replies: 3
    Last Post: 06-09-2010, 04:21 AM
  7. Returning a Value if 3 Conditions are True
    By brownie224 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2006, 07:00 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