+ Reply to Thread
Results 1 to 2 of 2

Comparing text from two cells and returning the one that DOESN'T match

  1. #1
    Registered User
    Join Date
    03-02-2015
    Location
    Arizona
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO
    Posts
    14

    Comparing text from two cells and returning the one that DOESN'T match

    If I have two cells in A1 and B1

    cat dog

    In A5, I want to return the one that ISN'T "cat" (which I would set in a cell somewhere). So A5 would say "dog". How would I do that? Is this even possible?

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

    Re: Comparing text from two cells and returning the one that DOESN'T match

    You could use this formula in A5:

    =IF(A1="cat",IF(B1="cat","",B1),A1)

    Hope this helps.

    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. Replies: 5
    Last Post: 09-14-2021, 07:24 PM
  2. Replies: 4
    Last Post: 08-04-2014, 04:48 AM
  3. [SOLVED] Comparing list from two different sheets and returning partial row if No Match
    By loser420 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-23-2013, 01:56 PM
  4. [SOLVED] Comparing two cells and returning a text value
    By meminto in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2013, 06:28 PM
  5. [SOLVED] Comparing 2 sheets in Excel and returning a value if there is a match
    By ava285 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2013, 01:40 AM
  6. Comparing two ranges and returning a match
    By MachtiSonni in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-08-2010, 11:29 AM
  7. Comparing text and returning boolean values
    By nicoleeee in forum Excel General
    Replies: 9
    Last Post: 12-02-2005, 06:43 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