What is Advanced Filter in Excel?
The advanced filter is different from the auto filter in Excel. This feature is not like a button that one can use with a single click of the mouse. To use an advanced filter, we have to define criteria for the auto filter and then click on the “Data” tab. Then, in the advanced section for the advanced filter, we will fill our criteria for the data.
For example, suppose you have a dataset. In this dataset, there are duplicate records. That could be due to an error in the data entry or a data compilation. We can use Excel Advanced Filter Tool to receive unique records in other locations, retaining the original data.
How to Use Advanced Filter in Excel? (With Examples)
Let us learn the use of this with some examples.
Example #1
Suppose we have the following data to filter based on different criteria:

We need to check the sales transaction made byย โTaranโย andย โSuresh.โย Then, we can use the OR operator, displaying the records satisfying any conditions. Then, we can follow the steps to apply theseย filters in Excelย to get the results.
Below are the steps for applying an advanced filter in Excel: –
- To use an advanced filter, first, we need to select any of the cells in the data range.

- Click on the “Data tab” โ “Sort & Filter” group โ “Advanced” command.

- As we click on “Advanced,” a dialog box “Advanced Filter” will open for asking “List Range” to filter, “Criteria Range” for defining the criteria, and “Extract Range” for copying the filtered data (if desired).

- For “Criteria Range,” we need to copy the column headings on the top row and define the criteria below the field heading. To specify the criteria, we can use the comparison operator, which is as follows:

- We want to get all records having the name โSureshโ or โTaran.โ The Criteria Range would be like below:
For “OR” conditions where we want to display the records that satisfy any requirement, we must specify the criteria in different rows.

There are two actions in an advanced filter.
- Filter the list in place: This option filters the list at the original position, i.e., on the “List Range.”After analyzing, we can remove the filter using theย “Clear”ย command in theย “Sort & Filter”ย group underย “Data.”

- Copy to another location: This option copies the desired data according to the criteria to the specified range.
We can use any option according to our needs, but we will use the 2nd option more often.
Now, we need to:
- First, open theย “Advanced Filter”ย dialog box.

- Specifying theย “List Range”ย as $A$5:$D$26,ย “Criteria Range”ย as $A$1:$D$3, and “Copy to” Rangeย as $F$5:$I$26. Click onย “OK.

All the records with names ‘Suresh’ย orย ‘Taran’ย are filtered out and displayed separately in a different cell range.

Example #2
We want all the sales transactions of Qtr 1 and South India. Therefore, the “Criteria Range” is as below:

As we have the ‘AND’ condition here, we want to display the records where both conditions are met. Therefore, we have mentioned the criteria below both column headings in the same row.
Now, we will click on theย “Advanced”ย command in theย “Sort & Filter”ย group under theย “Data”ย tab.

From the ‘Advanced Filter”ย dialog box, we will chooseย “Copy to another location”ย and then define theย A5: D26ย asย List Range,ย A1: D2ย asย “Criteria Range,”ย andย F5:I26ย asย “Copy To”ย range.

Now the result is as follows:

Example #3
We want to find sales in Qtr 1 or made in North India.
We need to specify both the criteria in different rows and different columns. We have to display the data if any conditions are met, and both are related to different columns.
Steps:
- We need to open theย “Advanced Filter”ย dialog box.

- We will specifyย “List Range”ย asย $A$5:$D$26.

- Also, specifyย “Criteria Range”ย asย $A$1:$D$3.

- And, specify theย “Copy To”ย range asย $F$5:$I$26.

The result would be as follows:

Example #4
Now, we want to find all sales of โน2,000 – โน4,000 and โน10,000 – โน13,000.

As we have four conditions,
(Condition 1 AND Condition 2) OR (Condition 3 AND Condition 4).
(>=2000 AND <=4000) OR (>=10000 AND <=13000)
We have mentioned the conditions with “AND”ย in the same row and “OR”ย in different rows.
Steps:
- To open theย “Advanced Filter”ย dialog box, we will click onย “Advanced”ย in theย “Sort & Filter”ย group underย “Data.”

- In theย “Advanced Filter”ย dialog box, we will specifyย “List Range”ย asย $A$5:$D$26

- And, we will specify the โCriteria Range”ย asย $A$1:$D$3

- Also, “Copy to”ย Range asย $F$5:$I$26

- After clicking onย “OK,“ย the result will be:

Example #5
We want to find the sales of Qtr 1 by Sunny or that of Qtr 3 by Mukesh.

As we haveย ANDย andย OR, both relations in conditions, we will specify the conditions in the criteria range in different rows (OR) and other columns (AND).
Steps:
- To open theย “Advanced Filter”ย dialog box, we will click onย “Advanced”ย in theย “Sort & Filter”ย group underย “Data.“

- In theย “Advanced Filter”ย dialog box, we specifyย “List Range”ย asย $A$5:$D$26.

- And we will specify the “Criteria Range”ย asย $A$1:$D$3.

- Also, โCopy toโย Range asย $F$5:$I$26.

- After clicking on “OK”, then the result would be:

Example #6 –ย Using WILDCARD Characters
We want to find all the sales transactions with a name ending with โeshโ or a region’s first word ending with โstโ and only want to retrieve the name, sales, and region.

Here, * denotes more than one character, and โ?โ represents only one character.
Before implementing the advanced filter, we need to specify the column labels on “Copy to Range” as we want only some columns, not all.

Now, we will call the command.
Steps:
- To openย the โAdvanced Filterโย dialog box, we will click onย โAdvancedโย in theย โSort & Filterโย group underย โData.โ

- In theย “Advanced Filter”ย dialog box, we specifyย “List Range”ย asย $A$5:$D$26.

- We will specify the โCriteria Rangeโย asย $A$1:$D$3

- Also, โCopy toโย Range asย $F$5:$H$26

- After clicking on โOK,โย then the result would be:

Example #7
We want to filter the top five sales (of a large amount).

The formula cell must evaluateย TRUEย orย FALSE to get the most significant five records. Hence, we used theย LARGE Excel functionย and compared the value with theย sales amount.
As we can see, the column heading for the formula cell is blank. Therefore, we can either keep it empty or give it a name that does not match the column headings in the data range.
We will specify the ranges in theย “Advanced Filter”ย dialog box.ย Steps are:
- To open theย “Advanced Filter”ย dialog box, we will click onย “Advanced”ย in theย “Sort & Filter”ย group underย “Data.”

- In theย “Excel Advanced Filter”ย dialog box, we will specify “List Range”ย asย $A$5:$D$26.

- Andย “Criteria Range”ย asย $A$1:$E$2

- Also,“Copy to”ย Range asย $F$5:$I$26

- After clicking onย “OK,” then, the result would be like this:

Things to Remember
- The range it needs to be applied must have a unique heading, as duplicate headers cause problems when running an advanced filter.
- There should be at least one blank row between the “List Range” and “Criteria Range.”
Recommended Articles
This article is a guide to Advanced Filter in Excel. We discussed using Advanced Filter in Excel, along with Excel examples and downloadable excel templates. You may also look at these useful Excel tools: –


