xiaonajia
Senior Member
- Joined
- Mar 11, 2018
- Messages
- 1,029
- Reaction score
- 1
I have a data table and I want excel to filter the rows based on a list of items on another sheet.
For example, in the table, there are apple, apple, orange, pear, papaya.
Then on another sheet, I will dynamically type apple, pear in a column.
Once I activate the VBA code, it should show me the filtered rows in the table based on the column entries on another sheet, i.e. apple, apple, pear rows (show for multiple entries if there's same name)
https://www.extendoffice.com/documents/excel/4113-excel-filter-based-on-list-selection.html
Something as above, but I wasn't able to use this advanced filter function despite following the instructions, so I wasn't able to record a macro.
There are many more online tutorials but they are not based on VBA code or easy to use. One method was doing a countif, but the thing is my datatable will be dynamically expanding which means I have to drag and expand the countif or edit the formula each time. (besides, i dont like extra columns in my excel for viewing purpose so prefer doing this via VBA code or recording macro)
Does anyone know how to do this easily?
For example, in the table, there are apple, apple, orange, pear, papaya.
Then on another sheet, I will dynamically type apple, pear in a column.
Once I activate the VBA code, it should show me the filtered rows in the table based on the column entries on another sheet, i.e. apple, apple, pear rows (show for multiple entries if there's same name)
https://www.extendoffice.com/documents/excel/4113-excel-filter-based-on-list-selection.html
Something as above, but I wasn't able to use this advanced filter function despite following the instructions, so I wasn't able to record a macro.
There are many more online tutorials but they are not based on VBA code or easy to use. One method was doing a countif, but the thing is my datatable will be dynamically expanding which means I have to drag and expand the countif or edit the formula each time. (besides, i dont like extra columns in my excel for viewing purpose so prefer doing this via VBA code or recording macro)
Does anyone know how to do this easily?
Last edited: