Beginner / Lesson 09

Sort & filter data

Change the order of a list or focus on a subset without breaking your records.

~20 minutesUpdated 2026-10-194 exercisesExcel desktop & web fundamentals

By the end, you’ll be able to:

  • Sort complete records together
  • Apply category and numeric filters
  • Explain what happens to hidden rows and totals

Sort changes order. Filter changes visibility.

Sorting rearranges records, for example from largest sale to smallest. Filtering shows records that meet a condition and hides the rest. A filtered-out record has not been deleted.

In this order list, sorting by Sales descending puts A103 first because its sales are 200. Filtering Region to East instead shows A101, A103 and A105. You can apply both actions: show East, then sort those orders by Sales.

Example worksheet with column letters and row numbers
ABCD
1OrderRegionCategorySales
2A101EastStationery120
3A102WestHome80
4A103EastHome200
5A104WestStationery150
6A105EastStationery60

Always keep each record together

  1. Select a cell inside the dataset. Check that the list is one continuous rectangle with a heading row.
  2. Open the Data tab and choose Sort.
  3. Confirm the data has headers and select the field to sort, such as Sales.
  4. Choose Largest to Smallest and inspect the first few complete records.

If Excel asks whether to expand the selection, include all columns belonging to the records. Sorting only the Sales cells can pair a customer or order ID with someone else’s value. Undo immediately if fields become misaligned.

Store numbers as numbers. A numeric value stored as text may sort differently from the surrounding numeric data. For a multi-level sort, define the primary field first, then the tie-breaker, such as Region followed by Sales.

Worked example: East orders worth at least 100

  1. Select the list and enable Data → Filter.
  2. Open Region’s filter menu and select East.
  3. Open Sales → Number Filters → Greater Than or Equal To and enter 100.
  4. Sort Sales from largest to smallest.

The result is A103 (200), then A101 (120). The two column filters act together: a record must match East and have sales of at least 100. Clearing one column’s filter leaves the other filter active.

Controls differ slightly between desktop and web versions. The browser practice below uses a compact version of these operations and shows the resulting records immediately.

Keep the hidden rows in mind

An ordinary formula such as =SUM(D2:D6) still includes rows hidden by a filter. Filtering the screen does not change that formula’s referenced range.

Excel tables provide a Total Row that can use SUBTOTAL to summarize visible records. We’ll introduce that next. For now, read labels carefully: “all sales” and “visible sales” are different measures.

Before you send a filtered file

Decide whether recipients need the whole dataset or only the visible subset. A filter does not remove confidential records. Clear filters when you want to inspect the full list again.

Now make it yours

Give it a try.

Work through each exercise, check your answer and use a hint whenever you need one. Formula tasks check changed inputs, including boundary cases.

0 of 4 exercises complete

Exercise 01 / Sort and filter

Rank East orders

Filter Region to East, then sort Sales from largest to smallest. Check the resulting order list.

5 of 5 records visible. Visible Sales: 610.

OrderRegionCategorySales
A101EastStationery120
A102WestHome80
A103EastHome200
A104WestStationery150
A105EastStationery60
Exercise 02 / Sort and filter

Combine two conditions

Show East orders with Sales of at least 100, sorted by Sales descending.

5 of 5 records visible. Visible Sales: 610.

OrderRegionCategorySales
A101EastStationery120
A102WestHome80
A103EastHome200
A104WestStationery150
A105EastStationery60
Exercise 03 / Knowledge check

Protect your records

You select only the Sales column before sorting. Excel offers to expand the selection. What is the safe choice for this dataset?

Choose one answer
Exercise 04 / Knowledge check

Understand a filtered total

After filtering Region to East, what does =SUM(D2:D6) normally include in Excel?

Choose one answer

Take this with you

Sort whole records. Combine filters deliberately, and check whether totals include all rows or visible rows.

Practice in Excel

Download the course workbook, follow the tasks, save your completed .xlsx and check its supported formula tasks here. Native Excel features use a separate review checklist.

Download practice workbook Check my workbook ↗
Technical references and lesson review

Original lesson content. Technical behavior checked against Microsoft documentation. Technical review: 2026-10-16. Page updated: 2026-10-19. How SheetSprout develops and checks lessons.

Find your next skill