+ Reply to Thread
Results 1 to 2 of 2

IF statement - Check is the values are equal to the given numbers

  1. #1
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    IF statement - Check is the values are equal to the given numbers

    Hi All,

    I have been stucked for days for this scenario in excel..

    i have a data set and certain conditions

    If cell a1 = 4 and cell b1 = 7 then Failed- no issues i have the formula..

    The problem is here:

    If a1 =4 and B1 <> 7 then passed..
    If a1<>4 and B1 =7, and it should be passed too..

    I am confused on how to this.. Hope someone can help me.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: IF statement - Check is the values are equal to the given numbers

    Try

    =IF(OR(AND(A1=4,B1=7),AND(A1<>4,B1=7)),"Passed","Failed")

    This assumes the only way for the result to be "Passed" are the two conditions you specified above
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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] Macro to check values on two cells should be equal
    By Blokeman in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-04-2014, 09:07 AM
  2. [SOLVED] Ignore If Blank & check multiple cells for equal values
    By Urugmo88 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-25-2013, 04:46 AM
  3. IF Statement to check ALL columns for certain numbers
    By creis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-26-2012, 03:43 PM
  4. [SOLVED] If statement won't recognize two values as equal
    By fiveironfrnzy08 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2012, 04:59 PM
  5. IF statement to check against list of values
    By Dan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2006, 07:26 PM
  6. [SOLVED] How do I check for values in a list in an if statement?
    By DJC in forum Excel General
    Replies: 1
    Last Post: 07-27-2005, 03:05 PM
  7. [SOLVED] check if 2 cells are equal but only if they contain numbers not i.
    By Peter Boardman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2005, 04:06 PM

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