How to Sort by a Column in Excel

If you just need to sort by a column in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

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.

ƒxList SorterLive
Sorted entries
4
=SORT(A2:A5,1,1)
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

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 “sort by a column in excel” 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

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. The short version of “sort by a column in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.

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.

Other ways people ask this

People reach this page typing “excel sort by column”, “how to sort in excel by column”, “excel group by column” and “how to sort excel spreadsheet by column”, among other phrasings; whichever wording you used, the fix above is the one you want.

Why do people search for this in so many different ways?

Because the same task has many names. “excel sort by column”, “how to sort in excel by column”, “excel group by column” all point at the one operation explained on this page, which is why they all lead here.