GridDojo

How to Sort and Filter Data in Google Sheets

To sort in Google Sheets, use Data > Sort range; to filter, use Data > Create a filter and pick which rows to show. Sorting reorders your data, filtering hides rows without deleting them. Here is how to do both, step by step.

By The GridDojo Team Published 2 min read

Sorting and filtering are the two fastest ways to make sense of a long list. Sorting reorders the rows — alphabetically, or from highest to lowest. Filtering hides the rows you do not want to see right now, without deleting anything. Together they turn a messy sheet into exactly the view you need.

How to sort your data

  1. Select the range you want to sort, including the header row.
  2. Open the Data menu and choose Sort range > Advanced range sorting options.
  3. Tick "Data has header row", pick the column to sort by, and choose A→Z or Z→A.
  4. Click Sort. To sort by more than one column, click "Add another sort column" before sorting.

How to filter your data

  1. Click any cell in your data.
  2. Go to Data > Create a filter. A funnel icon appears on each header.
  3. Click the funnel on the column you want to filter.
  4. Choose "Filter by values" to tick which entries to show, or "Filter by condition" for rules like greater than, text contains, or is empty. Click OK.

Filtering only hides rows — your data is untouched. To bring everything back, go to Data > Remove filter.

Sort vs filter: which to use

Sorting vs filtering
SortFilter
What it doesReorders the rowsHides rows you do not want
Changes the data?Yes, the order changesNo, rows are only hidden
Best forRanking, alphabetizingFocusing on a subset

Sorting and filtering work best on clean data. Clear out repeats first with remove duplicates in Google Sheets, and freeze the header row so your column titles stay visible while you scroll.

Frequently asked questions

What is the difference between sorting and filtering in Google Sheets?

Sorting reorders every row — for example, alphabetically or highest to lowest. Filtering hides the rows you do not want to see, without changing or deleting anything. Use sorting to rank data and filtering to focus on part of it.

How do I filter without affecting other people in a shared sheet?

Use Data > Create filter view instead of a regular filter. A filter view changes only your own view of the data, so others working in the same sheet are not disturbed by your filtering or sorting.

Why did sorting mix up my rows?

You probably selected a single column instead of the whole table. Sorting one column moves only its values while the rest stay put. Always select the full range (with headers) so entire rows move together.

Sources and references

  1. Google Docs Editors Help — Sort & filter your data