+ Reply to Thread
Results 1 to 7 of 7

Identifying Duplicates in Multiple Columns

  1. #1
    Registered User
    Join Date
    08-30-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2010
    Posts
    11

    Identifying Duplicates in Multiple Columns

    Good morning,

    I need to isolate duplicates in a spreadsheet that are represented by three columns that are the same and where the duplicate data occurs in different rows. I'm working with a class schedule that has over 4500 lines and each course is identified by data in three columns, e.g. ART 101 01. The IF function, e.g. =IF(AND(A3=A4,B3=B4,C3=C4),"YES","NO"), works at identifying one row of the duplicate but I need to isolate both rows together so that I can edit the data. I have tried to nest an OR/AND function e.g. =IF(OR(F2=F3,G2=G3,H2=H3)*AND(A3=A2,B3=B2,C3=E2),"YES","NO") but this does not work. I have attached a sample spreadsheet. Any help or alternative approaches will be greatly appreciated!

    Rocinante


    SAMPLE - Duplicates in 3 Columns.xlsx

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Identifying Duplicates in Multiple Columns

    =COUNTIFS($A$2:$A$33, A2, $B$2:$B$33, B2, $C$2:$C$33, C2)>1

    Will return True for all duplicates (or triplicates, etc)
    Is this what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Identifying Duplicates in Multiple Columns

    You could also create a column like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then highlight duplicates in this column.
    Please click the * icon below if I have helped.

  4. #4
    Registered User
    Join Date
    08-30-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2010
    Posts
    11

    Re: Identifying Duplicates in Multiple Columns

    Thanks, ChemistB,

    This formula produced errors (see highlighted on the attached). I'm a long way from expert in Excel, and am always suspicious of the original data which coming from and Oracle software called Campus Solutions.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-30-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2010
    Posts
    11

    Re: Identifying Duplicates in Multiple Columns

    Thanks, MelvinRobb,

    This method is working. Thank you very much!!!

    Rocinante

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Identifying Duplicates in Multiple Columns

    Looks like it works. Row 20 matches row 24. Where are the errors?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-30-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2010
    Posts
    11

    Re: Identifying Duplicates in Multiple Columns

    Thank you again, ChemistB!

    You are right!! The formula does work . . . and I really like it! I greatly appreciate the correction, not to mention the solution!

    Jim

+ 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. Identifying & Extracting Duplicates from Multiple Columns
    By maxisultan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-25-2014, 12:13 PM
  2. Replies: 4
    Last Post: 03-07-2013, 11:42 AM
  3. Identifying Multiple Duplicates Based on ID Number
    By Jakz34 in forum Excel General
    Replies: 4
    Last Post: 10-03-2012, 05:46 PM
  4. Identifying duplicates across multiple tabs with VBA
    By 0nyx1756 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2011, 11:02 AM
  5. Identifying Duplicates in 2 columns
    By Excel 2007 Newbie 2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2011, 10:49 PM
  6. identifying duplicates across multiple columns
    By tombrady12 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-15-2010, 05:32 PM
  7. Identifying Duplicates in Columns
    By DamienO in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2006, 02:45 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