+ Reply to Thread
Results 1 to 3 of 3

delete data by latest date

  1. #1
    Forum Contributor
    Join Date
    01-17-2008
    Posts
    156

    delete data by latest date

    Hi there,

    Can i i write a VBA to delete the other row data but only keep the latest date

    Pls see example attached file. (to keep the yellow data rows)
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,511

    Re: delete data by latest date

    Perhaps something like this might work. It adds a =MAX() formula to column D to check if the corresponding value for that row in column C matches the maximum date in column C. It then filters the data to only those that don't match the maximum date and deletes those rows.
    Please Login or Register  to view this content.
    BSB

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,653

    Re: delete data by latest date

    AdvancedFilter
    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)

Similar Threads

  1. VBA- Filter Pivot table based on latest and 2nd latest date in column
    By ziyan89 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-29-2015, 11:18 AM
  2. Data Analysis: Compare initial date with final date by looking up the latest revision
    By White_Glint in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2015, 02:31 PM
  3. Replies: 8
    Last Post: 04-08-2015, 10:10 PM
  4. Powerpivot - Returning latest update based on latest date
    By Kehjz in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 08-22-2013, 02:45 PM
  5. Delete duplicate rows, but keep the cell that has the latest date
    By vaznlyfe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2012, 01:35 PM
  6. Replies: 11
    Last Post: 07-24-2012, 02:42 AM
  7. Find the Latest date and delete the rest
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2009, 05:13 AM

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