Excel SORT function⚡ Sort
The SORT function: Sort. Leaderboards that sort themselves. This page shows the syntax, a worked example with its result and how the formula reads.
What does SORT do?
Sort. Leaderboards that sort themselves
SORT syntax
=SORT(array, [sort_index], [sort_order], [by_col])
Arguments in square brackets [ ] are optional · argument names follow Microsoft's documentation
SORT example with the result
=********
👑 Ready-to-use example formula for VIP supporters only · Become VIP
Formula in cell C2 Yellow cells = result
| A | B | C | |
|---|---|---|---|
| 1 | Score | High to low | |
| 2 | 72 | 95 | |
| 3 | 95 | 88 | |
| 4 | 60 | 72 | |
| 5 | 88 | 60 |
How it reads: Sorts by column 1 · -1 = high to low (1 = low to high)
Frequently asked questions about SORT
What does SORT do?
Sort. Leaderboards that sort themselves
What does the SORT example return?
The example formula in cell C2 spills its results into several cells starting at C2, as shown in the example table.
Which Excel versions have SORT?
Excel for Microsoft 365 and Excel 2021 or later, according to Microsoft's function list. Older versions show #NAME?.
🕸️ More dynamic arrays formulas and related ones
Source: support.microsoft.com
Checked 17 November 2026 · by Black Sheep Barn · example results are calculated by the app's example engine, for learning