Filtering number of months through Input box

vinmam123VBA

New Member
Joined
Dec 18, 2020
Messages
33
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Can you please help me with below requirement:

I have column where I have months from Jan to Dec.

I would like to filter for the months. Some time only for 1 month and some time more than 1 month upto 6 months

Can you please help me with code where I should enter the number of months to be filtered and then I should be able to enter months name and filter the column accordingly

For example:

If I want to filter for Jan, Jun and Sep I should be able to enter Jan, Jun and Sep in input box to filter for these three months

If I want to filter for Two months(Jun and Oct) I should be able to enter in the input box and filter column for Jun and Oct.

Regards,
Vin
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Would it not be easier to format as a table and you can then simply filter by unticking the months you don't want?
 
Upvote 0
Would it not be easier to format as a table and you can then simply filter by unticking the months you don't want?
Thanks for the response. I am looking for code to include in one of my project. I believe Table will not help
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top