+ Reply to Thread
Results 1 to 4 of 4

Clear Duplicates

  1. #1
    Registered User
    Join Date
    05-07-2009
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    15

    Clear Duplicates

    Hey everyone this is my first post on any excel forums. I can usually find a solution just by browsing but not this time. What i'm trying to do sounds simple enough. I have 2 Columns of data, example;

    1-Apr 1423
    1-Apr 1426
    24-Apr 1430
    8-May 1454
    8-May 1460
    15-May 1500
    15-Jun 1525
    15-Jun 1555
    15-Jun 1556

    I want to clear (not delete) the cells with a duplicate date in them while keeping the cell with the number next to it. So in this case they would be A2, A5, A8, A9. I've come up with a code that looks pretty logical but it doesn't work. Here's what it looks like.

    Please Login or Register  to view this content.
    Nothing much happens when i run this, it goes to the empty cell under the last used cell and doesn't clear anything.

    TIA

    -Chris

    --Edited a few bits of the code.
    Last edited by Falantar; 05-07-2009 at 12:02 PM. Reason: Solved

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    re: Clear Duplicates

    Welcome to the forum.

    Try this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-07-2009
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Clear Duplicates

    Wow, worked like a charm. Thanks for the quick reply!

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Clear Duplicates

    SHG's solution is great as usual. It would need a slight tweak if your goal was to stop at the first blank cell.

    Here is my approach from the bottom down to first blank cell. Of course it would need a slight tweak if your goal was to process all the cells in column A (bottom up approach).
    Please Login or Register  to view this content.

+ 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