Sub topic 2
Turn on a filter and filter by values
This chapter assumes you can enter data, write simple formulas such as =SUM(A1:A10), and read cell ranges such as A2:D100. Your data should have one header row in row 1.
Turn on a filter and filter by values
Select any cell in the table, then choose Data > Create a filter. Google Sheets adds a filter icon to each header cell. Click the icon in a column, clear "Select all," tick the values you want to keep, and click OK. Rows with other values are hidden, not deleted.
Filter by condition and by color
Open a column's filter menu and choose "Filter by condition" to use rules such as "Greater than," "Is between," or "Text contains." Each column uses one method at a time, so setting a condition replaces any value list you chose.
To filter by color, open the menu and choose "Filter by color." Sheets lists the background and text colors used in that column. Pick one to show only matching rows.
Save filter views without disturbing collaborators
A filter you set on the sheet changes the view for everyone who opens it. To keep your own view, choose Data > Filter views > Create new filter view. Set your filters inside that view, then name it from the filter view menu.
> Other people can open your saved filter view from the same menu, but saving or using one does not change what they see unless they select it.
Add slicers for interactive filtering
Select your data, then choose Insert > Slicer. Pick a column in the slicer panel and choose the values to show. A slicer gives viewers a control for filtering rows without opening the filter menu.
Sort with the SORT function
SORT returns sorted rows as a new range and leaves the source data unchanged. This formula sorts rows A2:D by column 3 in descending order:
=SORT(A2:D, 3, FALSE)Starting at row 2 keeps the header out of the sort. The result spills into the cells below the formula, so those cells must be empty.
Exercise
Your sheet has Region in column A and Amount in column C, with the header in row 1. Which formula returns the data rows sorted by Amount from largest to smallest, without changing the source?
Show answer
=SORT(A2:D, 3, FALSE)