+ Reply to Thread
Results 1 to 4 of 4

IF Function - 3 Conditions

  1. #1
    Registered User
    Join Date
    06-30-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    52

    IF Function - 3 Conditions

    So I'm trying to do an IF function based on 3 conditions

    If Cell F <= I3*1.10,"Value if True", if(F > I, "Value if True", "Value if False"))

    What I'm trying to do is:

    If annual is greater than budget but only by budget * 1.10 then populate a value
    If annual is greater than budget by more than budget *1.10 then populate a value
    and if annual greater than budget then populate a value

    im trying to do multiple ifs but it only populates one value..

    any help would be greatly appreciated

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: IF Function - 3 Conditions

    IF will return only one value: that which is associated with the first condition that is satisfied. Once it finds what it is looking for, it stops looking even though subsequent conditions may also be true.

    In your case you might have to use some AND Statements. if(AND(F>I,F <= I*1.3),Value 1),if(F>I*1.3,Value 2,Value 3))

    So this means if annual is greater than budget AND less than or equal to 1.3 Budget use Value 1.
    else
    if annual > 1.3 Budget than us Value 2.
    else
    the only possibility left is that annual is less than budget, in which case use Value 3.

    -=edit=-

    I just looked at this and decided that an easier formula (and cleaner logic) is

    IF (F<I , Value 1, IF (F<=1.3 * I, Value 2, Value 3))

    if annual is less than budget, use value 1

    if annual is less than 1.3 * budget, use value 2 - we've already eliminated the possibility that annual is less than budget, because if it were, the if statement would have stopped before it got here.

    The only possibility left is that annual is > 1,3 * budget. Use Value 3.
    Last edited by dflak; 12-04-2017 at 02:48 PM.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    06-30-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    52

    Re: IF Function - 3 Conditions

    Still the same result - column F is budget and column I is actual.

    So what the result is that if I < F its not populating "under budget" instead, its populating, within 10% of budget. even though its less than budget

  4. #4
    Registered User
    Join Date
    06-30-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    52

    Re: IF Function - 3 Conditions

    Thanks it worked actually!

+ 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: 2
    Last Post: 01-14-2016, 03:53 PM
  2. [SOLVED] Satisfying 2 conditions using if function or other function
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2013, 12:19 PM
  3. If function with 2 conditions.
    By Jakkov in forum Excel General
    Replies: 4
    Last Post: 07-29-2010, 03:04 PM
  4. Using IF function with 4 conditions...
    By Kayote in forum Excel General
    Replies: 2
    Last Post: 04-17-2007, 06:08 AM
  5. [SOLVED] Two Conditions Function
    By Roger Govier in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 02:05 PM
  6. [SOLVED] Two Conditions Function
    By Karthik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  7. [SOLVED] Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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