Skip to main content
 

How to filter rows based on a list selection in another sheet?

Author: Sun Last Modified: 2024-08-23

In Excel, we usually filter rows based on a criteria, but if there are two list, one is in Sheet1, and another in Sheet2, could you have any tricks to quickly filter rows in Sheet1 based on the list in Sheet2 as below screenshot shown? Here, I introduce the ways on solving this job.
filter based on selection

Filter rows based on a list selection with Advanced Filter function

Filter rows based on a list selection with formula

Extract rows based on a list selection with Kutools for Excelgood idea3


Filter rows based on a list selection with Advanced Filter function

To filter rows based on a selection, you can apply the Advanced Filter function.

1. Select the column list you want to filter, and click Data > Advanced in the Sort & Filter group. See screenshot:
click Advanced feature from Data tab

2. Then in the Advanced Filter dialog, check Filter the list, in-place option, and you can see the selected list you want filter have been added into the List range, and click select icon in the Criteria range to choose the list you want to filter based on. See screenshot:
set option in the Advanced Filter dialog

3. Click OK. Now the list has been filtered based on another list. See screenshot:
the list has been filtered based on another list


Filter rows based on a list selection with formula

With a formula, you also can filter the rows based on a list selection.

1. Select a blank cell next to the rows you want to filter, and enter this formula =COUNTIF(Sheet2!$A$2:$A$6, A2), and press Enter, then drag the auto fill handle down to apply this formula to the cells. See screenshot:
enter a formula to create a helper column

Note: in the formula, Sheet2!A2:A6 is the list you want to filter based on.

2. Select the column including the formulas, and then click Data > Filter to apply Filter function. See screenshot:
click Filter to apply Filter function.

3. Click the Filter icon in the formula column, only check 1 in the drop down list. See screenshot:
check 1 in the drop down list

4. Click OK. Now the rows have been filter based on the list in Sheet2.
he rows have been filter based on the list in another sheet


Extract rows based on a list selection with Kutools for Excel

If you want to compare two lists, and then extract rows based on another list, you can apply Kutools for Excel’s Select Same & Different Cells utility, it can compare two ranges and then select the same rows, and then you can extract the rows to another location as you need.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Enhanced with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing Kutools for Excel, please do as below:

1. Select the list you want to filter firstly, and click Kutools > Select > Select Same & Different Cells. See screenshot:
click Select Same & Different Cells feature of kutools

2. In the popping dialog, select select icon in the According to text box to select the criteria list, and check Each row and Same Values options, go to check Select entire rows option, too. If the selection including headers, please check My data has headers. See screenshot:
set options in the dialog box

3. Click Ok, a dialog pops out to remind the number of all same rows selected, click OK to close it. Now the same rows have been selected.
the rows based on the list in another sheet are selected

4. Then press Ctrl + C to copy the selected cells, and select a cell and press Ctrl + V to locate the rows.
copy and paste the selected rows to another place

  Extract Rows Based on List

 

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!