+ Reply to Thread
Results 1 to 6 of 6

Macro to filter future dates

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    Leeds, UK
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Cool Macro to filter future dates

    Hi
    I need help for a macro to filter specific future dates. For example in the attached sample sheet I have Product number in column A, Category in column B and expiry date in column C. What I want to do is to filter Column C when expiry date in next 60 days from today for all High and Medium category product only. And then copy the content and paste into different tab.
    Could you please help?
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-27-2009
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    217

    Re: Macro to filter future dates

    Hi

    Here is something you can work with
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Macro to filter future dates

    check the attached file and press the button and see you result infront of your eyes and then ensure is it cool.....

    If this was really helpful to you then dont forget to hit * button for user reputation

    Regards
    CA Mahaveer Somani
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Macro to filter future dates

    One more to the collection of solutions.

    Make a point to let others know, which suited your requirements the most.
    Attached Files Attached Files
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  5. #5
    Registered User
    Join Date
    06-09-2011
    Location
    Leeds, UK
    MS-Off Ver
    MS Office 2016
    Posts
    77

    Re: Macro to filter future dates

    Thanks all
    All are working fine. One problem I ...cant add extra column to my master data sheet. The one from xlbiznes does not have extra column and i like the idea of input box. End part of the macro is little complicated though ( sorry i'm not very good at macro) and i'm having difficulty to implement it in my sheet. I'll take input from all the macros and will try to customized for my masted data. I'll get back with result soon...

    Thanks again to all of you...you show me the path to develop my own one.....

  6. #6
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Macro to filter future dates

    Hi,

    Will your column heading for the expiry date be called "Expiry Date" ? . if yes, then we can apply the filter on that column based on its column heading.

+ 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