+ Reply to Thread
Results 1 to 4 of 4

Merging two lists, finding and keeping only duplicates

  1. #1
    Registered User
    Join Date
    10-22-2010
    Location
    Silverdale, WA
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    2

    Merging two lists, finding and keeping only duplicates

    Hi. I have a problem I'm trying to solve. I am merging two lists. Both are lists of names. There are some people on both lists. I want to eliminate the records of the people who were only listed in one of the original two lists and be left only with the list of names who are common to both lists.

    Each person on both lists has an ID number that I can use to compare. But while Excel seems to make it easy to eliminate duplicates, I want to do the opposite. I want to eliminate the records of people who are not on both lists and keep only the diplicate records in the spreadsheet.

    The only way I've been able to figure out how to do this is to go through manually, mark a column for the duplicates, then sort on that column to collect all the duplicate names and delete the rest. This is very time consuming with a list that contains thousands of names.

    Does anyone have a method to identify and segregate the duplicates in a spreadhseet so I can delete the rest?

    Thanks.
    Last edited by SilverdaleJB; 10-23-2010 at 10:08 AM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Merging two lists, finding and keeping only duplicates

    Just a quick thought:

    Use helper columns on each list and in each helper column use a formula like:

    Please Login or Register  to view this content.
    and reverse references in other helper column. Then sort each list using the helper columns.

    Get rid of anyone without an "X"

    Combine the 2 reduced lists and check for duplicates.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Merging two lists, finding and keeping only duplicates

    Try this

    With Sheet1
    In a spare Column,(assuming your data begins in A2 on both sheets).
    Please Login or Register  to view this content.
    Drag/Fill down

    Filter the result for "Match found"

    You could add an extra sheet to gather the result if you need to retain the original tables.
    Sheet3
    In A2
    Please Login or Register  to view this content.
    Drag Across as required then Down

    Where E2 is the first cell in your helper column on Sheet1.

    Sort the result on ID then Filter out or delete the blanks.

    Hope this helps
    Attached Files Attached Files
    Last edited by Marcol; 10-23-2010 at 06:09 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    10-22-2010
    Location
    Silverdale, WA
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    2

    Re: Merging two lists, finding and keeping only duplicates

    Thank you. That didn't apply exactly, but I was able to figure out a formula to do what I wanted because of your suggestion.

    I appreciate it.

+ 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