+ Reply to Thread
Results 1 to 5 of 5

Filter triplicates based on matching entries in two columns

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    97

    Filter triplicates based on matching entries in two columns

    Hi

    In the sample file attached I have two routines - both display duplicates based on last name in column (G) and first name in column (H). "MatchName" resets the filter to filter on the entire list, while "MatchNameSub" filters only on the filtered list.

    Both routines work correctly. However, I want them both to find and display TRIPLICATES only (based on Last Name and First Name).

    I tried adding >2 before THEN but it found nothing at all - not even the duplicates.

    Help please.
    Attached Files Attached Files
    Last edited by Rabbitoh; 01-27-2023 at 09:41 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Filter triplicates based on matching entries in two columns

    Hi. Before we get going on this one...

    Is your forum profile showing the Excel PRODUCT that you need this request to work with?

    The best solutions often rely on knowing WHICH Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. If you aren't sure, in Excel go to File/Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent Excel PRODUCTS are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the Version number in your profile (e.g. MS365 (PC) Version 2211). The version number is in the About Excel section further down the Account page.

    Cheers,

    Glenn.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    07-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Filter triplicates based on matching entries in two columns

    Hi Glenn, thanks for responding. Forum profile already has Excel 2010 listed.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Filter triplicates based on matching entries in two columns

    1) Change your code to
    Please Login or Register  to view this content.
    2) Use of AdvancedFilter
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Filter triplicates based on matching entries in two columns

    Thanks Jindon, brilliant work. Your first code has worked for both the full list and the filtered list by changing the "IF 1" to "IF 2" for triplicates and above, and "IF 3" for quads and above. Excellent.

+ 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. Retaining triplicates from three different columns
    By sangeeta kakaria in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-22-2020, 04:48 AM
  2. Restructuring Listed Entries Into a Matrix, Matching Rows and Columns?
    By EduardStoo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2019, 11:42 AM
  3. Replies: 2
    Last Post: 05-27-2014, 03:02 PM
  4. Matching Data sets Based on Similar Entries
    By djbeadle in forum Excel General
    Replies: 5
    Last Post: 01-04-2013, 06:24 AM
  5. VBA macro needed to delete duplicate entries matching across multiple columns
    By chicolocal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2012, 02:34 PM
  6. [SOLVED] matching entries in different columns
    By papa007 in forum Excel General
    Replies: 5
    Last Post: 07-11-2012, 10:00 AM
  7. [SOLVED] Matching duplicate entries between two columns
    By Pops Jackson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2006, 10:45 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