+ Reply to Thread
Results 1 to 9 of 9

How to use if with multiple conditions

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Unhappy How to use if with multiple conditions

    Hello

    I am trying to use if formula to satisfy 3 conditions, for example:

    this is my formula:

    =IF(K8>=1.2,E12),IF((I7<=K6),E13),IF(AND(K8<1.2,I7>K6),E11)

    I am trying to select e12 if K8>=1.2 and select E13 if I7<=K6 and to select E11 if the first 2 conditions are false. Anyone have any suggestions?

    RB

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to use if with multiple conditions

    Hi RB,

    Welcome to the forum.

    Try below formula:-

    =if(K8>=1.2,e12,if(I7<=1.2,e13,e11))

    Regards,
    DILIPandey


    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    06-22-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How to use if with multiple conditions

    That gave me E12 if K8>=1.2 and E11 if K8<1.2 and I7>K6

    but it did not give me E13 for I7<=K6



    RB

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to use if with multiple conditions

    E13 would be there if if(I7<=1.2

    Do you want E13 to appear if if(I7<=1.2 OR I7<= K6?

    I guess you need a combination of And, OR kind of arrangement,... please provide more details. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    06-22-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How to use if with multiple conditions

    I am trying to make a calculator for renal function.

    Ideal Body Weight (K6)
    Actual Body Weight (I7)
    ABW/IBW Ratio (K8)

    Creatinine Clearance (IBW): (E11)
    Creatinine Clearance (ABW*): (E12)
    Creatinine Clearance (Actual): (E13)

    I would like E12 to be selected if ABW/IBW Ratio >=1.2 (K8)
    I would like E13 to be selected if Actual Boday Weight (I7) < IBW (K6)
    I would like E11 to be selected if the above 2 conditions are not met.

    Thanks so much for your help.

    RB

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to use if with multiple conditions

    Hi RB,

    I would like to see some figures as well, could you upload an excel workbook with some sample data.. thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to use if with multiple conditions

    Try

    =IF(AND(K8<1.2,I7>=K6),E11,IF(K8>=1.2,E12,IF(I7<K6,E13,"")))

  8. #8
    Registered User
    Join Date
    06-22-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How to use if with multiple conditions

    Thanks for your help guys! That worked!

    RB

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to use if with multiple conditions

    You're welcome. Please remember to mark your thread as SOLVED (instructions are in rule #9 - click Forum Rules @ top of page to view).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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