Advanced Filter in Excel
Advanced Filter is a powerful Excel tool used to extract specific records from a large dataset based on one or more conditions. It provides more control than the normal Filter option.
What Can Advanced Filter Do?
| Feature | Purpose |
|---|---|
| Multiple Conditions | Filter records using more than one condition. |
| Copy Results | Copy filtered data to another location. |
| Unique Records | Display only unique values. |
| Complex Filtering | Use AND and OR conditions. |
Sample Student Data
| ID | Name | Course | Fees |
|---|---|---|---|
| 101 | Rahul | Excel | 5000 |
| 102 | Priya | Python | 7000 |
| 103 | Amit | Excel | 6000 |
| 104 | Sneha | Power BI | 8000 |
Understanding Criteria Range
Advanced Filter requires a Criteria Range. The criteria range contains the column name and the condition to be applied.
Example: Show Only Excel Students
| Course |
|---|
| Excel |
Here, Course must be exactly the same as the column heading in the original table.
Steps to Apply Advanced Filter
- Create your data table with headings.
- Create a criteria range anywhere on the worksheet.
- Click any cell inside the data table.
- Go to Data Tab.
- Click Advanced in the Sort & Filter group.
- The Advanced Filter dialog box appears.
- Select the List Range (your original table).
- Select the Criteria Range.
- Choose whether to:
- Filter the list in place
- Copy to another location
- Click OK.
Example 1: Single Condition
Display only students enrolled in Excel.
Criteria Range
| Course |
|---|
| Excel |
Result
| ID | Name | Course | Fees |
|---|---|---|---|
| 101 | Rahul | Excel | 5000 |
| 103 | Amit | Excel | 6000 |
Example 2: AND Condition
Show students whose Course is Excel AND Fees are greater than 5500.
Criteria Range
| Course | Fees |
|---|---|
| Excel | >5500 |
Conditions written on the same row mean AND.
Result: Amit only.
Example 3: OR Condition
Show students enrolled in Excel OR Python.
Criteria Range
| Course |
|---|
| Excel |
| Python |
Conditions written on different rows mean OR.
Copy Filtered Data to Another Location
- Open Advanced Filter.
- Select Copy to another location.
- Select the output cell (example: H1).
- Click OK.
- Excel copies only the filtered records.
Extract Unique Records
Advanced Filter can remove duplicate values and display only unique records.
Steps
- Open Advanced Filter.
- Select your List Range.
- Check Unique Records Only.
- Click OK.
Excel displays each value only once.
Common Mistakes
| Mistake | Solution |
|---|---|
| Wrong Heading Name | Criteria heading must exactly match the original heading. |
| Blank Rows in Data | Keep data continuous without blank rows. |
| Wrong Criteria Range | Select both heading and condition cells. |
Shortcut Key
| Shortcut | Purpose |
|---|---|
| Alt + A + Q | Open Advanced Filter |
