Google Sheets SORT function

Returns a sorted copy of a range without touching the original data. It has the same name in Spanish Sheets.

Syntax

English Sheets

=SORT(range, sort_column, is_ascending, [sort_column2, is_ascending2], …)

Spanish Sheets (Mexico locale)

=SORT(intervalo, columna_ordenación, es_ascendente, [columna_ordenación2, es_ascendente2], …)

Spanish Sheets (Spain, Latin America)

=SORT(intervalo; columna_ordenación; es_ascendente; [columna_ordenación2; es_ascendente2]; …)

ArgumentWhat it is
rangeThe data to sort.
sort_columnThe column number within the range.
is_ascendingTRUE for smallest first, FALSE for largest first.
sort_column2, is_ascending2optionalMore tie-breakers.

Example

SORT(range, column, ascending) returns a sorted copy without touching the original data. The column is its number within the range (1 is the first), and ascending is TRUE for smallest first or FALSE for largest first.

=SORT(A2:D11,4,FALSE)

Common mistake

The column is its position within the range, not the sheet letter: in A2:D11 column D is 4.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice SORT

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

SORT

SORT(range, column, ascending) returns a sorted copy without touching the original data. The column is its number within the range (1 is the first), and ascending is TRUE for smallest first or FALSE for largest first.

Example=SORT(A2:D11,2,TRUE)SORT: same name in Spanish

In F2, show the table sorted from the highest amount to the lowest.

F2
ABCDEFGHIJ
1OrderCitySellerAmountOrders from largest to smallest amount
2P-101MonterreyCarmen1200
3P-102GuadalajaraJorge850
4P-103CDMXCarmen2300
5P-104MonterreyLucía640
6P-105CDMXJorge1750
7P-106GuadalajaraLucía980
8P-107MonterreyJorge1500
9P-108CDMXLucía410
10P-109GuadalajaraCarmen1320
11P-110MonterreyCarmen760
12

The dotted outline shows how far the result should spill.

Frequently asked questions

What is SORT called in Spanish?
It has the same name: SORT. Functions that started in Google Sheets keep their English name even in a Spanish spreadsheet. What changes is the separator: Spain and much of Latin America separate arguments with semicolons.
Why does SORT use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common SORT mistake?
The column is its position within the range, not the sheet letter: in A2:D11 column D is 4.