+ Reply to Thread
Results 1 to 5 of 5

How to remove duplicates?

  1. #1
    Registered User
    Join Date
    01-31-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to remove duplicates?

    Hello, how do I remove a duplicate record and also that very record - e.g there are 5 email addresses on my spreadsheet for [email protected] how do I get rid of ALL of these, therefore not leaving any trace of this email at all. Is there an easy formula? If it is a v-lookup please explain how I do this, I know only basic excel.

    Thank you!

  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 remove duplicates?

    In an adjacent column you can use a COUNTIF() formula to count how many times that email address string is listed in that column. Then delete all the rows with a count of > 1.

    Assume emails are in column A. Put a generic TITLE in A1, all the emails from A2 down.

    Then the formula in B2 would be:

    =COUNTIF(A:A, A2)

    ...and copy down.

    Now turn on the Data > Filter for those two columns, filter column B for values > 1.... Delete all the visible rows. Turn off the FILTER and you're left with only the emails that were unique in the list.
    _________________
    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!)

  3. #3
    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,425

    Re: How to remove duplicates?

    The easiest way, I think, would be to add a Helper column. In the Helper column, use COUNTIF to count the number of occurrences of each email address. Then filter on the Helper column for counts greater than one.

    Delete all the visible rows and switch off filtering.

    Of course, you can be selective about which groups of records to delete.


    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


  4. #4
    Registered User
    Join Date
    01-30-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: How to remove duplicates?

    Another way would be to use conditional formatting - highlight rules - highlight duplicates
    then you could filter by color and just delete them

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to remove duplicates?

    Hi Stacey,

    Welcome to the forum.

    Since you are using Excel 2010, go to Data -> Remove Duplicates. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

+ 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