In Excel: select one cell in the table, choose Data ▸ Sort, tick My data has headers, pick the column and order, and expand the selection so whole rows move together.
What this does
Sorting reorders rows by one or more columns. The key safety rule is that whole records must move together; sorting a single column by itself can detach names, dates and amounts from one another. Dates sort correctly only when Excel recognizes them as real dates, not text. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. Treat “excel sortable columns” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected columns shows up while it is still harmless. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That turns a data step that keeps your analysis trustworthy into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
A table has Customer, Date and Amount. Click inside it, choose Data ▸ Sort, tick My data has headers, sort by Date from Oldest to Newest, then add a level for Amount largest to smallest. Each row stays intact while the table order changes. Sorting is simple but high-risk: done correctly it reveals order and priority; done on the wrong range it corrupts the dataset. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.
In Google Sheets
Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. Here is the takeaway for “excel sortable columns”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
Common mistakes
- Sorting only one column and corrupting row relationships.
- Sorting dates stored as text, which can order alphabetically instead of chronologically.
- Leaving blank rows that split the detected table range.
- Forgetting to include hidden rows if they should be sorted too.
Frequently asked questions
How do I sort by date?
Make sure the values are real dates, then Data ▸ Sort by that date column.
How do I sort columns left to right?
Use Sort Options and choose Sort left to right.
Why did my rows get mixed up?
Only one column was sorted. Undo and sort the whole table range.