+ Reply to Thread
Results 1 to 7 of 7

Exclusive "OR" formula

  1. #1
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Florida
    MS-Off Ver
    Excel 365
    Posts
    289

    Exclusive "OR" formula

    I know this must be simple but I am having head problems here.

    What I need is: if A is TRUE or if B is TRUE =TRUE but not if both A and B are true or if both A and B are false.

    Thanks,

    Len Silva

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

    Re: Exclusive "OR" formula

    Try

    =A+B=1
    Last edited by Jonmo1; 03-30-2015 at 05:09 PM.

  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,434

    Re: Exclusive "OR" formula

    So, if A = B, then the answer is FALSE, because they are both either TRUE or FALSE. Conversely, if one is TRUE, the other must be FALSE and the outcome is TRUE.

    Then
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    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
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Exclusive "OR" formula

    Another one:

    =A<>B

    or if you want to use cell references:

    =A1<>B1

    Hope this helps.

    Pete

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

    Re: Exclusive "OR" formula

    Note to OP.

    If you ask your question using Psudo Code, you can expect to get responses also in Psudo Code.

    It might help to provide a more detailed/specific explaination of your issue.

  6. #6
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Florida
    MS-Off Ver
    Excel 365
    Posts
    289

    Re: Exclusive "OR" formula

    "Headslap" Thank you folks. I had been screwing around if if's and's and or's until I was way over-thinking it.

  7. #7
    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,434

    Re: Exclusive "OR" formula

    So, options to date:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards, TMS

+ 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. "lock" clipboard for exclusive use vba
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2013, 05:59 AM
  2. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Excel 2007 : Sharing Workbooks - "Book was made exclusive"
    By bjohnsonac in forum Excel General
    Replies: 3
    Last Post: 07-14-2010, 04:54 AM
  5. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 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