Formulyo

Excel 365 + Google Sheets · SORT

A ranking that sorts itself

Returns your table sorted by any column, and re-sorts when numbers change.

The formula

=SORT(A2:B5, 2, -1)

What each part means

Example

Before
ABCDE
1RepSalesRepSales
2Laura1,250
3João980
4Priya2,410
5Tom640
After
ABCDE
1RepSalesRepSales
2Laura1,250Priya2,410
3João980Laura1,250
4Priya2,410João980
5Tom640Tom640

Step by step

  1. Click cell D2.
  2. Type the formula: =SORT(A2:B5, 2, -1)
  3. Press Enter.
  4. The results fill the cells below by themselves (it’s a dynamic array formula). Don’t type anything in them.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning