+ Reply to Thread
Results 1 to 3 of 3

Need VBA code to remove entries if there are duplicates (remove them totally)

  1. #1
    Registered User
    Join Date
    11-24-2011
    Location
    SINGAPORE
    MS-Off Ver
    MS Office Home & Business 2010
    Posts
    22

    Need VBA code to remove entries if there are duplicates (remove them totally)

    Here is the summary of what I need to do.
    Task:-
    I need to compare a row of numbers in column A from row 2 (row 1 is the header) till the end of the row with data.

    If there are entries where there are duplicates, I need to delete them totally. I only need the numbers which are unique to remain.

    Is there a VBA code to do this?

    -Brandon

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

    Re: Need VBA code to remove entries if there are duplicates (remove them totally)

    Hi Brandon,

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

    Regards,
    DILIPandey

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

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Need VBA code to remove entries if there are duplicates (remove them totally)

    Would this work?
    Try it on a copy of your workbook, just in case.

    Please Login or Register  to view this content.
    dilipandey has the proper solution.

+ 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