Google Sheets SORT: Sort Data by Multiple Columns Ascending/Descending
SORT reorders the rows of an array or range based on values in one or more specified columns without modifying the original raw data table.
=SORT(range, sort_column, is_ascending, [sort_column2, is_ascending2, ...])Formula Parameters & Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
| range | Range | Required | The table to sort. |
| sort_column | Integer / Range | Required | The column index to sort by (1 = first col). |
| is_ascending | Boolean | Required | TRUE = Ascending (A-Z / Low to High), FALSE = Descending (Z-A / High to Low). |
Real-World Spreadsheet Examples
Explore verified operational formulas used in enterprise reporting and database workflows:
Example 1: Sort Deals by Revenue Highest First
=SORT(A2:E100, 4, FALSE)Example 2: Two-Tier Sorting (Department A-Z, then Salary High-to-Low)
=SORT(A2:D50, 2, TRUE, 4, FALSE)Example 3: Sort Filtered Results Dynamically
=SORT(FILTER(A2:D, D2:D > 5000), 4, FALSE)Common Errors & Solutions
Performance Pro Tips
- Pass FALSE as the 3rd argument for reverse chronological sorting on timestamps.
Frequently Asked Questions
Does SORT recalculate automatically when data changes?
Yes. Google Sheets recalculates all dependent formulas immediately whenever referenced input cells are modified.
Is this formula compatible with Microsoft Excel?
Modern functions like XLOOKUP, FILTER, UNIQUE, SORT, and LET are natively supported in Excel 365. However, QUERY is unique to Google Sheets and uses the Google Visualization API syntax.
Related Google Sheets Formulas
QUERY
The QUERY function is Google Sheets' most versatile formula, executing a SQL-like Google Visualization API Query Language string across spreadsheet tables to filter, aggregate, group, pivot, and sort data in a single formula.
Data TransformationARRAYFORMULA
ARRAYFORMULA enables single spreadsheet formulas to output an entire matrix or column of calculated results automatically. When new rows are entered, ARRAYFORMULA calculates them instantly without requiring manual formula dragging.
Data TransformationFILTER
FILTER dynamically outputs only the rows or columns from a source range that satisfy one or more logical conditions. As source data updates, filtered results re-calculate automatically.