On Work Experience or at an apprenticeship site, someone eventually hands you a 200-row stocktake, a payroll register, or a job log and asks a simple question: "Which items cost the most?" or "How much have we spent on Transport this week?" Sorting and filtering are how you get those answers in seconds, but they can also silently scramble a sheet if you use them carelessly. Today you'll learn to do both safely, including the one mistake that breaks everyone's first spreadsheet.
Imagine your Centra supervisor hands you a 120-line stocktake and asks for "the five most expensive items." What's the fastest way to find them? Now, what do you think would go wrong if you sorted only the Cost column by itself, without the Item names moving along with it?
Five terms you need before you sort or filter anything real.
| Concept | Why it matters | Example |
|---|---|---|
| Sort β reorders entire rows by the values in one column, ascending (AβZ, smallβbig) or descending (ZβA, bigβsmall) | Puts the answer ("biggest", "newest", "first alphabetically") at the top where you can actually see it | Sort your project budget by Cost descending; the β¬180 materials line jumps to row 2 and the β¬2 stationery line sinks to the bottom |
| Filter β temporarily hides rows that don't match a rule, without deleting them | Lets you answer "show me only X" without wrecking the full sheet; clear the filter and everything comes back | On a Centra stocktake, filter Category = "Drinks" to see just Coke, Water, and juice rows while the rest are tucked out of sight |
| Data range β the full block of related rows and columns you select before sorting or filtering | If you select only one column, sorting scrambles the data because the other columns don't move with it | For a 4-column budget with 15 rows of data, the correct range is A1:D16 β headers and all data, nothing else |
| Header row β the first row of labels ("Item", "Category", "Cost"...) | Sort dialogs need to be told you have one, or they'll mix "Item" into the middle of your item names | β |
| Summary/total row β a row of SUM, AVERAGE, or other formulas at the bottom of your data | If you include it in a sort or filter range, it gets shuffled into the data or hidden by the filter, and your totals stop making sense | β |
You'll build a small Centra stocktake sheet, watch a careless sort scramble the data, undo it, then sort and filter the right way. By the end you'll know exactly where sorting goes wrong and how to stop it.
| Issue | Solution |
|---|---|
| My data got scrambled after sorting β rows no longer match | Press {{kbd:Ctrl+Z}} (Windows/Chromebook) or {{kbd:Cmd+Z}} (Mac) to undo immediately. You almost certainly selected only one column. Reselect the full block (all columns, all data rows, header included, totals excluded) and sort again. |
| My Total row ended up in the middle of the data | You included the Total row in the sort range. Undo, then reselect the range so it stops one row above the Total, and sort again. |
| My Total row disappeared when I applied a filter | The filter auto-extended to include row 7. Turn off the filter, select {{range:A1:E6}} explicitly (headers plus data, Total row excluded), then turn the filter on again. The Total row stays visible because it sits outside the filtered range. |
| My header row ("Item", "Category"...) got sorted into the data | The sort dialog didn't know you had headers. Undo, open the sort dialog again, and tick "My data has headers" (Excel) or "Data has header row" (Sheets) before clicking Sort. |
| The filter dropdown shows "Drinks" and "drinks" as two separate options | Spreadsheets treat typo variations as different values. Fix the typos in your data first β use Find & Replace if there are many β then the filter will show one clean option. |
| I can't find the Sort or Filter option in my menus | In Excel Online, look under {{menu:Home -> Sort & Filter}}. In Google Sheets, look under the {{menu:Data}} menu. If those look different on your screen, check you're signed into the school account and not a personal one with a different interface. |