Step-by-step guide

How to sort data
in Excel

Four sorting methods — from the basics to dynamic formula-based sorting that updates automatically.

EP
ExcelPro·Sep 11, 2026

Method 1 — Quick sort (one column)

Click any cell in the column you want to sort by → Data → Sort A to Z (ascending) or Sort Z to A (descending). The entire table re-sorts based on that column.

Method 2 — Custom sort (multiple columns)

Data → Sort. This opens a dialog where you can add multiple sort levels. Sort by Region first, then by Amount within each region:

Excel processes sort levels top to bottom — the first level is the primary sort.

Method 3 — SORT function (Excel 365)

Returns a sorted copy of a range as a formula output. The original data stays unchanged and the sorted output updates when data changes.

=SORT(A2:C50, 3, -1) -- Sort the range A2:C50 by the 3rd column, descending (-1) -- 1 = ascending, -1 = descending

Method 4 — SORTBY function (Excel 365)

Sort one range based on a separate column — even one not included in the output.

=SORTBY(A2:A20, C2:C20, -1) -- Return names in column A, sorted by scores in column C, highest first -- Column C doesn't appear in the output
💡 Use SORT for dashboards

In a dashboard or report, use SORT or SORTBY instead of the Sort button. Formula-based sorting updates automatically when new data is added — no need to re-sort manually.

Practice what you just learned

ExcelPro has 880+ hands-on exercises across 9 tracks — type real formulas, get instant feedback.

Start practising free →
Keep reading