SORT Function in Excel: Syntax, Examples & Practice
Learn the Excel SORT function: Sorts a range or array dynamically. Try focused practice and download a free workbook.
Syntax
=SORT(array, [sort_index], [sort_order], [by_col])
Available in Microsoft 365, Excel 2021 and Excel 2024 on desktop. Older perpetual releases may not support this function.
Worked example
| Row | A: Employee | B: Branch | C: Collection |
|---|---|---|---|
| 2 | Amit | Mumbai | 45000 |
| 3 | Priya | Pune | 62000 |
| 4 | Ravi | Nashik | 38000 |
| 5 | Neha | Mumbai | 55000 |
=SORT(A2:C5,3,-1)
Expected result: 62000 row first
SORT can reorder the array without changing the source rows.
Professional use
Dynamic top-performance reports.
Practice SORT · Download practice .xlsx
Apply your skills
Explore MIS and finance projects
Questions and answers
How can I practise SORT?
Use the focused ten-question SORT lab, then download its workbook for ten additional function-specific tasks and an answer key. Core learning works without an account.
Which Excel version supports SORT?
Available in Microsoft 365, Excel 2021 and Excel 2024 on desktop. Older perpetual releases may not support this function.
Does the browser simulator replace Microsoft Excel?
No. It supports a selected set of formula behavior for practice. Native workbook recalculation, full function compatibility, PivotTables and external data features must be checked in your own Excel installation.
Interactive practice runs in your browser.