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]; …)
| Argument | What it is |
|---|---|
| range | The data to sort. |
| sort_column | The column number within the range. |
| is_ascending | TRUE for smallest first, FALSE for largest first. |
| sort_column2, is_ascending2optional | More 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.
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.
In F2, show the table sorted from the highest amount to the lowest.
| A | B | C | D | E | F | G | H | I | J | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | City | Seller | Amount | Orders from largest to smallest amount | |||||
| 2 | P-101 | Monterrey | Carmen | 1200 | ||||||
| 3 | P-102 | Guadalajara | Jorge | 850 | ||||||
| 4 | P-103 | CDMX | Carmen | 2300 | ||||||
| 5 | P-104 | Monterrey | Lucía | 640 | ||||||
| 6 | P-105 | CDMX | Jorge | 1750 | ||||||
| 7 | P-106 | Guadalajara | Lucía | 980 | ||||||
| 8 | P-107 | Monterrey | Jorge | 1500 | ||||||
| 9 | P-108 | CDMX | Lucía | 410 | ||||||
| 10 | P-109 | Guadalajara | Carmen | 1320 | ||||||
| 11 | P-110 | Monterrey | Carmen | 760 | ||||||
| 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.