+ Reply to Thread
Results 1 to 5 of 5

How to delete both sets of duplicate date?

  1. #1
    Registered User
    Join Date
    10-08-2008
    Location
    Indy
    Posts
    14

    How to delete both sets of duplicate date?

    Hello.

    I currently have about 3000 rows of data, much of it being duplicate data. Is there a way to have it search for duplicate data, and have it delete BOTH sets of duplicate data?

    For example, say this is what is in my spreadsheet:

    Smith John 1234 Main St. Anytown, IN
    Smith John 1234 Main St. Anytown, IN
    Bobbert Bob 5123 Red. St. Thistown, IN
    Nugent Ted 1211 My St. Thattown, IN
    Nugent Ted 1211 My St. Thattown, IN
    Jordan Michael 23 All-Star Ln. Town, IN

    I would want it to delete both John Smith records and both Ted Nugent records, leaving Bob Bobbert's and Michael Jordan's records.

    Thanks in advance!
    Last edited by gema; 10-08-2008 at 11:40 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Will this work for you; If your data is in A1:A6, in an empty column type this equation and drag down
    Please Login or Register  to view this content.
    Then autofilter on that column for "Delete" and delete all visible rows.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-08-2008
    Location
    Indy
    Posts
    14
    With that formula, it is deleting all instances of anyone with the same last name. So if there are two "Mike Smith" entries and one "Bob Smith", it is deleting all three of those, where I only want it to delete the "Mike Smith" entries.

    Do you see any way around this?

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Easiest (ugly but quick) way:
    put this in H1
    =A1&B1&C1&D1&E1&F1&G1
    put this in I1
    =IF(COUNTIF($H$1:$H$6,H1)>1,"Delete","") (redefine range as apt)
    copy down

    autofilter and delete "Delete" rows

    HTH

  5. #5
    Registered User
    Join Date
    10-08-2008
    Location
    Indy
    Posts
    14
    That worked. Thanks!

+ 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. Delete first 7 rows out of 21 and so on.
    By ducati in forum Excel General
    Replies: 7
    Last Post: 09-12-2008, 12:36 PM
  2. Replies: 6
    Last Post: 07-26-2008, 12:18 PM
  3. looping issues
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2007, 11:42 PM
  4. Date Difference Formula
    By henrythompson in forum Excel General
    Replies: 3
    Last Post: 09-13-2007, 04:56 AM
  5. Delete Duplicate Rows:create a macro
    By LB79 in forum Excel General
    Replies: 1
    Last Post: 09-12-2006, 06:59 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