+ Reply to Thread
Results 1 to 9 of 9

IF returns unexpected value

  1. #1
    Registered User
    Join Date
    12-18-2014
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    8

    IF returns unexpected value

    Dear members,

    i will need your lights again!

    i have this formula

    IF(True; 6; MIN($G$37;I26)

    this is coming from the formula evaluation process. The checking statement is true, the formula in the [value if true] is calculated with a result of 6 and then I have the formula [if false]..

    it is safe to assume that the return should be 6 but instead i get 30 which comes from the MIN() function.

    i cannot understand why IF does not return what it supposed to.

    any ideas?

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: IF returns unexpected value

    Perhaps upload a sample copy of your worksheet with any sensitive data removed? If some data is necessary, include fake data that mimics your real data.

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

    Re: IF returns unexpected value

    My guess: the calculation mode is Manual, not Automatic, and a previous set of data effectively produced IF(FALSE; 6; MIN(...)).

  4. #4
    Registered User
    Join Date
    12-18-2014
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    8

    Re: IF returns unexpected value

    here is an example of what i am dealing with.. any suggestion to improve computations is welcomed
    Attached Files Attached Files

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF returns unexpected value

    Hi,

    It's because of all your circular references. Locate and correct them (Formulas tab/Error Checking/Circular References.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Registered User
    Join Date
    12-18-2014
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    8

    Re: IF returns unexpected value

    i did that but i get no error and no circular reference!

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF returns unexpected value

    The workbook you posted has five circular references.

    Regards

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,898

    Re: IF returns unexpected value

    Yes, there's a circular reference error flagged as soon as you open the workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    12-18-2014
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    8

    Re: IF returns unexpected value

    thank you for the replies! i am grateful once again!

    i am not so experienced, i will try to simplify the data and put them in a logical order.

    in the mean time, my excel does not flag anything as i open it or when i check for errors.

    good day to all

+ 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: 10-28-2019, 07:16 AM
  2. [SOLVED] WorksheetFumction.Max returns unexpected value
    By CostCare in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2017, 04:33 AM
  3. Replies: 7
    Last Post: 06-22-2016, 04:31 PM
  4. [SOLVED] MATCH function returns an unexpected result
    By Pepe Le Mokko in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2013, 09:44 AM
  5. [SOLVED] nested If returns unexpected result
    By nicolelschramartin in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-11-2012, 05:22 PM
  6. MAX with IF Returns Unexpected Value
    By ataxia1 in forum Excel General
    Replies: 2
    Last Post: 04-01-2012, 08:24 AM
  7. INT function returns unexpected results
    By 6StringJazzer in forum Excel General
    Replies: 9
    Last Post: 03-24-2010, 08:24 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