Excel: How to Filter One Column Based on Another Column


You can use the Advanced Filter function in Excel to filter the values in one column based on the values in another column.

The following examples show how to do so.

Example: Filter One Column Based on Another Column

Suppose we have the following dataset that contains information about various basketball players:

Suppose we define a list of specific team names in column E and we would like to filter the rows in the dataset to only contain the team names in column A that belong to column E:

To perform this filter, click the Data tab and then click the Advanced Filter button:

We’ll choose A1:C11 as the list range and E1:E5 as the criteria range:

Excel filter one column based on another column

Once we click OK, the dataset will be filtered to only show rows where the team name in column A is equal to one of the team names in column E:

Note that the Advanced Filter will only work if the column header of the criteria range matches the column header of the list range.

For example, this particular Advanced Filter worked because the column header of the criteria range and the list range were both Team.

Additional Resources

The following tutorials explain how to perform other common tasks in Excel:

Excel Advanced Filter: How to Use “Does Not Contain”
Excel Advanced Filter: How to Use “Contains”
Excel Advanced Filter: Display Rows with Non-Blank Values

Leave a Reply

Your email address will not be published. Required fields are marked *