Skip to main content

Sort & filter your data

Want advanced Google Workspace features for your business?

Try Google Workspace today!

[Computer] [Android][iPhone & iPad]

You can sort data in alphabetical and numerical order, or use filters to hide data you don't want to see.

To get an example spreadsheet and follow along with the video, click “Make a Copy” below.

Make a copy

Sort data in alphabetical or numerical order​

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Highlight the group of cells you'd like to sort.
  3. If your sheet includes a header row, freeze the first row.
  4. Click Data and then **Sort range **and thenAdvanced range sorting options.
  5. If your columns have titles, click Data has header row.
  6. Select the column you'd like to be sorted first and choose a sorting order.
    • To add another sorting rule, click Add another sort column.
  7. Click Sort.

Sort an entire sheet​

Sort by color​

Filter your data​

Important: When you add a filter, anyone with access to your spreadsheet will see the filter too. Anyone with permission to edit your spreadsheet will be able to change the filter.

  1. On your computer, open a spreadsheet in Google Sheets.
  2. To create a filter, select an option:
    • Select a range of cells, then click Data and then Create a filter.
    • Right click on a cell or a range of cells, then click Create a filter.
  3. To see filter options, go to the top of the range and click Filter Filter list.
    • Filter by condition: Choose conditions or write your own custom formulas.## Custom formula examples
    • Filter by values: To hide data points, uncheck 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 color: Choose which text or fill color to filter by. You can filter by conditional formatting colors, but not alternating colors.
  4. To remove the filter, select an option:
    • Click Data and then Remove filter.
    • Right click on any cell then click Remove filter.

Once filtered, at the bottom right users can see the number of rows being 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.

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Click Data and then Create filter view.
  3. Sort and filter the data.
  4. To save your filter view, at the top right, click Save View.
  5. Click Save.

To delete or duplicate a filter view, at the top right, click Options More and then Delete view or** Duplicate view**.

To remove all filters, go to each filter view and click Options More and then Delete view.

Tip: You can’t change the order of filter views.

See an existing filter view​

Save a filter as a filter view​

Rename a filter view​

[Share or send a filter view link]

Learn more about filters & filter views​

Filters and filter views help you analyze 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 see 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.

Give feedback about this article