+ Reply to Thread
Results 1 to 4 of 4

Delete duplicate rows, but keep the cell that has the latest date

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    13

    Delete duplicate rows, but keep the cell that has the latest date

    Hey there,

    I have VBA codes to delete rows that have duplicate values in column D, and only keep rows that have the highest number value under column J. The problem that I've ran into is that column K contains different dates for each duplicate and the dates (latest) that I need to keep end up being deleted along with the unwanted duplicate rows. Is there anyway to delete the duplicate rows but only keep the cell that has the latest date in column K? TIA.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    08-16-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Delete duplicate rows, but keep the cell that has the latest date

    Bump for peeps back from lunch breaks

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Delete duplicate rows, but keep the cell that has the latest date

    Do you have a sample fie that you can upload?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    08-16-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Delete duplicate rows, but keep the cell that has the latest date

    The only file I currently have contains my company's proprietary information. When I have some time later on, I'll try to upload an example. 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