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

ABC
1ScoreHigh to low
27295
39588
46072
58860

How it reads: Sorts by column 1 · -1 = high to low (1 = low to high)

💡 Excel version Works in Excel for Microsoft 365 and Excel 2021 or later, per Microsoft's function list · older versions show #NAME?

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?.

Source: support.microsoft.com

Checked 17 November 2026 · by Black Sheep Barn · example results are calculated by the app's example engine, for learning

🤖
Posting...
Please wait a moment
Social VIP Classroom
Home
Thai Smiles Profile