+ Reply to Thread
Results 1 to 2 of 2

How to compare 6 columns and identify matches

  1. #1
    Registered User
    Join Date
    10-05-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    76

    How to compare 6 columns and identify matches

    I've searched for the answer, however, have been unsuccessful in finding one specific to my needs.

    I will have a spreadsheet that compares 6 columns (3 compared to 3 others). I need to know the easiest way to identify the matches between the two sets. In the end, it needs to be clear which from first set are not in second set, and vice-versa. ALL 3: ID, First Name, and Last Name must match simultaneously to be considered a match). So, "Joe Smith" in first set with different ID than "Joe Smith" in second set would not be considered a match. I hope this makes sense.

    Example:
    Column 1: ID number
    Column 2: First Name
    Column 3: Last Name

    Column 5: ID number
    Column 6: First Name
    Column 7: Last Name

    (I have attached a sample. Hopefully it will help.)

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to compare 6 columns and identify matches

    Simplest way is to add a "key" column to create an easily searchable index of your 3-pair-values. Put this in D2 and copy down:

    =A2&"-"&B2&"-"&C2


    Then in H2 put this formula and copy down to give you the matches for the second set:

    =ISNUMBER(MATCH(E2&"-"&F2&"-"&G2,D:D, 0))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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