Text size17
All Excel lessons

Excel · Lesson 11

Sort a list alphabetically or numerically

3 min readEasy — no prior experience needed

Sorting puts a list in order — A to Z, smallest to largest, oldest to newest. It takes one click, but there is one habit that keeps it safe. This page covers both, so you never end up with names attached to the wrong numbers.

A list you can order is a list you can actually use. Sort surnames A to Z and you can find someone by eye. Sort a column of costs largest to smallest and the three things worth worrying about float to the top. Nothing is added or removed by sorting — the same rows are simply rearranged.

Click inside the list, not a lone column. Selecting column A on its own and sorting it would leave the costs behind. Clicking a single cell such as A3 lets Excel work out the whole list and move each row together.
  • Selecting only this column is the danger
  • Click one cell inside the list instead
  • The header row becomes the labels

When you click one cell and sort, Excel looks around, works out where your list starts and stops, treats the top row as headings, and moves whole rows together. Names stay with their own numbers.

Try it yourself

  1. In A1 type Name and in B1 type Cost. Fill three rows underneath, for example Smith 40, Adams 90, Baker 15.

    The top row becomes your headings, which is what lets Excel label the sort options with real words instead of "Column A".

  2. Click once on any single cell inside that block, such as A3.

    This tells Excel which list you mean without you selecting anything. One cell is enough.

  3. On the Data tab, click Sort A to Z.

    Excel sorts by the column your cursor is in — the names — and carries each cost along with its name. Adams, Baker, Smith.

  4. Click a cell in the Cost column and click Sort Largest to Smallest.

    Same list, different question. 90, 40, 15, with the right name still beside each figure.

  5. Press Ctrl and Z together.

    Undo reverses a sort completely. Knowing this makes sorting safe to experiment with.

Words people use

Sort
Rearranging rows into an order without changing what they contain.
Header row
The top row of labels that names each column.
Ascending
A to Z, smallest to largest, oldest to newest.
Descending
Z to A, largest to smallest, newest to oldest.
Sort level
One rule in a multi-step sort, used to break ties from the level above it.

Check yourself

If you can say yes to each of these, you are ready for the next lesson.

  • I click one cell inside a list before sorting, never a lone column
  • I can sort text A to Z and numbers largest to smallest
  • I know that Ctrl and Z undoes a sort
  • I know where to go to sort by two columns at once

Want to keep track of what you have finished? Sign in — completely optional, and every lesson stays free either way.