Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Nested If Formula With Multiple Conditions

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    3
    Rep Power
    0

    Nested If Formula With Multiple Conditions

    Hello!
    Please, can someone tell me how can I make formula for:
    If D2 ; E2 ; F2 >= 4 and G2 >=5 , than H2 = 18, but IF D2 ; E2 ; F2 >= 4 and G2 >=7 , that H2 = 27. If any of these numbers are less than the condition, than H2 = 0 .

    That would be unspeakably helpful for me !
    Attached Images Attached Images

  2. #2
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    14
    Try this formula:

    =IF(AND(D2>=4,E2>=4,F2>=4),IF(AND(G2>=5,G2<7),18,I F(G2>=7,27,0)),0)


  3. #3
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Try this

    Code:
    =IF(AND(D2>=4,E2>=4,F2>=4,G2>=7),27,IF(AND(D2>=4,E2>=4,F2>=4,G2>=5),18,0))
    Last edited by Excel Fox; 04-22-2013 at 08:39 AM. Reason: Revised
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  4. #4
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    14
    Hi Excel Fox,

    I have tried this formula and it's giving only one result in multiple test which is 18. I think because of G2>=5 and G2>=7 conditons. Correct me if i am wrong.

  5. #5
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Lalit, corrected it. It was because I used the smaller valued conditional first, rather than the larger one. Swapped it
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  6. #6
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    14
    Another try:

    =IF(AND(D2>=4,E2>=4,F2>=4),IF(G2>=7,27,IF(G2>=5,18 ,0)),0)

  7. #7
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    13
    Another (slightly shorter) formula that appears to work...

    =IF(OR(COUNTIF(D2:F2,"<4"),G2<5),0,18+9*(G2>=7))

  8. #8
    Junior Member
    Join Date
    Apr 2013
    Posts
    3
    Rep Power
    0
    None of these formulas are working for me . , but thanks anyways.

  9. #9
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    14
    Formula given by me and by experts are based on what you have asked.
    If it is not working then why don't share your file for better clearity.

  10. #10
    Junior Member
    Join Date
    Apr 2013
    Posts
    3
    Rep Power
    0
    Here is the file.
    Attached Files Attached Files

Similar Threads

  1. Replies: 4
    Last Post: 03-22-2013, 01:47 PM
  2. Nested Search Function Excel Formula
    By trankim in forum Excel Help
    Replies: 6
    Last Post: 10-29-2012, 10:29 PM
  3. Replies: 11
    Last Post: 10-07-2012, 12:05 AM
  4. Excel Nested IF Function With 3 Conditions
    By patsir in forum Excel Help
    Replies: 3
    Last Post: 08-25-2012, 07:15 PM
  5. Excel Nested IF 3 Condition Formula
    By yomgi in forum Excel Help
    Replies: 2
    Last Post: 02-20-2012, 11:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •