Filtering allows you to display only the information that is relevant to your analysis, making it easier to manage large datasets.
What Is Filtering in Excel?
Filtering in Excel involves narrowing down the data in a table or range based on specific criteria. When you apply a filter, Excel hides the rows that do not meet your conditions, leaving only the rows that are relevant to your analysis. This feature is particularly useful when dealing with large datasets, as it allows you to focus on a subset of data without altering or removing the original data.
Types of Filters in Excel
Excel provides different types of filters, ranging from simple filters to more advanced filtering options. Below are the most common types:
1. AutoFilter
AutoFilter is the simplest filter in Excel. It allows you to filter data in a table based on text, numbers, or dates.
2. Custom Filters
Custom filters allow you to create more specific filtering conditions, such as filtering data that meets multiple criteria.
3. Advanced Filters
Advanced filters provide more complex filtering options, including the ability to filter data based on multiple conditions from different columns.
4. Date Filters
Date filters are specifically designed to filter data by date, allowing you to select ranges such as "this week," "next month," or any specific date range.
5. Search Filter
You can also filter data based on specific text search terms. This is a quick way to find records containing certain words or numbers.
---
How to Apply Filters to an Excel Table
1. Enabling AutoFilter
To enable AutoFilter in Excel, follow these simple steps:
1. Select Your Data Range
Highlight the data range you want to filter. If you're working with a table, click anywhere within the table.
2. Go to the Data Tab
In the Excel ribbon, go to the Data tab.
3. Click Filter
In the Sort & Filter group, click the Filter button. This will add drop-down arrows to the column headers.
2. Basic Filtering with AutoFilter
Once you've enabled AutoFilter, filtering becomes easy. Here’s how:
1. Click the Drop-Down Arrow
Click the drop-down arrow next to the column header that you want to filter.
2. Choose Your Filter Criteria
From the list, you can choose from predefined options (e.g., "Sort A to Z", "Sort Z to A", or "Filter by Color"). You can also uncheck or check specific items to display only certain rows.
3. Apply the Filter
After selecting your filter criteria, click OK to apply the filter. Excel will display only the rows that meet your conditions.
3. Using Text Filters
Excel allows you to filter text data by specific conditions, such as contains, equals, or begins with. Here’s how:
1. Click the Drop-Down Arrow
For the column with text data, click the drop-down arrow.
2. Choose Text Filters
Select Text Filters from the menu.
3. Select a Condition
You can filter based on conditions like "Contains", "Begins With", "Ends With", "Equals", or "Does Not Equal".
4. Enter the Text Condition
After selecting your condition, a dialog box will appear. Enter the text you want to filter by and click OK.
4. Filtering by Number
If your table contains numeric data, you can filter using specific numerical conditions like greater than, less than, or between:
1. Click the Drop-Down Arrow
For a column with numbers, click the drop-down arrow.
2. Choose Number Filters
Select Number Filters from the drop-down menu.
3. Select a Condition
Choose from conditions like "Greater Than", "Less Than", "Between", or "Equals".
4. Enter the Number Criteria
In the dialog box, input the numbers that match your condition and click OK.
---
Advanced Filtering Techniques
While AutoFilter covers most basic filtering needs, sometimes you might need to apply more advanced filters.
1. Using Multiple Criteria in Advanced Filters
Advanced filters allow you to filter data based on multiple criteria across different columns. To use advanced filtering:
1. Prepare the Criteria Range
Copy the column headers from the table and paste them elsewhere on the sheet. Below each header, enter the filter criteria. For example, if you want to filter a column to show entries where values are greater than 100, enter "Greater than 100" below that column header.
2. Open the Advanced Filter Dialog Box
Go to the Data tab and click Advanced in the Sort & Filter group.
3. Set the Criteria Range
In the Advanced Filter dialog box, specify the List Range (the range of your table) and the Criteria Range (the range where you entered the filter criteria).
4. Choose to Filter In-Place or Copy to Another Location
You can either filter the data in place or copy the results to another location in the workbook.
5. Click OK
After setting up the criteria, click OK to apply the filter.
2. Filtering by Date Ranges
Filtering by dates is very useful when dealing with time-series data. Excel provides options to filter by date ranges, such as today, last week, or specific custom ranges.
1. Click the Drop-Down Arrow
For a column containing dates, click the drop-down arrow.
2. Choose Date Filters
Select Date Filters from the drop-down menu.
3. Select a Date Condition
Choose a predefined condition like "Today", "Next Week", "Last Month", or "Between".
4. Specify the Date Range
If you select "Between", you’ll be prompted to enter a start and end date. After entering your dates, click OK.
3. Filtering with Color
Excel allows you to filter data based on cell color, font color, or cell icons. This is particularly useful for visually distinct datasets.
1. Click the Drop-Down Arrow
For the column where the data is color-coded, click the drop-down arrow.
2. Choose Filter by Color
Select Filter by Color.
3. Select the Color
Choose the cell color, font color, or icon color you want to filter by. Excel will display only the rows with the selected color.
---