+ Reply to Thread
Results 1 to 4 of 4

If and or

  1. #1
    Registered User
    Join Date
    03-22-2010
    Location
    beds
    MS-Off Ver
    Excel 2002
    Posts
    9

    If and or

    Hello,

    I am fairly sure this has been asked before but after hours of searching I have not found anything

    I need to create a formula that does the following:

    Lets say cells a1 and a2 is populated with data from a drop down menu that has the potential to match data pre-populated in cell B1 or B2

    I want something along the line of:

    If A1 and A2 = B1 OR if A1 = B2 then display "x"

    (X is always the same)

    but i cannot for the life of me work out how to do this.

    Please, is anyone able to help. I have spent about 5 days on and off trying to crack this

    Thanks in advance

    Neal

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: If and or

    Try

    =IF(OR(AND(A1=B1,A2=B1),A1=B2),"x","")

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: If and or

    =IF(OR(AND(A1=B1,A2=B1),A1=B2),"X","")


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    03-22-2010
    Location
    beds
    MS-Off Ver
    Excel 2002
    Posts
    9

    Re: If and or

    Thanks chaps

    Will try tonight when back at home

    br

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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