0 of 62
Arrays·Lesson 55 of 62Pro

How to use SORT in Google Sheets

Sort a table

How SORT works

SORT returns a range in order. In Sheets, give the column number to sort by, then TRUE for ascending or FALSE for descending.

SORT(range, column, TRUE or FALSE)
Example on this data
=SORT(F2:F11,1,TRUE)→30 30 85 85 85 120 120 240 240 240

Prices from cheapest up.

What you’ll do

You’ll show the orders sorted by units, biggest first. Sorting with a formula leaves the original data untouched.

Try it

Type =SORT(F2:F11,1,TRUE) into K2 and press Enter. Watch what the sheet does.

The result will appear in K2.

K2
ABCDEFGHIJK
1OrderRepRegionProductUnitsPriceOrder dateShip date
21001AnaWestDesk32401/5/20261/9/2026
31002BoEastChair8851/12/20261/20/2026
41003CyWestLamp12301/19/20261/22/2026
51004DiNorthDesk22402/2/20262/13/2026
61005AnaWestChair5852/9/20262/12/2026
71006EveSouthShelf41202/16/20262/27/2026
81007BoEastLamp20303/2/20263/4/2026
91008CyWestShelf11203/9/20263/18/2026
101009DiNorthChair6853/16/20263/19/2026
111010EveSouthDesk72403/23/20264/1/2026
Ctrl+/ shows the shortcuts