| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Name | Team | Points | Result | ||||||||||
| 2 | Ana | Red | 42 | Cy | ||||||||||
| 3 | Bo | Blue | 55 | Bo | ||||||||||
| 4 | Cy | Red | 61 | Ana | ||||||||||
| 5 | Di | Blue | 38 | Di | ||||||||||
| 6 | ||||||||||||||
| 7 | ||||||||||||||
| 8 | ||||||||||||||
| 9 | ||||||||||||||
| 10 | ||||||||||||||
| 11 | ||||||||||||||
| 12 | ||||||||||||||
| 13 | ||||||||||||||
| 14 | ||||||||||||||
| 15 | ||||||||||||||
| 16 | ||||||||||||||
| 17 | ||||||||||||||
| 18 | ||||||||||||||
| 19 | ||||||||||||||
| 20 | ||||||||||||||
| 21 | ||||||||||||||
| 22 | ||||||||||||||
| 23 | ||||||||||||||
| 24 | ||||||||||||||
| 25 | ||||||||||||||
| 26 | ||||||||||||||
| 27 | ||||||||||||||
| 28 | ||||||||||||||
| 29 | ||||||||||||||
| 30 |
More to try
Each of these works on the sheet. Press one to put it in E2.
- gives
Cy Red 61 Bo Blue 55 Ana Red 42 Di Blue 38 The whole table sorted the same way.
- gives
Bo Di Ana Cy Sorted by team, A to Z.
- gives Cy
TAKE keeps the first row: the top scorer's name.
Common mistakes
- The range to sort by must have exactly as many rows as the range being sorted.
- Confusing it with SORT. SORT orders by a column inside the range; SORTBY orders by a separate range.
- Not available in Excel 2019 or earlier.
Practise it
Sort by a column you do not show →Related functions