+ Reply to Thread
Results 1 to 8 of 8

Removing duplicate rows based on single column duplicate values

  1. #1
    Registered User
    Join Date
    09-23-2021
    Location
    UK
    MS-Off Ver
    365
    Posts
    6

    Removing duplicate rows based on single column duplicate values

    Hi Guys,

    I'm still a learner, and struggling to get my head round a seemingly simple idea!

    I have a workbook with which I am using to counteract multiples within a system by matching them with multiple criteria. I've now reached a stumbling block, I have a set of data of which I have identified as duplicates but i cannot for the life of me work out how to select just one of each duplicate so they can be removed from the system!

    Kind regards and thanks in advance!

    Mia
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,028

    Re: Removing duplicate rows based on single column duplicate values

    Welcome to the forum.

    I don't understand what you are showing us, sorry.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-23-2021
    Location
    UK
    MS-Off Ver
    365
    Posts
    6

    Re: Removing duplicate rows based on single column duplicate values

    Oh Gosh, Sorry! Thankyou for your prompt reply!

    So the worksheet i've attached has a column with postcodes in, and these are in sets of 2 (1 being a duplicate I need to get rid of).

    The problem i'm finding is that if I try to select duplicates it finds them all, but I just need to select one of each of these pairs and delete the row associated with it.

    ## i've updated the SS, so it shows an example of what i need to happen (conditional formatting would be amazing so i can just filter the duplicates out but keep their legacy), the red ones being the ones i want coloured/gone. Is this possible?
    I hope that makes sense!

    Mia
    Attached Files Attached Files
    Last edited by Miasav90; 09-23-2021 at 06:57 AM.

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

    Re: Removing duplicate rows based on single column duplicate values

    You could use this formula in L1:

    =IF(COUNTIF(F$1:F1,F1)=1,"keep","delete")

    Copy down to the bottom of your data, the you can use Auto filter to select "delete" and delete them in one operation.

    Hope this helps.

    Pete

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,028

    Re: Removing duplicate rows based on single column duplicate values

    You could use Pete's formula and then filter on column L (keep only).

  6. #6
    Registered User
    Join Date
    09-23-2021
    Location
    UK
    MS-Off Ver
    365
    Posts
    6

    Re: Removing duplicate rows based on single column duplicate values

    Oh my,

    you guys are amazing Thankyou so much!

    Mia

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,028

    Re: Removing duplicate rows based on single column duplicate values

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Removing duplicate rows based on single column duplicate values

    Power query
    Attached Files Attached Files

+ 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] Delete rows based on duplicate column values?
    By Casey825 in forum Excel General
    Replies: 11
    Last Post: 12-19-2017, 07:10 PM
  2. Delete Duplicate rows with duplicate in 1 column based on value from another column
    By CraigR&M in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2016, 02:06 PM
  3. [SOLVED] Multiple values in single cell (known column) split into rows with duplicate information
    By bwashbourne in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2015, 05:00 PM
  4. [SOLVED] Find duplicate rows based on two column values and group
    By kevivu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2015, 12:10 AM
  5. Replies: 8
    Last Post: 11-25-2014, 05:11 PM
  6. how to filter the rows based on a column which contains duplicate values...
    By Rajesh Ushakoyyala in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  7. Cut & paste rows based on duplicate column values
    By agolden7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2013, 11:09 AM

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