+ Reply to Thread
Results 1 to 10 of 10

Nested If, AND, OR help I'm sure it's simple lol.

  1. #1
    Registered User
    Join Date
    01-16-2016
    Location
    dallas
    MS-Off Ver
    2007
    Posts
    19

    Nested If, AND, OR help I'm sure it's simple lol.

    I need a cell to do this:

    If G1 is greater than equal to 40 and H1 has MOON picked from the dropdown I1 needs to say SUCCESSFUL

    If G1 is less than 40 and H1 has MOON picked from the dropdown I1 needs to say FAILED

    If G1 is greater than equal to 40 and H1 does not have MOON picked from the dropdown I1 needs to say CLOSE

    If G1 is less than 40 and H1 does not have MOON picked from the dropdown I1 needs to say TRY AGAIN

    How would I go about doing that? Any ideas?

  2. #2
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    697

    Re: Nested If, AND, OR help I'm sure it's simple lol.

    IF(AND(G2>=40,H2="Moon"),"SUCCESSFUL",IF(AND(G2<40,H2="Moon"),"Failed",IF(AND(G2>=40,H2<>"Moon"),"CLOSE",IF(AND(G2<40,H2<>"Moon"),"TRY AGAIN",""))))

  3. #3
    Registered User
    Join Date
    01-16-2016
    Location
    dallas
    MS-Off Ver
    2007
    Posts
    19

    Re: Nested If, AND, OR help I'm sure it's simple lol.

    You are awesome!!! And saved me a significant amount of time thank you very very much!!!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: Nested If, AND, OR help I'm sure it's simple lol.

    Try

    =IF(H2="MOON",IF(G2>40,"SUCCESSFUL","FAILED"),IF(G2>40,"CLOSE","TRY AGAIN"))

  5. #5
    Registered User
    Join Date
    01-16-2016
    Location
    dallas
    MS-Off Ver
    2007
    Posts
    19

    Re: Nested If, AND, OR help I'm sure it's simple lol.

    Just thought of something this should only be active if there is something in A3? How would I make the formula dependent on something being in A3? I'll google as well

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: Nested If, AND, OR help I'm sure it's simple lol.

    Try

    =IF(A3="","",IF(H2="MOON",IF(G2>40,"SUCCESSFUL","FAILED"),IF(G2>40,"CLOSE","TRY AGAIN")))

  7. #7
    Registered User
    Join Date
    01-16-2016
    Location
    dallas
    MS-Off Ver
    2007
    Posts
    19

    Re: Nested If, AND, OR help I'm sure it's simple lol.

    That formula does switch quite right it sort of works.

    It needs to be if H2=MOON AND G2>= 40 then Successful
    if H2=MOON AND G2<40 then Failed
    if H2<>MOON and G2>=40 then Close
    if H2 <>MOON and G2<40 then Try again

    but only if A2 has something in it. I just can't figure out the syntax.............real close though

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: Nested If, AND, OR help I'm sure it's simple lol.

    =if(a2="","",if(h2="moon",if(g2>40,"successful","failed"),if(g2>40,"close","try again")))

  9. #9
    Registered User
    Join Date
    01-16-2016
    Location
    dallas
    MS-Off Ver
    2007
    Posts
    19

    Re: Nested If, AND, OR help I'm sure it's simple lol.

    Reps given thank you!!!

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: Nested If, AND, OR help I'm sure it's simple lol.

    Thanks for the feedback and reps.

    If problem resolved could you mark thread as solved ("Thread Tools" at top of first post)

+ 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. [SOLVED] Simple IF statement works alone but not as nested. Spreadsheet attached.
    By robvasi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-11-2015, 09:24 AM
  2. Problem converting a very simple nested IF function to a UDF
    By GabrielG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2015, 09:53 AM
  3. Help with simple nested IF formulas
    By aisle5 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-15-2014, 08:30 PM
  4. [SOLVED] simple search function using nested IF and Vlookup statements
    By cherryt in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 08-27-2013, 08:45 AM
  5. [SOLVED] Simple nested IF statement not working correctly
    By bassemsaad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-04-2013, 08:53 AM
  6. Error message in a simple nested formula
    By cfsosa in forum Excel General
    Replies: 2
    Last Post: 08-08-2008, 01:47 PM
  7. Simple nested IF statement?
    By bartsimpson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2007, 10:10 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