4. Filtering with data filters in Excel

This lesson covers working with data filters.
A data filter makes it easy to search through data files.
Data filters are particularly useful with large data files such as a customer database.

The file Klanten is used for this lesson.
Here you can download the file Customers download.
You can then save the file on your own computer. In "My Documents", for example.

Open the file Klanten

Click the File tab and use the Open button to open the file Customers that you have just saved.

Figure 4.1 The Klanten file
The file Customers, with names, addresses and towns.

The formatting

First we will add formatting to the table so that it looks neat.
Click the Home tab if it is not already active.

 

Figure 4.2 Home tab
The Home tab with the formatting buttons.

Data filters can then be added to the table by clicking the "Format as Table" button.
The Format as Table button.

A list of formats opens.
Choose a format.

Figure 4.3 Choose a format
The drop-down menu with the available table styles.

 

Figure 4.4 Check that the table is selected
The selected data with the Format as Table window.

Check that the table has been selected correctly.
If all has gone well, the Format as Table window shows: =$A$1:$E$16
Click OK.

The result

Figure 4.5 Customer database with data filters
Table with names, addresses and towns.

Working with the data filter

In the previous exercise we added formatting and a data filter to the table.
In this exercise we are going to work with the data filter.

The formatting and the data filter have been added to the table.
The filter is visible in the row with the column headings.

Figure 4.6 The data filter
The column headers with the filter arrows in them.

Click the arrow next to Achternaam

Figure 4.7 Setting a filter for Surname
The filter arrow next to the Surname column.

Untick the (Select All) checkbox.
Tick the box next to Dirksen.


Figure 4.8 Select the desired filter
The filter menu, in which you sort and select.

The result of the filter

Figure 4.9 Filter result
Table with names, addresses and postcodes.

There is now a small button with a filter icon next to Surname. This means that the Surname field has been filtered.

Click the button next to Achternaam again.
Select the option (Select All)
All customers are visible again.

Make a list of everyone from Hilversum or Amsterdam.

The result

Figure 4.10 Result of filtering on all people from Hilversum or Amsterdam
Table with names, addresses and towns.

Solution:

You filter on Hilversum and Amsterdam by clicking the arrow next to City.
Make sure that only Hilversum and Amsterdam are ticked.

Share this chapter: