+ Reply to Thread
Results 1 to 8 of 8

Remove duplicate data from worksheet

  1. #1
    Registered User
    Join Date
    06-29-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Remove duplicate data from worksheet

    Hi,

    Is there a function which will remove all instances of duplicated data from a spreadsheet rather than just one instance of a duplication? I purposely create duplications by merging two lists so that I can remove those who are in list A from list B. At the moment I sort alphabetically and conditional format duplicates then manually delete both which is time consuming!

    Thanks,

    Claire

  2. #2
    Registered User
    Join Date
    06-29-2010
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Remove duplicate data from worksheet

    Good question, I am actually looking for the exact same thing. I have a master worksheet of emails and recently was given an opt-out email worksheet. I need to remove all those listed in the opt-out from the master and as you state, doing it manually is time consuming. I have attempted to play around with some macros but I am pretty new to them.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Remove duplicate data from worksheet

    check your list assuming its in col a starting a2 with in another colum =COUNTIF(A:A,A2)>1 drag down
    filter by true
    delete all the rows
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    06-29-2010
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Remove duplicate data from worksheet

    Quote Originally Posted by martindwilson View Post
    check your list assuming its in col a starting a2 with in another colum =COUNTIF(A:A,A2)>1 drag down
    filter by true
    delete all the rows
    So you are suggestion that you insert a col, say its col B. Then starting with b2 I put in =COUNTIF(A:A,A2)>1 and the fill down for the entire col. Once that is done I filter the col by true and delete all the trues?

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Remove duplicate data from worksheet

    in a nutshell yep! (assuming you mean the whole row of course)

  6. #6
    Registered User
    Join Date
    06-29-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Remove duplicate data from worksheet

    Just had reason to run my de-dupe and this works a treat. Thanks very much you've saved me lots of time and boredom!

  7. #7
    Registered User
    Join Date
    06-29-2010
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Remove duplicate data from worksheet

    When I do this it seems to want to delete both the duplicate entry and the original 1

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Remove duplicate data from worksheet

    then use
    =COUNTIF($A$2:A2,A2)>1
    but if you read post
    all instances of duplicated data
    is what the first one does

+ 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