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

RowA: EmployeeB: BranchC: Collection
2AmitMumbai45000
3PriyaPune62000
4RaviNashik38000
5NehaMumbai55000
=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.