Sorting and filtering
Sorting puts a list in order and filtering shows only the rows you need. Done right, whole rows move together, so names still sit next to the right numbers.
- LearnRead the guide and its worked examples.
- PractiseA drill on just this skill, easier tasks first. Stuck? “Show me how”.
- TestA timed mock in the style your employer named.
- ReviewYour report shows what cost marks and what to practise next.
The functions
- Sort A to Z / Z to A
Data > Sort - Puts text in alphabetical order, or numbers smallest to largest (or the reverse).
- Sort by more than one column
Data > Sort > Add level - Sorts by one column, then by another where the first has ties.
- Filter
Data > Filter - Adds a drop-down to each header so you can hide rows that don't match.
Worked examples
Example 1 Sort staff by surname
| A | B | C | |
|---|---|---|---|
| 1 | First name | Surname | Team |
| 2 | Leah | Row 2 becomes Omar Ahmed, Finance | Sales |
| 3 | Omar | Ahmed | Finance |
| 4 | Ruth | Kelly | Sales |
| 5 | Josh | Bennett | IT |
Step by step
Step 1- Click any cell in the table, or select A1:C5.
Step 2- Excel: Data > Sort. Tick My data has headers, choose Surname and A to Z. Google Sheets: Data > Sort range > Advanced range sorting options, tick Data has header row, choose Surname and A to Z.
Step 3- The order becomes Ahmed, Bennett, Kelly, Morris. Each first name and team moves with its surname.
Example 2 Sort by sales, largest first
| A | B | |
|---|---|---|
| 1 | Rep | Sales |
| 2 | Amy | Row 2 becomes Cara, 6100 |
| 3 | Ben | 4,700 |
| 4 | Cara | 6,100 |
| 5 | Dev | 5,400 |
Step by step
Step 1- Select A1:B5.
Step 2- Excel: Data > Sort, choose Sales and Largest to Smallest. Google Sheets: Data > Sort range > Advanced range sorting options, tick the header box, choose Sales and Z to A.
Step 3- The order becomes Cara, Dev, Amy, Ben.
Example 3 Show only the Sales team
| A | B | C | |
|---|---|---|---|
| 1 | First name | Surname | 2 rows shown: Leah Morris and Ruth Kelly |
| 2 | Leah | Morris | Sales |
| 3 | Omar | Ahmed | Finance |
| 4 | Ruth | Kelly | Sales |
| 5 | Josh | Bennett | IT |
Step by step
Step 1- Click a cell in the table.
Step 2- Excel: Data > Filter. Google Sheets: Data > Create a filter. A drop-down arrow appears on each header.
Step 3- Open the arrow on Team, untick everything except Sales, then click OK.
Step 4- The other rows are hidden, not deleted. Clear the filter to see them again.
Common mistakes
- Selecting only one column before sorting. The names move but the numbers don't, and the data is now wrong.
- Sorting the header row into the data. Tick "My data has headers" or "Data has header row".
- Thinking filtered rows are deleted. They are only hidden, and SUM still counts them (SUBTOTAL doesn't).
- Numbers stored as text sort in the wrong order, for example 100 before 20.
Excel and Google Sheets
In Excel: Sort and Filter are both on the Data tab. If you select one column, Excel asks whether to expand the selection: choose Expand.
In Google Sheets: Use Data > Sort range for sorting and Data > Create a filter for filters. Sorting a single column with Sort sheet sorts every row of the sheet by that column.
Shortcuts that help
- Ctrl+Shift+L (Windows) · Cmd+Shift+F (Mac) Turns the filter on or off in Excel.
Now practise it
Reading gets you started; doing it under a clock is what the test checks. Practise this skill on its own, easier tasks first, then take a mock.
Practise in the Excel style Practise in the Google Sheets style
Skill drills come with the 30-day and 90-day passes. No pass yet? Try the free five-task mini-mock, no account needed.