+ Reply to Thread
Results 1 to 3 of 3

Remove Duplicate Entries in List

  1. #1
    Registered User
    Join Date
    10-09-2009
    Location
    Cambridge, MA
    MS-Off Ver
    Excel 2003
    Posts
    61

    Remove Duplicate Entries in List

    Hello,

    I have a list and I would like to remove all of the entries that are duplicates in that list. I tried using the macro from microsoft (http://support.microsoft.com/kb/291320) but for one of the three lists where I try to remove the duplicates, it still returns two of the same value (I have e,t,t,e,t,e and it returns e,t, and e.). I am not sure why it would work for a few lists, but then not work for one list. Here is the code I'm using:

    Please Login or Register  to view this content.
    I tweaked it a little from the microsoft site; did I mess it up somehow? All I added was some code before the duplicate-removal piece which makes the list, and then at the end which puts the values of the duplicate-removed list in some different cells.

    Does anyone know why this code won't work for some lists and work for others? Is there much simpler code somebody could offer that would look at a column of data and remove the duplicates?

    Thanks!
    Last edited by nofzinger; 05-17-2010 at 06:43 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Remove Duplicate Entries in List

    Hi,

    There's really no need for macros for this sort of stuff. As a general rule use standard excel functionality wherever possible, even if you get a macro to compose it for you.

    In this case with your list starting in A1, in B1 and copied down enter the following formula

    Please Login or Register  to view this content.
    Then just filter for the word 'duplicates' in column B and delete all the filtered rows.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-09-2009
    Location
    Cambridge, MA
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Remove Duplicate Entries in List

    I totally agree. I just wasn't able to figure a nice little formula that would work. Thanks!

+ 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