+ Reply to Thread
Results 1 to 6 of 6

How to match two cells and display yes or no

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    18

    How to match two cells and display yes or no

    Hello,

    I am trying to run a function that will check if cells in A and B match and then return a yes/no answer. Sometimes cell B may be blank and I would like it to list that as no. I have tried using match and If, but the best I can do is to get a Yes and #N/A which would work but I'd like it to be better.

    For example,

    A - B - C
    a25 - a25 - Yes
    b34 - c14 - No
    c22 - - No

    Thank you
    Jason

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: How to match two cells and display yes or no

    if you are just looking across values in the same rows, you could use =IF(A2=B2,"Yes","No") and that should be enough.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to match two cells and display yes or no

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

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    01-15-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    18

    Re: How to match two cells and display yes or no

    That function is giving me the error asking if I wanted to create a formula or if not put a ' in front of the = sign. Also, with some other thought I think I need something that will give more results. I am checking two lists of seals and sometimes they match (abc123 & abc123 = Yes), mismatch (abc123 & cba321 = No/mismatch), blank (one or both boxes are blank = Missing/Unassigned).

  5. #5
    Registered User
    Join Date
    01-15-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    18

    Re: How to match two cells and display yes or no

    Oh brother... I think I just overanalyzed the equation. Thanks!

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: How to match two cells and display yes or no

    so is your issue solved or is there still a problem? If solved, please mark the post as solved using the thread tools dropdown at the top of the post and you can certainly thank (all) those who've helped you by clicking on the *Add Reputation below their posts, it is a nice way to thank them and it is how we advance on this forum.

+ 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] display message when values in 2 cells don't match.
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-16-2014, 01:39 PM
  2. Using Lookup or match to display a list of results from a range of cells
    By jshaw82 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-14-2013, 05:55 PM
  3. Replies: 1
    Last Post: 01-19-2011, 08:49 AM
  4. Match text in mulitple cells and display result
    By mrcois in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-22-2010, 01:58 AM
  5. [SOLVED] How do I display more than one match in a Index/Match formula?
    By Trish in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-26-2005, 06:05 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