How to Filter by List in Another Sheet in Excel (2 Methods)

The FILTER function allows us to filter a set of data based on a set of criteria. Filtering data based on a list in another worksheet is also beneficial. When filtering data in Excel, you may need to filter by a whole list of values rather than just one or a few selected variables on occasion.  We will see two methods for  Excel filter by list in another sheet. We have a sample dataset in the Sample Data sheet.

excel filter by list in another sheet by advance filter

and a list for filtering in the List for Filter sheet.

excel filter by list in another sheet by advance filter


How to Filter by List in Another Sheet in Excel: 2 Ways

Using formulae, there is a simple method to accomplish this. To filter based on a list in Excel, utilize the COUNTIF function. Advance Filter is another quick option to do the same.


Method 1: Filter by List in Another Sheet Using Advance Filter

In our first method, we will use Advance Filter to extract data based on the list in another sheet.

Steps:

  • Select the entire data set including headers and go to Data > Advanced as shown in the image below.

excel filter by list in another sheet by advance filter

  • Now, select the list in another sheet which is list for filter, and click OK.

  • Remember one thing. The header must be the same as the header in the actual dataset.
  • Finally, our result will look like the following image, where unfiltered cells are hidden.

excel filter by list in another sheet by advance filter


Method 2: Using COUNTIF Function to Filter by List in Another Sheet

The COUNTIF function is the most used formula for filtering data based on a list in another sheet. Let’s see, how it works.

Steps:

  • First, type the following formula in cell G5.
=COUNTIF('List for Filter'!$C$5:$C$9, B5)

excel filter by list in another sheet by COUNTIF Function

  • Now, press the ENTER key.

excel filter by list in another sheet by COUNTIF Function

  • Finally, drag down to AutoFill the rest of the series.

  • After that, select the entire dataset and press CTRL+SHIFT+L.

excel filter by list in another sheet by COUNTIF Function

  • So, we applied Filter here. At this point, Filter Count for 1 and click OK.

  • Finally, our result will look like the following image.

excel filter by list in another sheet by COUNTIF Function


Practice Section

The single most crucial aspect in becoming accustomed to these quick approaches is practice. As a result, we’ve attached a practice workbook where you may practice these methods.

excel filter by list in another sheet by COUNTIF Function

Another sheet with a list for filtering is also given in the practice book.


Download Practice Workbook


Conclusion

That’s all for the article. These are 2 methods for Excel Filter by List in Another Sheet. Based on your preferences, you may choose the best alternative. Please leave them in the comments area if you have any questions or feedback.


<< Go Back to Filter in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mahbubur Rahman
Mahbubur Rahman

MAHBUBUR RAHMAN is a leather engineer with a talent for Excel and a passion for VBA programming. To him, programming is like a time-saving wizard, making data manipulation, file handling, and internet interactions a breeze. His skill set extends to SPSS, STATA, Deep Neural Networks, and Machine Learning. Holding a B.Sc in Leather Engineering from Khulna University of Engineering & Technology, he's shifted to become a content developer. In this role, he crafts technical content centred around Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo