+ Reply to Thread
Results 1 to 9 of 9

Nested IF function with multiple criteria

  1. #1
    Registered User
    Join Date
    01-03-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    19

    Nested IF function with multiple criteria

    Hello,
    Dear users,
    I need your help to create a formula where I can have multiple conditions using IF statement.

    See the attached file.

    I want a formula like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.




    I don't know where is the error here.

    Thank you for your time.

    Regards,

    Florian
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Nested IF function with multiple criteria

    What are you trying to archive Florian?

    Your formula is this =IF(E5>=100%;$F$3;IF(AND(E5>=70%;E5<70%);E5*$F$3;"0"))

    and gives 0 as result because both E5 & F3 of your sample sheet are empties..so correctly formula gives you 0 as result..
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nested IF function with multiple criteria

    Hi,

    Where's the error and why do you think it is an error?

    I guess you're probably getting at D4 onwards, but if you examine the formula you'll see that C4 can't ever be both >=70% AND <70%. Hence this will always fail and since you don't specify a False element in your second IF test you'll always get zero as the answer.

    I suspect your formula in D3 copied down should simply be
    =IF(C3>=100%,$E$1,C3*$E$1)

    but only you can say what answer you are expecting.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Nested IF function with multiple criteria

    use OR instead of AND

    like

    =IF(C4>=100%;$E$1;IF(OR(C4>=70%;C4<70%);C4*$E$1;0))

    i think its an explanation difficulties.
    Click on * below if you find this helpful

    Thanks,
    A

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nested IF function with multiple criteria

    Quote Originally Posted by amy_d2 View Post
    use OR instead of AND

    like

    =IF(C4>=100%;$E$1;IF(OR(C4>=70%;C4<70%);C4*$E$1;0))

    i think its an explanation difficulties.
    But by the same token C4 will always be either >=70% OR <70%.
    The second IF test is redundant.

  6. #6
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Nested IF function with multiple criteria

    that what,.... its my assumption that Kalergi needs in that way in simple ways as below,

    if (C4 >=100%,E1,C4*E1)

    better he should able tell us his exact requirement ....

  7. #7
    Registered User
    Join Date
    01-03-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Nested IF function with multiple criteria

    Thank you all!

    Yes, its an explanation difficulties so, il make it simple.

    I have three situations:

    1. When C3>= 100% the result must be equal with E1
    2. When C3>= 70% the result must be equal with C3*$E1$
    3. Wehn C3< 70% the result must be zero.

    I apologyze for any inconvenience.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nested IF function with multiple criteria

    Quote Originally Posted by Kalergi View Post
    Thank you all!

    Yes, its an explanation difficulties so, il make it simple.

    ....

    I apologyze for any inconvenience.
    In that case then

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    01-03-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Nested IF function with multiple criteria

    Quote Originally Posted by Richard Buttrey View Post
    In that case then

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Yes, it works.

    Thank you Richard!

+ 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. Index Matching with a nested Greater than function for multiple criteria
    By Solpics in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2012, 12:22 AM
  2. [SOLVED] Nested IF with multiple criteria
    By small_wonder in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-30-2012, 04:14 PM
  3. Nested if function with multiple criteria
    By argandoz in forum Excel General
    Replies: 5
    Last Post: 07-28-2011, 08:44 PM
  4. Replies: 7
    Last Post: 09-06-2009, 03:23 PM
  5. Nested IF Statement with Multiple Criteria
    By Hoopsah in forum Excel General
    Replies: 6
    Last Post: 07-23-2007, 10:01 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