• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Filtering past and future months

Navi

Member
Hi Team,

Need a help in excel macro.

I have a set of two to three years dates in a column (Mm/dd/yy format)

i need to filter the last month and the next six months date... how do I do that.

Please help.

Thanks,
Navi
 
Navi
It would be better to upload a sample file to get replies...
if You won't search Your needed answer from this forum.
 
Thanks. I have attached a file where we have date from 2018 till 2022.

my requirement is that, each month when i work in this file i need to filter from 2018 to next future 6 months.

eg: am working in October. i need to select from 2018 date till April 2020. That is 2018 till October 2019 is current + next 6 months.
 

Attachments

  • SAmple 1.xlsx
    75.7 KB · Views: 14
Navi
Your:
a) filter the last month and the next six months date
b) filter from 2018 to next future 6 months.
c) am working in October. i need to select from 2018 date till April 2020. ...
Could You give ONCE from which date to which date?
and
what would be those dates 45 days later?
If You cannot give dates - then even give Months and Years (eg Oct 2018 - Apr 2019).

Okay ... no answer not yet.
Here is a sample.
Select Cell A1 to get one of Your needed version of Filtering.
You can modify periods as You want.
 

Attachments

  • SAmple 1.xlsb
    73.5 KB · Views: 8
Last edited:
Navi
Your:
a) filter the last month and the next six months date
b) filter from 2018 to next future 6 months.
c) am working in October. i need to select from 2018 date till April 2020. ...
Could You give ONCE from which date to which date?
and
what would be those dates 45 days later?
If You cannot give dates - then even give Months and Years (eg Oct 2018 - Apr 2019).

Okay ... no answer not yet.
Here is a sample.
Select Cell A1 to get one of Your needed version of Filtering.
You can modify periods as You want.
HI This is working fine.. thanks a lot. i will edit the period alone. Very helpful
 
Hi [U]vletm[/U],

Need one more help. How can i embed the macro in different files n run. because if i use the same code you provided it runs automatically.. i need to run with a click
 
hi hi
1) ReName that macro
2) Create a button
3) Attach that named macro to that created button
4) Click that button
 
Back
Top