Google Sheets Sort Range Greyed Out: Fix It
In this article
If Sort range is greyed out in Google Sheets, it almost always means the range you are trying to sort is not a plain data range: it is part of a protected range, a filtered view, a pivot table, an array formula output, or a merged cell block. The fix is to select a clean block of cells that contains only values and headers, then use Data > Sort range (or Sort range > Advanced range sorting options). If the menu item stays disabled, check protection, filters, and merged cells first. This guide walks through the exact checks, the correct way to sort, and what to do when the option still will not enable. Menu labels can differ slightly by version, device, or region, but the paths below match the current desktop web app.
What You'll Need
- A Google account with edit access to the spreadsheet (view-only or comment-only access disables sorting).
- A desktop browser for the full menu path; the mobile Sheets app has a reduced sorting menu.
- A range of cells that contains data only, with no merged cells and no protected cells inside it.
- Optional: a header row if you want to keep column titles out of the sort.
Step-by-Step
- Confirm you can edit the file. Look at the top-right of the sheet. If it says View only or Comment only, ask the owner for edit access. Sorting is disabled for anyone without edit rights, and no menu trick will change that.
- Select a clean data range. Click the first cell of your data, then drag to the last cell, or click the top-left cell and press Ctrl+Shift+End (Windows/ChromeOS) or Cmd+Shift+End (Mac). Do not include blank rows, totals rows, or notes columns unless you want them sorted too.
- Check for merged cells. Select the range and look at the toolbar: if the merge button is active, the range contains merged cells. Google Sheets will not sort a range with merged cells. Select the merged cells and use Format > Merge cells > Unmerge, then re-select your data.
- Remove or pause filters. If the sheet has a filter applied, the range may be treated as a filtered view. Click the filter icon in the toolbar and choose Remove filter, or open Data > Filter views and close any active view. Sorting inside a filter view is limited; sorting the underlying range works normally.
- Check protected ranges. Open Data > Protected sheets and ranges. If your selection overlaps a protected range you do not own, the sort option greys out. Either ask the owner to remove protection or select a range outside it.
- Avoid pivot tables and formula outputs. You cannot sort a pivot table's output cells directly; sort the source data instead, or use the pivot table's own sort options in the pivot editor. Similarly, cells produced by an
ARRAYFORMULAorQUERYare generated, not typed, so Sheets will not let you sort them in place. Sort the source range or wrap the formula inSORT(). - Use the correct menu path. With your data selected, go to Data > Sort range. If you see Sort range > Advanced range sorting options, open that dialog. Tick Data has header row if your first row is titles, choose the column to sort by, pick A→Z or Z→A, and click Sort.
- If the menu item is still greyed out, try a fresh selection. Click a single cell inside the data first, then press Ctrl+A (or Cmd+A) once to select the contiguous block. This avoids accidentally selecting an entire column or the whole sheet, which can also disable sorting in some layouts.
- Test on a copy. Right-click the sheet tab and choose Duplicate, then try sorting the copy. If it works there, the original has protection, a filter, or a merged range you missed.
Common Mistakes
- Selecting the whole sheet or an entire column. Sorting an entire column can shuffle unrelated rows. Always select the exact block of data.
- Forgetting the header row setting. If you do not tick Data has header row, your column titles get sorted into the data and end up in the middle of the sheet.
- Sorting only one column. If you select a single column and sort, Sheets warns that adjacent data will not move with it. Expand the selection to all related columns first.
- Ignoring merged cells above the data. A merged title row just above your table can make the whole range unsortable. Unmerge it or move it out of the selection.
- Assuming the mobile app has the same menu. The Sheets mobile app offers basic sort from the toolbar, but advanced range sorting options are desktop-only. Use a browser for full control.
Tips
- Use Data > Sort range > Advanced range sorting options to sort by multiple columns at once, which is safer than sorting one column at a time.
- Freeze your header row with View > Freeze > 1 row so it stays visible while you check the sorted result.
- If you sort often, consider a
SORT()formula in a separate sheet so the original data stays untouched. - Before a big sort, duplicate the sheet tab as a backup. Sorting cannot be undone after you close the file.
Troubleshooting
If Sort range remains greyed out after the steps above, work through these checks in order:
- Sign out and back in. A stale session can leave menu items disabled. Refresh the browser tab first, then sign out of Google and sign in again.
- Try an incognito window. Browser extensions sometimes interfere with Sheets menus. Open an incognito or private window, sign in, and test the same file.
- Check the file type. If the file is an Excel file opened in Sheets, some features are limited. Use File > Save as Google Sheets to convert it, then sort the converted copy.
- Look for a filter view owned by someone else. Open Data > Filter views and close any view listed there. A shared filter view can block sorting for other editors.
- Ask the owner about protection. If the sheet is protected and you are not the owner, only the owner can remove it. There is no workaround that preserves the protection.
If none of these work, the range is likely formula-generated. Copy the visible values with Ctrl+C and Ctrl+Shift+V (paste values only) into a new sheet, then sort that copy.
Frequently Asked Questions
Why is Sort range greyed out even though I can edit the sheet?
The most common causes are merged cells in the selection, an active filter view, or a protected range overlapping your data. Check those three first.
Can I sort a pivot table in Google Sheets?
Not by selecting its output cells. Sort the source data, or use the sort options inside the pivot table editor.
Does sorting work in the Google Sheets mobile app?
Basic sorting is available from the toolbar, but advanced range sorting options are only in the desktop web version. Use a browser for full control.
What happens if I sort only one column?
Sheets warns you that adjacent data will not move with it, which can scramble rows. Always select all related columns before sorting.
Can I undo a sort?
Yes, immediately after sorting use Ctrl+Z (or Cmd+Z). Once the file is closed, the undo history is lost, so duplicate the sheet first for large sorts.