+ Reply to Thread
Results 1 to 2 of 2

Deleting duplicate rows

  1. #1
    Registered User
    Join Date
    02-02-2013
    Location
    brisbane australia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Deleting duplicate rows

    Quote Originally Posted by JBeaucaire View Post
    You can use a COUNTIF() formula to test for duplication. In an empty column I would enter this formula and copy down:

    =COUNTIF($G$1:$G2,$G2)

    Then I would turn on the Data > Filter > Autofilter and do a custom filter on column K for greater than 1.

    I would then delete all visible rows, turn off the AutoFilter and clear the added column.

    Here's a macro that does it that way:
    Please Login or Register  to view this content.
    This macro seems like it would delete the duplicate row and the original row it was duplicating. Is that correct?

    I would love it if someone can help me delete the duplicates out only but keep 1 record of it.

    Eg: Is there a way to keep row 15 but delete row 16 and any other subsequent duplicates?

    dupe.PNG

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to delete the ENTIRE row if only one cell is duplicated?

    I can't see the picture you uploaded. If you have another sample dataset, upload that with your before/after explanation.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Last edited by JBeaucaire; 11-27-2014 at 11:43 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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 rows
    By Upparna in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2012, 10:00 AM
  2. deleting rows if duplicate
    By swarv in forum Excel General
    Replies: 3
    Last Post: 08-13-2010, 05:37 AM
  3. Deleting duplicate rows
    By therealjag in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2009, 04:53 AM
  4. Need Help with Deleting Duplicate rows
    By japorms in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2006, 01:25 PM
  5. Deleting Duplicate Rows
    By RMort in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2005, 05: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