Sample Data
This table shows a list of people with their Age and Score.
| Cell | Value |
|---|---|
| A1 | Name |
| B1 | Age |
| C1 | Score |
| A2 | Alice |
| B2 | 30 |
| C2 | 85 |
| A3 | Bob |
| B3 | 25 |
| C3 | 90 |
| A4 | Charlie |
| B4 | 30 |
| C4 | 75 |
| A5 | Diana |
| B5 | 25 |
| C5 | 95 |
This table shows a list of people with their Age and Score.
| Cell | Value |
|---|---|
| A1 | Name |
| B1 | Age |
| C1 | Score |
| A2 | Alice |
| B2 | 30 |
| C2 | 85 |
| A3 | Bob |
| B3 | 25 |
| C3 | 90 |
| A4 | Charlie |
| B4 | 30 |
| C4 | 75 |
| A5 | Diana |
| B5 | 25 |
| C5 | 95 |
=SORT(A2:C5, 2, TRUE, 3, FALSE)A B C 1 | Name | Age | Score 2 | Alice | 30 | 85 3 | Bob | 25 | 90 4 | Charlie| 30 | 75 5 | Diana | 25 | 95 Formula references range A2:C5 for sorting by columns B and C.
A B C 1 | Name | Age | Score 2 | Diana | 25 | 95 3 | Bob | 25 | 90 4 | Alice | 30 | 85 5 | Charlie| 30 | 75 The sorted result shows Diana first because she has the lowest Age (25) and highest Score (95) among age 25.