Auto Filter on input box?

wmtsub

Active Member
Joined
Jun 20, 2018
Messages
322
Currently I am using a column to get the first letter of the adjacent column [company names] and then use the filter drop down box to narrow the viewable results to just that letter.
So in a few keystrokes I can filter to all companies that start with the letter "D". But this entails selecting the drop down box, clearing select all, scrolling to the desired letter and checking it.

So I was wondering if there was a way to create an input box where I could just enter a letter and have it automatically do the rest?
any ideas?
 
Hmm, maybe what I shuld have asked is for you to explain the parameters- so I guess that sets the third column?
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
It is the column number in respect of the first column that has a filter.
So if your data starts in col A then col C will be field 3, but if your data starts in col B then col C will be field 2
 
Upvote 0
Don't know why altering this is givng me such issues but I can not seem to figure it out.
I would like to use this on another sheet, it will have two locked rows so i will be looking for answers to poulate from colum "A" row 3 and down.
maybe the third time will be the charm and I will finally understand this.

And thanks for all your patience.
 
Upvote 0
Just change the A1 in the original code to A2
 
Upvote 0
This works with alpha but does not work with numbers? Can you help?

Sub fltr()
Range("A2").AutoFilter 1, InputBox("Please Enter Site #") & "*"
End Sub
 
Upvote 0
As far as I know you cannot filter for numbers that start with.
 
Upvote 0
It is a regular autofilter, but you cannot filter on numbers that start with.
Maybe if you explain what you want, rather than posting code that doesn't work, it would help ;)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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