+ Reply to Thread
Results 1 to 3 of 3

filtering for multiple unknown duplicates

  1. #1
    Registered User
    Join Date
    06-07-2013
    Location
    Chatham, England
    MS-Off Ver
    Excel 2010
    Posts
    22

    filtering for multiple unknown duplicates

    Hi

    I'm trying to filter a dataset which returns all lines where two values in different columns are the same on any given row, but I don't know what those values will be. All values will be whole number values between 0 and 100.

    A "logical AND" would appear to be the best way to go, but I'm struggling because I don't know in advance what values I'm looking for. Solution needs to be VBA as needs to be automated for multiple loops.

    Any help gratefully received.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: filtering for multiple unknown duplicates

    Put this formula in an empty column for each row. Then autofilter that formula column for TRUE

    =A1=B1

    Change the two columns to compare to suit.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    06-07-2013
    Location
    Chatham, England
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: filtering for multiple unknown duplicates

    Making it as simple as that is the sign of true genius. Many thanks.

+ 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. Filtering and Total counts of duplicates from multiple columns
    By kor123 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-23-2016, 11:55 PM
  2. Filtering Duplicates
    By Lauriellen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-29-2015, 08:32 PM
  3. Macro button to collect data from 2 columns of unknown length & duplicates removal
    By regresss in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-29-2015, 05:30 PM
  4. Filtering Duplicates
    By attory in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2010, 11:44 AM
  5. Filtering duplicates
    By vasto in forum Excel General
    Replies: 4
    Last Post: 03-13-2009, 03:48 PM
  6. Filtering and duplicates
    By RHicks in forum Excel General
    Replies: 1
    Last Post: 09-08-2008, 05:11 PM
  7. Filtering duplicates
    By kukarooza in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2008, 06:24 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