+ Reply to Thread
Results 1 to 5 of 5

Identifying Multiple Duplicates Based on ID Number

  1. #1
    Registered User
    Join Date
    03-18-2011
    Location
    Jonesboro, AR
    MS-Off Ver
    Excel 2010
    Posts
    13

    Identifying Multiple Duplicates Based on ID Number

    Is there any way to identify multiple duplicates based on a specific number? I have attached an example that has generic ID numbers and bonuses for each ID number with a 3 letter bonus code and 3 number bonus code. If both the letter and number bonus match per ID, I want those identified some way (highlighting was used for identification in the file).

    Could this be done with Excel function or is VBA needed?


    Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Identifying Multiple Duplicates Based on ID Number

    As per your sample


    in cell D2

    Please Login or Register  to view this content.
    then you can use the following formula in Conditional Formatting to highlight only the first occurrence of an entry in the list.

    Please Login or Register  to view this content.
    or

    You can also do the reverse of this with Conditional Formatting. Using the formula below in Conditional Formatting will highlight only the second and subsequent occurrences of a value. The first occurrence of the value will not be highlighted.

    Please Login or Register  to view this content.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Identifying Multiple Duplicates Based on ID Number

    =SUMPRODUCT(--(($A$2:$A$14&$B$2:$B$14&$C$2:$C$14=A2&B2&C2))) will give you a 1 for non dup and a 2 for duplicates as an alternative to Blae 7

    or

    if you'd prefer the word Dup
    IF(SUMPRODUCT(--(($A$2:$A$14&$B$2:$B$14&$C$2:$C$14=A2&B2&C2)))>1,"dup",SUMPRODUCT(--(($A$2:$A$14&$B$2:$B$14&$C$2:$C$14=A2&B2&C2))))
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Identifying Multiple Duplicates Based on ID Number

    =SUMPRODUCT(--(($A$2:$A$14&$B$2:$B$14&$C$2:$C$14=$A2&$B2&$C2)))=2 in Conditional Formating, highlight all your cells that need evaluating as per your sample and this formula will highlight only the duplicates. Dollar signs need to be as my example and the row will highlight on each instance

  5. #5
    Registered User
    Join Date
    03-03-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Identifying Multiple Duplicates Based on ID Number

    The formula worked to identify dups. But how do I assign 1 to the first occurence of a dup ID and 0 to the second, third, fourth, etc...occurrences of the dup ID?

+ 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