Sub topic 5
Turn on a filter and filter by values
Assume you can navigate a spreadsheet, enter data, use simple formulas, and identify ranges such as A2:D100. This chapter uses the Google Sheets Data menu to hide rows that do not match selected values. The filter changes what you see, but it does not delete or rearrange the underlying rows.
Prepare a clean table
A filter works predictably when the data has:
- One header row at the top.
- One type of value in each column.
- No completely empty rows inside the table.
- No merged cells across the data range.
- A consistent range that includes every data column.
For example:
| Region | Product | Amount | Status |
|---|---|---|---|
| West | Keyboard | 850 | Open |
| East | Monitor | 1250 | Closed |
| West | Mouse | 300 | Open |
| North | Laptop stand | 700 | Pending |
Select any cell inside this table. If Sheets detects the surrounding data correctly, it can suggest the complete table range.
Turn on a filter
- Select the table, including its header row. For the example, select
A1:D5. - Open Data.
- Choose Create a filter.
- Check that a filter icon appears in each header cell.
Each icon opens a menu for that column. The filter applies to the selected range, so confirm that the range includes all rows and columns you want to control.
Filter by selected values
Suppose you want to see only rows where Region is West.
- Open the filter icon in the Region header.
- In the menu, use the value list.
- Clear Select all.
- Select West.
- Click OK.
Sheets hides the East and North rows. The row numbers may skip from one visible row to the next because the other rows are hidden. The data remains in the sheet.
To show all regions again, open the Region menu and choose Select all, then click OK. You can also use Clear filter, depending on the menu version.
A value filter compares the displayed values in the column. It is useful for categories such as regions, statuses, owners, or product names. It is less suitable when you need rules such as “amount greater than 1000.” Those condition-based filters use a different menu option and are covered separately.
Check the filter state
A filtered column shows a filter indicator. Other collaborators who open the same sheet may see the current filter state, so avoid changing a shared sheet merely to inspect data. Later, you can use a filter view to apply a personal filter without changing what other collaborators see.
When several columns have filters, Sheets combines them. For example, selecting West in Region and Open in Status displays only rows matching both choices. To troubleshoot an unexpectedly small result, open each filtered column and check its selected values.
Exercise
Exercise
In the example table, how do you display only rows where Status is Open?
Show answer
Open the Status filter menu, clear Select all, select Open, and click OK. Sheets hides the Closed and Pending rows while keeping them in the table.