+ Reply to Thread
Results 1 to 7 of 7

Help Matching Names in 3 columns

  1. #1
    Forum Contributor
    Join Date
    03-21-2012
    Location
    New York NY
    MS-Off Ver
    2010
    Posts
    113

    Help Matching Names in 3 columns

    I have a list of first names in column A. I need to find a way to list out which ones are listed in Column B which ones are in Column C and which ones are in both. I have used the conditional formatting before to highlight duplicates but that is going to take a long time to sort and compare with this being 1000 names. Is there a way to figure this out with a formula? I have attached a sample sheet to use.

    Not all names are exact in column A as they appear in Column B & C but I can find those after. most of them should be the same.

    Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Help Matching Names in 3 columns

    Two helper columns can provide you with these results. Just make sure the names are EXACTLY the same. I had to copy and paste "bob" from the first column into the 2nd two columns to get them to match. So they must have been entered differently.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    08-07-2015
    Location
    AB, Canada
    MS-Off Ver
    Excel 2013 x64
    Posts
    132

    Re: Help Matching Names in 3 columns

    The following should work in the cases where your names are formatted the same including uppercase letters.

    Please Login or Register  to view this content.
    Let me know if that works for you!

  4. #4
    Forum Contributor
    Join Date
    08-07-2015
    Location
    AB, Canada
    MS-Off Ver
    Excel 2013 x64
    Posts
    132

    Re: Help Matching Names in 3 columns

    Quote Originally Posted by hoyasaxa215 View Post
    Two helper columns can provide you with these results. Just make sure the names are EXACTLY the same. I had to copy and paste "bob" from the first column into the 2nd two columns to get them to match. So they must have been entered differently.
    One formula to help eliminate some of the easier formatting problems is:
    Please Login or Register  to view this content.
    Copy and paste the values generated from this formula on top of the original first names. It should eliminate spaces before and after the names, and always have the first letter uppercase and the following lowercase.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Help Matching Names in 3 columns

    D2=IF(AND(COUNTIF($B$2:$B$9,$A2),COUNTIF($C$2:$C$9,$A2)),"Both",IF(COUNTIF($B$2:$B$9,$A2),"Column B",IF(COUNTIF($C$2:$C$9,$A2),"Column C","")))
    Please Login or Register  to view this content.
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Contributor
    Join Date
    03-21-2012
    Location
    New York NY
    MS-Off Ver
    2010
    Posts
    113

    Re: Help Matching Names in 3 columns

    Quote Originally Posted by nflsales View Post
    D2=IF(AND(COUNTIF($B$2:$B$9,$A2),COUNTIF($C$2:$C$9,$A2)),"Both",IF(COUNTIF($B$2:$B$9,$A2),"Column B",IF(COUNTIF($C$2:$C$9,$A2),"Column C","")))
    Please Login or Register  to view this content.
    Try this and copy towards down
    do I need to insert the two helper columns or paste it into D2?

    Here is the correct list I need to edit. I tried to make a simple version with the names.

    The first column A is my original list. I need to know if Column A names are listed in B, C, or both.
    Attached Files Attached Files
    Last edited by C.j.; 09-30-2015 at 09:32 AM.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Help Matching Names in 3 columns

    Using the formula that @nflsales provided you will not need any helper columns, just paste the formula* in D2 and double click to copy it down.
    *You will need to change the arrays from $B$2:$B$9 to $B$2:$B$286 and from $C$2:$C$9 to $C$2:$C$338 to match the length of the columns in your actual file.

    Let me know if you have any questions.

+ 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] Matching Last Names in Two columns and pick up certain ones
    By Taisir in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-10-2014, 10:44 PM
  2. Matching names from different columns..
    By jkim204 in forum Excel General
    Replies: 3
    Last Post: 08-18-2014, 03:51 PM
  3. Matching Names to Values Using Two Columns
    By Stopwatch in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-23-2014, 11:44 AM
  4. Look up and compare names from two columns, matching issues
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2012, 02:16 PM
  5. how to find matching names in two columns ??
    By jovak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2007, 05:08 PM
  6. Line matching names in two seperate columns
    By eskapetoreality in forum Excel General
    Replies: 0
    Last Post: 04-17-2005, 07:10 PM
  7. Matching two columns of names in different formats.
    By surplusbc in forum Excel General
    Replies: 0
    Last Post: 03-17-2005, 01:22 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