Let's say your data are on Sheet 1, in A2:AZ200000 (A1:Z1 are headers).
On another sheet, say Sheet 2, you enter the values you want to filter on in A2:A21, with the same header in A1 as on Sheet 1.
The following formula will return the filtered data:
=FILTER('Sheet 1'!A2:A1Z200000, COUNTIF('Sheet 2'!A2:A21, 'Sheet 1'!A2:A200000), "")
Alternatively, you can use Advanced Filter:
- Click anywhere in your dataset.
- On the Data tab of the ribbon, in the Sort & Filter group, click Advanced.
- Click in the Criteria range box.
- Point to the list of names on Sheet 2, including the header.
- Click OK.