+ Reply to Thread
Results 1 to 2 of 2

Delete both duplicate rows in excel

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    CO
    MS-Off Ver
    Excel 2003
    Posts
    1

    Delete both duplicate rows in excel

    Basically I have two huge lists and need to do what the title of the thread says.

    The first list is from about 3yrs ago and is very large

    The second list is from recently and is about half the size.

    I need to find all records on the SECOND list that are NOT on the first list (new records that have been added since the first list was generated). I do not care about records on the first list that are not contained in the second list.

    I was thinking that if there is a way to delete both of the duplicate records, I would be left with only records that are only included on one list. Before the formula/macro was executed I would color code each list and simply remove all of the records from the original list, leaving me with only records contained in the second list but not the first.

    I found this macro on excel and it isn't doing what I need it to do...

    Please Login or Register  to view this content.
    I ran that macro and it is not deleting records that appear in both lists.

    And yes, before anyone asks, I made sure the data I wanted to filter was in column b.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Delete both duplicate rows in excel

    You don't necessarily need code for this. You could use a formula and filter, then delete rows.

    In a column on the sheet with the second list you can use this formula to count if value in list2 is contained in list1. It is is not there, then the count will be zero.

    Since you want to retain items in list2 that do not appear in list1, auto-filter the column with the countif formula so show only values greater than zero, then delete the visible rows. Turn off filtering when finished.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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