To filter A–Z in Google Sheets, you create a filter on your data range and then choose Sort A → Z from the filter menu. This rearranges rows so the column you pick runs alphabetically from A to Z (or numerically from smallest to largest). The data stays in place; only the row order changes. You need a Google account and a spreadsheet with a header row so the filter knows what to sort by.
What You'll Need
- A Google account and access to Google Sheets (web browser or the Google Sheets mobile app).
- A spreadsheet with data arranged in columns, ideally with a single header row at the top.
- Edit permission on the file if it is shared with you.
Step-by-Step
- Open your spreadsheet in Google Sheets. On desktop, go to sheets.google.com and click the file. On mobile, open the Google Sheets app and tap the file.
- Select the range you want to sort. Click and drag across the columns and rows, or click the top-left corner of the data block. If your data has a header row, include it in the selection so Sheets can treat it as a header.
- Create a filter. On desktop, click Data > Create a filter. On mobile, tap the three-dot menu at the top right, then tap Create filter. Small filter icons (funnel symbols) appear in the header cells.
- Click the filter icon in the column you want to sort alphabetically. A menu opens with sort and filter options.
- Choose Sort A → Z. Sheets reorders the rows so that column runs from A to Z. If the column contains numbers, this sorts smallest to largest; dates sort oldest to newest.
- Check the result. The rows should now be in alphabetical order, and the other columns should have moved with them so each row stays intact.
- To remove the filter later, click Data > Remove filter on desktop, or tap the three-dot menu and choose Remove filter on mobile. Removing the filter does not undo the sort; the rows stay in their new order.
Common Mistakes
- Sorting only one column. If you select a single column and then sort, Sheets may ask whether to extend the selection. Choosing “Continue with current selection” sorts only that column and breaks the row alignment. Always include all related columns in the range.
- Forgetting the header row. If the header is not included or not detected, the header text can be sorted into the data as if it were a value. Include the header when you create the filter, and check that Sheets shows it as a header in the filter menu.
- Using the filter to hide rows instead of sort. The filter menu has both sort and filter options. “Sort A → Z” reorders rows; filter checkboxes hide rows. They are different actions.
- Assuming the sort is permanent. A sort changes the row order in the sheet. If you need the original order back, undo with Ctrl+Z (Cmd+Z on Mac) or restore a previous version from File > Version history.
- Sorting merged cells or multiple header rows. Merged cells and stacked headers confuse the sort. Unmerge cells and use a single header row before sorting.
Tips
- Use Data > Sort range instead of a filter when you want a one-time sort without keeping filter icons visible. It offers the same A → Z option and an advanced range option.
- Sort by last name by creating a helper column with a formula such as
=SPLIT(A2, " ")or by using=REGEXEXTRACTto pull the surname, then sort that column A → Z. - If your sheet is shared, sorting affects everyone viewing it. Coordinate before reordering a shared sheet.
- Use Data > Filter views to create a saved sort/filter setup that only you see, without changing the order for other viewers.
- On mobile, the filter icon and menus are in the same place but the labels can differ slightly by app version and device.
Troubleshooting
- The sort option is greyed out. Make sure you have edit access, the sheet is not protected, and the range is not part of a merged cell block. Also check that you are not in a filter view you cannot edit.
- Rows are misaligned after sorting. Undo immediately (Ctrl+Z or Cmd+Z), then reselect the full data range including all columns and sort again.
- The header sorted into the data. Undo, then recreate the filter with the header row included. In the filter menu, confirm the “Header row” option is set correctly.
- Numbers sort as text. Values stored as text (often left-aligned) sort character by character, so “10” can come before “2”. Convert them to numbers with Format > Number, or use a formula like
=VALUE(A2)in a helper column and sort that. - Nothing happens when you click the filter icon. Refresh the page, check your internet connection, and try opening the sheet in a different browser. On mobile, force-close and reopen the app.
Frequently Asked Questions
Does sorting A–Z delete or change my data?
No. Sorting only changes the order of rows. The values stay the same. You can undo the sort with Ctrl+Z (Cmd+Z on Mac) or restore an earlier version from File > Version history.
Can I sort A–Z without showing filter icons?
Yes. Select the range, then use Data > Sort range > Sort A → Z. This performs a one-time sort and does not add filter buttons to the header.
Why does my A–Z sort put “apple” after “Banana”?
Google Sheets sorts by character code by default, so uppercase letters come before lowercase. To ignore case, use a helper column with =LOWER(A2) and sort that column instead.
Can I sort by multiple columns at once?
Yes. Use Data > Sort range > Advanced range sorting options. You can add a second and third sort column, for example sort by Last Name A → Z, then by First Name A → Z.
Does the mobile app support A–Z sorting?
Yes. Tap the three-dot menu, choose Create filter, then tap the filter icon in the column header and select Sort A → Z. Menu labels can vary slightly by app version and device.
Will sorting affect other people viewing a shared sheet?
Yes, a regular sort changes the sheet for everyone. To sort only for yourself, use Data > Filter views, which saves a personal view without altering the shared order.