+ Reply to Thread
Results 1 to 5 of 5

Deleting Duplicates by Value

  1. #1
    Registered User
    Join Date
    01-03-2021
    Location
    Indiana
    MS-Off Ver
    365
    Posts
    31

    Deleting Duplicates by Value

    Hi, My goal in this sample sheet is to delete the duplicate rows if the value is FAIL. The more complicated goal is to delete the duplicate rows if the value is FAIL and the first duplicate value is PASS. Thank you for any advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Deleting Duplicates by Value

    Why not just use a helper column to identify duplicates then filter the range for the duplicates, decide which rows yo want to select and delete them.

    e.g. in J2 copied down

    =IF(AND(I2="FAIL",COUNTIF($F$2:$F$9,F2)>1),"Duplicate","")

    Then filter on column J, select all rows and delete. Then remove the autofilter.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-03-2021
    Location
    Indiana
    MS-Off Ver
    365
    Posts
    31

    Re: Deleting Duplicates by Value

    There are 1000's of rows and while I can highlight the duplicates in groups. It can be a bit overwhelming to look at all duplicates each day. That is most likely what I will have to do.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Deleting Duplicates by Value

    I just tried Richard's suggestion and it seemed to do what is described in post #1.
    If you have trouble applying the suggestion to your file then let us know where the problem occurs and we can try to help.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Deleting Duplicates by Value

    Quote Originally Posted by Kimbersh View Post
    There are 1000's of rows and while I can highlight the duplicates in groups. It can be a bit overwhelming to look at all duplicates each day. That is most likely what I will have to do.
    ...maybe I confused when I said "decide which rows you want to select'. The AUtofilter will show only those rows you want to delete so all you need do is select them all and then delete. There's no need to look for duplicates by day.

+ 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] Deleting duplicates
    By Nickopopolo in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-22-2016, 04:27 PM
  2. deleting duplicates
    By moley165 in forum Excel General
    Replies: 5
    Last Post: 10-20-2012, 04:21 PM
  3. Deleting Duplicates-find out a way to delete duplicates
    By sighlent1 in forum Excel General
    Replies: 2
    Last Post: 04-19-2011, 10:17 AM
  4. Deleting both duplicates
    By kblinkin in forum Excel General
    Replies: 9
    Last Post: 11-11-2010, 06:26 PM
  5. Deleting Duplicates
    By 3smees23 in forum Excel General
    Replies: 3
    Last Post: 05-07-2009, 10:48 AM
  6. [SOLVED] Deleting the first row of two duplicates.
    By Georgyneedshelp in forum Excel General
    Replies: 2
    Last Post: 10-19-2005, 12:05 PM
  7. Deleting duplicates
    By Judd Jones in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2005, 12:06 PM

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