Filter by content of this user imported cell

Anonymous321

New Member
Joined
Oct 12, 2021
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Hey

I'm wondering is its possible to set up a filter that filters a table by the content of a user imported cell rather than the user applying a filter by clicking the arrow and choosing an option from the dropdown box. For example in cell "b2" the user will have an option to pick a film genre, which ever they pick will filter the table in the same sheet below. Preferably I wouldn't want to use the Filter formula to to do this, but I understand that'll be the easiest option. I'm guessing VBA could be used but I'm not aware of how to accomplish this.

Any help will be appreciated, thanks.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Update, managed to do this but only works when a button is clicked, would prefer it to be automatic
VBA Code:
'Apply Filters to Column
If Range("N4").Value = "All" Then 'if All is select, don't apply any filters
Else:
    Worksheets("Sheet1").ListObjects("SecondDynamicTable1").Range.AutoFilter _
     Field:=13, _
     Criteria1:="=*" & Range("n4").Value & "*", Operator:=xlAnd, _
     VisibleDropDown:=True
End If
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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