+ Reply to Thread
Results 1 to 7 of 7

Nested IF AND OR statement help

  1. #1
    Registered User
    Join Date
    10-15-2019
    Location
    Denver, Colorado
    MS-Off Ver
    Office13
    Posts
    3

    Lightbulb Nested IF AND OR statement help

    Hey y'all!

    Firstly thank you for the help!

    I am trying to create an if statement to test a set of conditions. I want to return "Pass" or "Check" between products in two different systems where A=A, B=B, but A can also = C, A=C is what I can't figure out.

    Excel spreadsheet with example is attached.

    Thank you!
    AuditMaster1000
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: Nested IF AND OR statement help

    Try it this way in D8:

    =IF(OR(B8=C8,B8&C8="AC",C8&B8="AC"),"Pass","Check")

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Nested IF AND OR statement help

    =IFS(B9=C9,"Pass",AND(B9="A",C9="C"),"Pass",TRUE,"Check")

  4. #4
    Registered User
    Join Date
    10-15-2019
    Location
    Denver, Colorado
    MS-Off Ver
    Office13
    Posts
    3

    Re: Nested IF AND OR statement help

    Ahhhh I hadn't even thought of using'IFS'! Thank you for that.

  5. #5
    Registered User
    Join Date
    10-15-2019
    Location
    Denver, Colorado
    MS-Off Ver
    Office13
    Posts
    3

    Re: Nested IF AND OR statement help

    Also, if anyone else comes along with a similar question. I also solved it after a bit more tweaking using the following: =IF(OR(B8=C8,OR(AND(B8="A",C8="C"))),"Pass","Check")

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Nested IF AND OR statement help

    Quote Originally Posted by AuditMaster1000 View Post
    Also, if anyone else comes along with a similar question. I also solved it after a bit more tweaking using the following: =IF(OR(B8=C8,OR(AND(B8="A",C8="C"))),"Pass","Check")
    That formula would do the same thing as this one:
    =IF(OR(B8=C8,B8&C8="AC"),"Pass","Check")

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: Nested IF AND OR statement help

    Mine also checks for B8="C" and C8="A", which I thought would be another acceptable combination.

    Pete

+ 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. Nested IF statement error. Nested True statement is not triggering
    By Lucas7040 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2016, 11:41 AM
  2. [SOLVED] if statement referencing a nested if(mid) statement
    By kantjustice in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2016, 06:27 PM
  3. [SOLVED] Nested IF Statement with OR Clause Only Processes First IF Statement
    By ExcelQuestFL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2016, 04:30 PM
  4. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  5. [SOLVED] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 PM
  6. [SOLVED] Nested If Statement - ISBLANK and ISNA in same statement?
    By Janc in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-23-2013, 09:00 AM
  7. Replies: 6
    Last Post: 01-14-2009, 06:59 PM

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