+ Reply to Thread
Results 1 to 4 of 4

Filter Date and Delete entire row except headers

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    91

    Filter Date and Delete entire row except headers

    Hi.

    I'm new to excel macro. Say i have data in columns A-J and in column D they are numerous date but i only need workday-2. The rest, entire row should be deleted. So for example in column D there are 07-Jul-14, 08-Jul-14, 09-Jul-14, 10-Jul-14 and today is July 10, how can i only keep july 8 data?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter Date and Delete entire row except headers

    Hi,

    Untested but if you use a helper column K that contains the following formula in D2 copied down (I'm assuming row 1 has column labels)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Filter Date and Delete entire row except headers

    Without filter, this is another alternative that may be of help:

    Please Login or Register  to view this content.
    Regards,
    berlan

  4. #4
    Registered User
    Join Date
    07-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    91

    Re: Filter Date and Delete entire row except headers

    Hi.

    It's not working. I don't know why. Is it possible as well if I look up the date to delete from a cell? May be it's the format? It should be DD-MMM-YY?

+ 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. Delete Entire Row if it contains a value (Date) from a List/Range
    By Davidkuyt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2014, 04:22 PM
  2. [SOLVED] Delete entire Columns based on different Headers (Array)
    By WITJ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2013, 02:46 PM
  3. Macro to delete entire rows where O2:O does not equal a date
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2011, 10:37 PM
  4. Not Date Range, Delete Entire Row
    By ajocius in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2010, 10:17 AM
  5. Delete Entire Row - Date
    By Matt Cromer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2005, 01:05 PM

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