Excel Basics · Interactive lesson 7 of 12
Sort & filter
A dataset is only useful if you can find what you need in it. Sorting reorders the rows; filtering just hides the ones that don't match — either way, nothing gets deleted or moved permanently.
Screens shown: Excel for Microsoft 365 for Windows. Practice works in any browser.
Written tutorialHow to Sort and Filter Data in ExcelSkill check
Try these first:
- Sort a table A–Z by name.
- Sort a table largest to smallest by a number column.
- Filter a table to show only one category.
- Filter a number column to only show values above a threshold.
All familiar? Skip ahead to M8 — Excel Tables.
Teach
What you're learning
- Sort A–Z
- Alphabetical order for text, ascending order for numbers.
- Sort largest to smallest
- Descending order — highest value first.
- Filter by category
- Show only rows matching one value in a text column, without touching the rest of the data.
- Number filters
- Show only rows where a number column is greater than, less than, or between certain values.
Where to find it in Excel
Data›Sort & Filter
| A | B | C | D | E | F | ||
|---|---|---|---|---|---|---|---|
| 1 | Rep▾ | Region▾ | Sales▾ | Category▾ | |||
| 2 | Ana | North | 8,400 | Office | |||
| 3 | Ben | South | 6,150 | Tech | |||
| 4 | Chris | West | 9,900 | Office | |||
| 5 | Dana | North | 7,250 | Tech | |||
| 6 | Eli | South | 5,800 | Office | |||
| 7 | |||||||
| 8 |
Swipe sideways to see the whole window.
- 1Data tab (Home › Sort & Filter has the same commands).
- 2Quick sort: A→Z or Z→A on the column you clicked.
- 3Sort opens a dialog for sorting by several columns.
- 4Filter (Ctrl+Shift+L) adds the arrows to the header row.
- 5Click an arrow to sort or to show only some values.
Rendered view of Excel for Microsoft 365 (Windows). Ribbon layout can differ slightly on Mac, Excel for the web or a narrow window.
Guided practice
Click a column header to sort, or use the controls below to filter by department or a minimum salary — exactly what the practice exercise asks for.
Real-world exercise
Answer four real questions
Using the roster above (or your own), answer each of these using only sort and filter — no formulas needed:
- Who are the employees, alphabetized by name?
- Who earns the most, and who earns the least?
- Show only the Engineering department.
- Show only employees earning above a threshold you choose.
Spot a mistake or have an idea for this lesson? Send feedback