Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets: Sort a Column Without a Header

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To sort a column in Google Sheets without the header row being dragged into the sort, the reliable method is to select only the data cells — click the first data cell, then Shift-click the last one — and use Data > Sort range > Advanced range sorting options with "Data has header row" left unchecked. Google Sheets decides whether row 1 is a header based on what you select and how you invoke the sort, so the fix is almost always about the selection, not a hidden setting. The steps below cover the desktop browser version first, then the differences on the mobile app, plus what to do when a sort scrambles your sheet.

What You'll Need

  • A Google account with edit access to the spreadsheet (view-only access hides the sort commands).
  • The spreadsheet open in a desktop browser for the full set of sort options; the mobile app has a reduced version.
  • A clear idea of whether your data is a single column or several columns that must stay aligned row by row — the two cases need different selections.
  • Optionally, a backup: File > Make a copy before a large re-sort is cheap insurance.

Step-by-Step

  1. Decide what you are sorting. If column A is a list of names with nothing beside it, you are sorting one column. If columns A, B and C form records (name, email, date), you must sort all three together or the rows will no longer match. Sorting a single column of a multi-column table is the single most common way people break a sheet.
  2. Select only the cells you want moved. Click the first data cell (for example A2, skipping the header in A1). Hold Shift and click the last data cell in the range. Do not click the column letter at the top — that selects the entire column including the header and every empty cell below your data.
  3. Open the sort menu. Go to Data > Sort range. In current versions of Sheets this opens a small submenu; choose Advanced range sorting options to get the dialog with full control. Menu labels can differ slightly by version and region, so if you see a slightly different wording, look for the sort entry under the Data menu.
  4. Leave "Data has header row" unchecked. This is the setting that matters for your question. When it is unchecked, Sheets treats every selected cell as data and sorts it, which is what you want when the header is outside your selection. When it is checked, Sheets pins the top row of the selection and sorts everything below it.
  5. Choose the sort order. Pick A → Z for text ascending or Z → A for descending. For numbers, the same options sort smallest to largest and largest to smallest. For dates, A → Z gives oldest first. Click Sort.
  6. Verify the result. Check that the header row is still in row 1 and that the first and last values in your column look right. If your data had blank cells, they will collect at one end of the sorted range — Sheets always places blanks last in ascending order.
  7. For multi-column data, select the whole block. Click the top-left data cell, Shift-click the bottom-right data cell, then use Data > Sort range > Advanced range sorting options. Check "Data has header row" so Sheets keeps row 1 fixed, then choose which column to sort by from the drop-down. This keeps each record's cells together.
  8. On the mobile app, the flow is shorter. Select the cells by tapping the first cell and dragging the selection handles, then tap the three-dot menu and look for the sort option, or use the column header menu. The mobile app does not expose the full advanced dialog with the header-row checkbox in the same way, so if precise control matters, do the sort on a computer.

Common Mistakes

  • Selecting the whole column with the column letter. This includes the header and thousands of empty rows, and Sheets may then guess that row 1 is a header and pin it — or may not, depending on the data. Selecting only the data cells removes the guesswork.
  • Sorting one column of a table. If you sort only column B while columns A and C stay put, the rows no longer correspond. Always sort the full block when columns are related.
  • Assuming the header checkbox is a global setting. It is per-sort, inside the dialog. Each new sort starts fresh.
  • Ignoring merged cells. Sorts fail or behave oddly when the range contains merged cells. Unmerge them first (Format > Merge > Unmerge) and reapply afterwards if needed.
  • Forgetting formulas. Relative references in formulas can point at the wrong row after a sort. If your sheet uses formulas that reference other rows, check a few results after sorting, or convert the range to values first if the formulas are no longer needed.

Tips

  • Use Data > Create a filter for repeated sorting. The filter icons in the header row let you sort without reselecting the range each time, and they keep the header fixed automatically.
  • Freeze the header row first with View > Freeze > 1 row. It will stay visible while you scroll and makes it obvious whether a sort moved it.
  • Sort a copy of the sheet when experimenting. File > Make a copy takes a second and gives you a clean rollback point.
  • If you only need to reorder visually and not change the underlying data, consider a helper column with a rank formula instead of sorting.
  • For a quick single-column sort with no dialog, right-click a selected cell and use the sort options in the context menu — but confirm the selection first, because the context menu sorts whatever is selected.

Troubleshooting

The header moved into the data. Undo with Ctrl+Z (Cmd+Z on Mac) immediately, then redo the sort with only the data cells selected and the header-row box unchecked. If you had checked the box, uncheck it.

Rows no longer match after sorting. This means only part of the table was selected. Undo, then select the entire block including all related columns before sorting.

The sort options are greyed out. The sheet is probably view-only, or the range is protected. Check the sharing permissions and any protected ranges under Data > Protected sheets and ranges.

Nothing appears to happen. Make sure you selected more than one cell. Sorting a single cell is a no-op.

Numbers sort as text. Values like "10" stored as text will sort before "2". Convert them with Format > Number > Automatic, or use a formula to coerce them, then sort again.

If that did not work, copy the data into a fresh sheet (paste as values), sort there, and paste it back. This strips formulas, formatting quirks and merged cells that can interfere with sorting.

Frequently Asked Questions

Does Google Sheets automatically detect a header row?

It guesses based on the selection and content, which is why results can feel inconsistent. The advanced sort dialog lets you state it explicitly with the "Data has header row" checkbox.

Can I sort without affecting other columns?

Yes, by selecting only that column's data cells. Only do this when the columns are independent — otherwise the rows will stop lining up.

Why does my header keep getting sorted?

Because the selection includes row 1 and the header-row option is unchecked. Select from row 2 down, or check the box if row 1 is inside your selection.

Is there a one-click way to sort a column?

The filter buttons (Data > Create a filter) give you a single-click sort per column and keep the header row in place. That is the closest thing to one-click sorting in Sheets.

Does sorting on mobile behave the same way?

The mobile app sorts the selected range but offers fewer options than the desktop dialog. For header control and multi-column sorting, use a computer.