+ Reply to Thread
Results 1 to 8 of 8

Delete duplicates based on DATES.

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Delete duplicates based on DATES.

    Hi.

    Delete duplicates based on DATES.

    If I have dates in column "B" I want to make only the most recent date, the rest of the data will be deleted.


    Column "A" is where the dates and in the "B" have duplicates.
    example:
    DD / mm / yyy
    Column "A" - Column "B"
    15/04/2012---Laranja
    25/04/2012---Laranja
    06/05/2012---Laranja
    01/04/2012---Laranja

    the result would be
    06/05/2012---Laranja because it is the most recent date of duplicate data

    Thank you!
    Last edited by marreco; 05-31-2012 at 06:26 AM.
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

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

    Re: Delete duplicates based on DATES.

    sort by column a descending then use remove duplicates feature on col b
    "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

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Delete duplicates based on DATES.

    the problem is that I have many rows of data.
    the example that I have left is the dummy sentences.

    I have many columns and many rows
    the code would help me a lot, please help me, thank you!

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

    Re: Delete duplicates based on DATES.

    how is your data actually laid out then?

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Delete duplicates based on DATES.

    I have data in column "A" to Column "D" with over 10,000 lines

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

    Re: Delete duplicates based on DATES.

    that's not what i asked,how many columns have dates,how many columns have names with duplicates ? you could just record a macro doing what i suggested above,(but really its only a few clicks (10)to remove dupes manually if its just 2 columns as your example manually) but no one can guess exactly what you want ,post a sample workbook.
    Last edited by martindwilson; 05-31-2012 at 05:21 AM.

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

    Re: Delete duplicates based on DATES.

    heres a recorded macro i tidied up a bit to run on sheet 1
    Please Login or Register  to view this content.

  8. #8
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Delete duplicates based on DATES.

    Hi.

    Greate, thank you!!!

+ 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