+ Reply to Thread
Results 1 to 8 of 8

Removing EXTRA dupes

  1. #1
    Registered User
    Join Date
    07-05-2013
    Location
    Walnut Creek, California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Removing EXTRA dupes

    I already use "data/remove duplicates", but have come up with a new dilemma. I'm using slightly outdated lists of email addresses to market for my clients, and constantly receive a list of "bounces" after I send out a number of emails. For example, I send out 1,000 emails, and 100 bounce. I now have two lists: the original 1,000 contacts, and the 100 bounces. Is it possible to remove the 100 bounces from the 1,000 list, leaving 900 valid email addresses without having to do it with Ctl-F, one at a time?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,510

    Re: Removing EXTRA dupes

    Add a helper column to the big list. Use COUNTIF to see if each one exists in the short list. 100 will have a value of 1, 900 will have a value of 0. Filter on the 1s and delete the visible rows. Then delete the helper column.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Removing EXTRA dupes

    Hi and welcome to the forum

    Without seeing your data, you may have to adjust ranges etc. Assuming list 1 (1000) is in A1 down, and list 2 is in C1 down, copy this down in B...

    =vlookup(A1,$C$1:$C$100,1,0)

    Then all the cells that have an error message in them, are the 1's you keep - if it gives an answer, that means it found a "bounce" and can be deleted
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    03-06-2013
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2007, 2010
    Posts
    127

    Re: Removing EXTRA dupes

    Create a new column of data for column C. Give the cell C1 the column name "Match".

    Assumptions:
    1. Column A contains the list of 1000 email addresses.
    2. Column B contains the list of 100 bounced email addresses.

    Use the following formula:
    =MATCH(B2,A2:A1001,0)
    Copy the formula down the column.
    You should only have 100 matches, the rest should be an #N/A error. Sort by column C and all your bounce addresses will be at the top of array. Delete out the values that had a match and then delete column C.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,510

    Re: Removing EXTRA dupes

    The match range would need to be absolute.

    However, if you match column B (short list) against column A (long list) you will get 100 matches.

    Regards TMS

  6. #6
    Forum Contributor
    Join Date
    03-06-2013
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2007, 2010
    Posts
    127

    Re: Removing EXTRA dupes

    Thank you TMShucks. Forgot to make the range absolute.

  7. #7
    Registered User
    Join Date
    07-05-2013
    Location
    Walnut Creek, California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Removing EXTRA dupes

    Quote Originally Posted by BrownBoy View Post
    Thank you TMShucks. Forgot to make the range absolute.
    Thank you, but that doesn't seem to work. I created two columns in the big sheet: one for the countif function, the other with the list of EXTRA dupes that I want to delete from the "big list". The countif function works correctly, and tells me that there is 1 duplicate in the big list that matches each cell in the "to be deleted" list. So I end up with a column that has only "1"s in it. (I assume you mean "sort by" when you say "filter"). Sorting a column that consists of only the number 1 has no result.
    Let me explain where I'm getting my lists. I emailed 2,000 addresses and got several hundred bounces. The "big list" is the list I emailed, and it includes not only email addresses, but mail address, phone numbers, names, etc.
    The "to be deleted" list is all the bounced emails.
    Using the "to be deleted" list, I want to quickly find all the matching files(rows) and delete them from the "big list", leaving me with a shorter list of non-bounced emails.
    Can that even be done?
    Again, thank you very much

    Tom Markham

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Removing EXTRA dupes

    Just select all the data in the "big" list click on Sort and Filter, Custom Sort and sort on the column with the 1's. All the rows with 1 will be sorted together. Select those rows and delete.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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