You can sort data in alphabetical and numerical order, or use filters to hide data that you don't want to find.
To get an example spreadsheet and follow along with the video, click 'Make a copy' below.
Sort data into alphabetical or numerical order
- On your computer, open a spreadsheet in Google Sheets.
- Highlight the group of cells that you'd like to sort.
- If your sheet includes a header row, freeze the first row.
- Click Data Sort range Advanced range sorting options.
- If your columns have titles, click Data has header row.
- Select the column that you'd like to be sorted first and choose a sorting order.
- To add another sorting rule, click Add another sort column.
- Click Sort.
- On your computer, open a spreadsheet in Google Sheets.
- At the top, right-click the letter of the column that you want to sort by.
- Click Sort sheet A to Z or Sort sheet Z to A.
- On your computer, open a spreadsheet in Google Sheets.
- Select a range of cells.
- Click Data Create a filter.
- To find the filter options, go to the top of the range and click Filter .
- Sort by colour: Choose which text or fill colour to filter or sort by. Cells with the colour that you choose to sort by will move to the top of the range. You can sort by conditional formatting colours but not alternating colours.
- To turn the filter off, click Data Remove filter.
Filter your data
Important:
- When you add a filter, anyone with access to your spreadsheet can find the filter too. Anyone with permission to edit your spreadsheet will be able to change the filter.
- The 'Create a filter' option is unavailable under certain conditions. Learn more about these conditions.
- On your computer, open a spreadsheet in Google Sheets.
- To create a filter, select an option:
- Select a range of cells, then click Data Create a filter.
- Right-click on a cell or a range of cells, then click Create a filter.
The option to 'Create a filter' can be unavailable due to:- Formatting
- Check for any merged cells, hidden rows or hidden columns in the sheet. Try to unmerge the cells and unhide the rows or columns.
- Check for any conditional formatting applied to the sheet.
- Go to Format.
- Select Conditional formatting.
- Make sure that there are no rules applied.
- Data validation
- Check for any data validation rules applied to the sheet.
- Go to 'Data'.
- Select Data validation.
- Make sure that there are no rules applied.
- Check for any data validation rules applied to the sheet.
- If none of the above solutions work, you might not have access. To get access:
- Create a copy of the sheet.
- Check if the filter option is enabled in the copy.
- If it is, you can use the copy of the sheet instead.
- To find the filter options, go to the top of the range and click Filter .
- Filter by condition: Choose conditions or write your own custom formulas.
Custom formula examplesFind unique values within a data range
- Select Custom formula is
- Type
=COUNTIF(data_range, data_range)=1
- Select Custom formula is
- Type
=OR(REGEXMATCH(data_range, "Good"), REGEXMATCH(data_range, "Great"))
- You can filter cells that have valid or invalid data validation rules.
- Filter by values: To hide data points, untick the box next to the data point and click OK.
- To create a filter and filter by cell value, right-click on a cell, then click Filter by cell value.
- Search: Search for data points by typing in the search box.
- Filter by colour: Choose which text or fill colour to filter by. You can filter by conditional formatting colours but not alternating colours.
- Filter by condition: Choose conditions or write your own custom formulas.
- To remove the filter, select an option:
- Click Data Remove filter.
- Right-click on any cell, then click Remove filter.
Once filtered, at the bottom right, users can find the number of rows displayed out of the total rows in the table.
Tip: Filters also apply to merged cells. Learn how to merge rows or columns.
Create, save, delete or share a filter view
Important: If you only have permission to view a spreadsheet, you can create a temporary filter view that only you can use. Your filter view won't be saved.
On a computer, you can filter data so the filtered data only applies to your view of the spreadsheet. Your filter view changes are automatically saved.
- On your computer, open a spreadsheet in Google Sheets.
- Click Data Create filter view.
- Sort and filter the data.
- To save your filter view, at the top right, click Save view.
- Click Save.
To delete or duplicate a filter view, at the top right, click Options Delete view or Duplicate view.
To remove all filters, go to each filter view and click Options Delete view.
Tip: You can’t change the order of filter views.
Find an existing filter viewImportant: You can only apply one filter view at a time.
- On your computer, open a spreadsheet in Google Sheets.
- Click Data Change view.
- Select a filter view.
- Your filter will be applied to the spreadsheet.
- To close your filter view, in the top right, click Close .
- On your computer, open a spreadsheet in Google Sheets.
- Apply a filter.
- Click Data Save as filter view.
- On your computer, open a spreadsheet in Google Sheets.
- Click Data Change view.
- Select a filter view.
- At the top left of the sheet, next to 'Name', click the filter view name and type the new name.
- Press Enter.
- On your computer, open a spreadsheet in Google Sheets.
- Apply the filter view .
- Copy the URL.
- Share the filter view link.
Learn more about filters and filter views
Filters and filter views help you to analyse a set of data in a spreadsheet.
You can use filters to:
- Show a specific filter when people open your spreadsheet.
- Sort your data after using a filter.
You can use filter views to:
- Save multiple filters.
- Name your filter.
- Let multiple people find different filter views at the same time.
- Share different filters with people.
- Make a copy or create another view with similar rules.
- Filter or sort a spreadsheet you don't have edit access to. In this case, a temporary filter view will be created.
Tip: When you have a formula that points to a cell inside a filtered range, note that sorting the filtered range won't change the formula. For example, '=B2' will continue to be '=B2' when B2 is within the filtered range.