Filters can be used to narrow down the data in your worksheet and hide parts of it from view. While it may sound a little like grouping, filtering is different because it allows you to qualify and display only the data that interests you. For example, you could filter a list of survey participants to view only those who are between the ages of 25 and 34. You could also filter an inventory of paint colors to view anything that contains the word blue , such as bluebell or robin's egg blue .
In this lesson, you'll learn how to filter the data in your worksheet to display only the information you need.
F ilters can be applied in different ways to improve the performance of your worksheet. You can filter text, dates, and numbers. You can even use more than one filter to further narrow your results.
Optional: You can download this example for extra practice.
In this example, we'll filter the contents of an equipment log at a technology company. We'll display only the laptops and projectors that are available for checkout.
Worksheet with header row
Clicking the filter command
Filtering a column
Selecting filter data
Filtered worksheet
Filtering options can also be found on the Home tab, condensed into the Sort & Filter command.
Filters are additive, meaning you can use as many as you need to narrow your results. In this example, we'll work with a spreadsheet that has already been filtered to display only laptops and projectors. Now we'll display only laptops and projectors that were checked out during the month of August.
Selecting filter data
Worksheet with two filters
Clearing a filter
To instantly clear all filters from your worksheet, click the Filter command on the Data tab.
Searching for data is a convenient alternative to checking or unchecking data from the list. You can search for data that contains an exact phrase, number, date, or simple fragment. For example, searching for the exact phrase Saris X-10 Laptop will display only Saris X-10 laptops. Searching for the word Saris, however, will display Saris X-10 laptops and any other Saris equipment, including projectors and digital cameras.
Entering a search
Worksheet filtered using Search
Advanced text filters can be used to display more specific information, such as cells that contain a certain number of characters or data that does not contain a word you specify. In this example, we'll use advanced text filters to hide any equipment that is related to cameras, including digital cameras and camcorders.
Selecting a text filter
Entering filter text
Advanced date filters can be used to view information from a certain time period, such as last year, next quarter, or between two dates. Excel automatically knows your current date and time, making this tool easy to use. In this example, we'll use advanced date filters to view only the equipment that has been checked out this week.
Selecting a date filter
Worksheet filtered by date
If you're working along with the example file, your results will be different from the images above. If you want, you can change some of the dates so the filter will give more results.
Advanced number filters allow you to manipulate numbered data in different ways. For example, in a worksheet of exam grades you could display the top and bottom numbers to view the highest and lowest scores. In this example, we'll display only certain types of equipment based on the range of ID #s that have been assigned to them.
Selecting a number filter
Entering filter numbers
Worksheet filtered by number