+ Reply to Thread
Results 1 to 6 of 6

Duplicates for multiple columns

  1. #1
    Registered User
    Join Date
    09-28-2013
    Location
    CT, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Duplicates for multiple columns

    Hi,

    I am working with parts lists for several variations of a product. I am trying to find a way of finding duplicates that appear in all three lists. So for my columns, I would have
    Column 1: A, B, C, D, E
    Column 2: A, C, D
    Column 3: A, B, C

    My output column should be A, C. Also, the same part numbers will not be on the same rows, so I need to make sure the formula can handle that. Any suggestions?

    Thanks

  2. #2
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Berkeley, CA
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Duplicates for multiple columns

    How do you want to search for duplicates? Enter a value in a cell and then search the columns? Or do you need to search for all of the duplicates of all the parts?
    ------------------------
    W2

  3. #3
    Registered User
    Join Date
    09-28-2013
    Location
    CT, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Duplicates for multiple columns

    Being able to output parts that are common to all 3 lists and output them to a 4th would be ideal, but I can work with just highlighting all the duplicates on one of the parts list

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Duplicates for multiple columns

    As long as there are no duplicates in any individual list. For example, this will not happen:

    List1: A, A, B, C

    Data Range
    A
    B
    C
    D
    E
    1
    List1
    List2
    List3
    -----
    Common
    2
    A
    A
    A
    A
    3
    B
    C
    B
    C
    4
    C
    D
    C
    5
    D
    6
    E

    You want to compare the shortest list to the other lists. In this example List2 and List3 are the shortest lists so I chose to compare List3 to the other lists.

    This array formula** entered in E2:

    =IFERROR(INDEX(C$2:C$4,SMALL(IF(COUNTIF(A$2:A$6,C$2:C$4)+COUNTIF(B$2:B$4,C$2:C$4)=2,ROW(C$2:C$4)),ROWS(E$2:E2))-MIN(ROW(C$2:C$4))+1),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Last edited by Tony Valko; 09-29-2013 at 10:09 AM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    09-28-2013
    Location
    CT, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Duplicates for multiple columns

    Thanks, i'll give this a try and hopefully everything works out!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Duplicates for multiple columns

    Let us know how you make out.

+ 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] Finding duplicates throughout multiple columns
    By goldstar1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2013, 09:37 PM
  2. [SOLVED] Deleting Duplicates Based on Multiple Criteria from Multiple Columns
    By Franklic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2012, 05:31 PM
  3. How to find duplicates on multiple columns (3 Columns )
    By Kaleemuddin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2012, 07:04 AM
  4. Managing Duplicates in multiple columns
    By tom.hogan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2011, 02:31 PM
  5. Highlite NON-duplicates in multiple columns by row
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2009, 02:50 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