+ Reply to Thread
Results 1 to 5 of 5

FALSE error in Formula

  1. #1
    Registered User
    Join Date
    01-16-2013
    Location
    Oklahoma City, OK
    MS-Off Ver
    Excel 2010
    Posts
    40

    FALSE error in Formula

    Good Morning All,

    I need some help on a Formula that is giving me fits. The formula is below, and I've also attached a spreadsheet with sample data.

    =IF(C2>25,MIN(INT(C2/3-B2),E2),IF(C2<24,MIN((5-B2),E2)))

    Basically it's working perfectly, except in a few cases it's returning a FALSE and I'm not quite sure why.

    Book1.xlsx

    Thank you!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: FALSE error in Formula

    =IF(C2>25,MIN(INT(C2/3-B2),E2),IF(C2<24,MIN((5-B2),E2)))

    In the book you posted, C2 is exactly 25.
    So C2>25 = FALSE
    It then goes to the 2nd IF
    C2<24, this is also FALSE.
    But you've omitted the valueiffalse part of the 2nd if.
    So it just returns FALSE.

    You probalby want

    =IF(C2>=25,MIN(INT(C2/3-B2),E2),IF(C2<=24,MIN((5-B2),E2)))

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: FALSE error in Formula

    Syntax for an IF condition
    =IF(condition, true, false)

    It's producing FALSE because you have no "false" result for C2<24,
    e.g. If C2 is 24 or 25 both conditions will fail, you have no result for false so you will get FALSE back.

    I suspect you have some C2 values between 24 and 25
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    01-16-2013
    Location
    Oklahoma City, OK
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: FALSE error in Formula

    Ahh thank you all! Something so simple tripped me up. I appreciate everyone's time this morning.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: FALSE error in Formula

    You're welcome.

+ 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. .Refresh BackgroundQuery:=False error
    By oligo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2014, 02:16 AM
  2. [SOLVED] Remove "FALSE" error message from this formula please?
    By CatSqueezer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2013, 03:39 PM
  3. [SOLVED] Getting #VALUE! error if formula returns false.
    By Jhail83 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-13-2013, 04:56 PM
  4. IF Statement returns either Value error or False
    By katja328 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2010, 12:46 PM
  5. FALSE error message
    By pentatonic145 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2007, 06: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