+ Reply to Thread
Results 1 to 8 of 8

Highlighting Duplicates within a unique identifier

  1. #1
    Registered User
    Join Date
    03-06-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    4

    Highlighting Duplicates within a unique identifier

    Hi,

    Need help with a brain teaser....

    I'm currently sorting a price list with different price breaks and each product has its own unique ID. We have multiple rows of the same ID to differentiate the price break across 3 rows. However, there are some unwanted duplicates within some of the ID's.

    Now I have thousands of UID's and need a way to be able to highlight all those unwanted duplicates within each UID, is there a way I can do this?

  2. #2
    Registered User
    Join Date
    03-06-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    4

    Re: Highlighting Duplicates within a unique identifier

    See this doc to get an idea of the issue (couldn't put a link in the post)

    docs.google.com/spreadsheets/d/1F7tgBOHmzg758iz01QlFZUWByjGbUJ6rE3vc6mI86p0/edit?usp=sharing

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Highlighting Duplicates within a unique identifier

    You can't post a link until you have made 10 posts, but you can attach a sample Excel workbook (some contributors can't use external links anyway, do to company policy or firewalls etc.).

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post. Don't try to use the Paperclip icon, as it doesn't work on this forum.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    03-06-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    4

    Re: Highlighting Duplicates within a unique identifier

    Hopefully this has attached
    Attached Files Attached Files

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Highlighting Duplicates within a unique identifier

    You could put this formula in E2:

    =IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2,C$2:C2,C2,D$2:D2,D2)=1,"ok","delete")

    then copy down - duplicate records will be tagged with "delete", so you could apply autofilter to column E, select "delete" from the filter drop-down, then highlight all the visible rows (using the row identifiers) and delete all those duplicates in one operation. Then remove the autofilter and delete column E.

    Hope this helps.

    Pete

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Highlighting Duplicates within a unique identifier

    See if the attached works for you.
    There are two helper columns F & H
    Into F1 there is a formula and copied down to last row that has your data in.

    Please Login or Register  to view this content.
    On sheet1 there is a button 'SORT'
    On the 'Sheet1' there is code behind the button and a 'function'
    Leave column H clear as it assists data manipulation.
    After you have seen the process you can set helper columns to 0 width to aid cosmetics.

    torachan.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-06-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    4

    Re: Highlighting Duplicates within a unique identifier

    That has worked perfectly thank you very much Pete!

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Highlighting Duplicates within a unique identifier

    You're welcome.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of any post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Replies: 3
    Last Post: 10-24-2017, 05:44 AM
  2. Replies: 1
    Last Post: 02-16-2017, 07:53 PM
  3. Replies: 1
    Last Post: 01-29-2015, 04:08 PM
  4. Replies: 6
    Last Post: 02-16-2013, 07:29 AM
  5. Unique identifier for a row
    By drdavidge in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-12-2010, 11:52 PM
  6. [SOLVED] Unique identifier
    By Steve Barnett in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-06-2006, 07:30 AM
  7. Unique identifier
    By Steve Barnett in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 01-06-2006, 07:30 AM

Tags for this Thread

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