+ Reply to Thread
Results 1 to 5 of 5

Establishing duplicate entries, highlighting them, then deleting

  1. #1
    Registered User
    Join Date
    04-15-2014
    Location
    Birmingham,England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Establishing duplicate entries, highlighting them, then deleting

    Hi

    I have a spreadsheet with thousands rows of items on. I am trying to identify duplicate entries based on two or three cells within each row. If those two or three cells are duplicated for that particular ID then the duplicate entry (row) should be highlighted for deletion.

    Better still it would be great if there was a macro or formula which would delete that duplicate row.

    So for example on the spreadsheet I have attached, I would like rows 6 and 9 deleted or highlighted as the criteria for deletion is a duplication of the entry in the 'YEAR' column AND the 'VALUE' column for the REFERENCEs AB-1234 and AB-9876 which are the unique identifiers for each individual case.

    This would leave the end result as per the table below on the attached spreadsheet.

    I would very much appreciate any help on this.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Establishing duplicate entries, highlighting them, then deleting

    Try this code on the sheet you uploaded in your post to see if this works as per your requirement.
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Establishing duplicate entries, highlighting them, then deleting

    The yellow cells are helpcells.

    The green cells are the result.

    You can filter on delete and after that you can delete those rows.

    See the attached file.

    I used if(countif(etc) to get teh result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    04-15-2014
    Location
    Birmingham,England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Establishing duplicate entries, highlighting them, then deleting

    Sktneer and oeldere. That is brilliant. Just what I wanted.

    Thank you so much.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Establishing duplicate entries, highlighting them, then deleting

    Glad to help you. Thanks for the feedback.
    Since you are new to the forum, just to tell you that it that takes care of your question, please mark your thread as solved by selecting Thread Tools --> Mark thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

+ 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. Deleting Duplicate Entries
    By kblinkin in forum Excel General
    Replies: 13
    Last Post: 05-21-2010, 05:07 PM
  2. Highlighting for duplicate entries
    By lbuch79 in forum Excel General
    Replies: 13
    Last Post: 11-24-2009, 05:21 AM
  3. Highlighting Duplicate Entries in the same Worksheet
    By Darran in forum Excel General
    Replies: 2
    Last Post: 07-06-2006, 11:20 AM
  4. Deleting duplicate entries
    By J. Gutierrez in forum Excel General
    Replies: 3
    Last Post: 11-04-2005, 07:05 AM
  5. Deleting BOTH duplicate entries
    By Julian in forum Excel General
    Replies: 2
    Last Post: 03-07-2005, 08:06 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