+ Reply to Thread
Results 1 to 9 of 9

Eliminate Duplicates

  1. #1
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Eliminate Duplicates

    Hi guys,

    I have 2 spreadsheets that need to be combined into 1. However, the spreadsheets may contain duplicate names. I need a macro that will grab only 1 of each user and put it on a sheet3. The ID will always be unique for this (Column C). See attached. Sheet 1 and Sheet 2 are my users, and Sheet 3 is what I would like the macro to generate.

    Thanks for the help!
    Attached Files Attached Files
    Last edited by TShelt; 12-01-2011 at 11:47 AM.

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Eliminate Duplicates

    Try this

    Please Login or Register  to view this content.
    Please take time to read the forum rules

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Eliminate Duplicates

    Nice. There's just slight error when you run this macro twice (it put header row below)

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Eliminate Duplicates


  5. #5
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Eliminate Duplicates

    Why run it twice?

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Eliminate Duplicates

    IF run it twice
    I don't know why.. Not my case

    Maybe you've uploaded first or second sheet and now you want to refresh third one again.
    I've just notice that.. If user say it's fine by him, then fine by me too.

  7. #7
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Eliminate Duplicates

    @zbor
    True, why ask questions

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Eliminate Duplicates

    Not sure why its not working for me. That is just copying both lists to sheet3, not removing duplicates.

  9. #9
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Eliminate Duplicates

    Nvm. It appeared that one of my lists that is fed to me has a space before the IDs.

    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