Course Content
ICDL Complete Course

Module 5 – Spreadsheets

Lesson 7 – Sorting, Filtering and Data Tools

Sorting and filtering help you analyse data by organising it and showing only the information you need. This lesson covers sorting, filtering, remove duplicates and basic data cleaning.

1. Sorting data

Sorting rearranges entire rows based on the values in one or more columns.

Types of sorting:

  • A to Z – alphabetical (A–Z) or smallest to largest.
  • Z to A – reverse alphabetical (Z–A) or largest to smallest.

Examples:

  • Sort names alphabetically.
  • Sort sales from highest to lowest.
  • Sort dates from oldest to newest.

Sorting example

Interactive check: What happens if you only select ONE cell in a column?

Excel automatically detects the full data table and sorts all rows together — not just that column.

2. How to sort

  • Select any cell in the column you want to sort.
  • Use Sort A to Z (ascending) or Sort Z to A (descending).
  • The sort will move whole rows, not individual cells.

Important: Make sure headings are recognised so they don’t get mixed with the data.

Sort options

Try it: Which sort order would you use for arranging salaries?

Z to A (largest to smallest).

3. Multi-level sorting

Multi-level sorting lets you sort by more than one column.

Example:

  • Sort by Department.
  • Then sort by Name within each department.

Useful for:

  • Organising large lists.
  • Grouping information neatly.

Multi-level sort

Quick check: Why do we use multi-level sort?

To create sub-groups (e.g., all Sales staff together, sorted alphabetically).

4. Filtering data (AutoFilter)

Filters hide rows that do not match selected criteria. Only matching rows remain visible.

To apply a filter:

  • Click any cell in your data range.
  • Choose Data → Filter.
  • Use the dropdown arrows on the headings.

Filter arrows example

Try it: If you filter by “Sales > 1000” what happens?

Only the rows meeting the condition stay visible — others are hidden, not deleted.

5. Types of filters

Text filters

  • Equals
  • Does not equal
  • Begins with
  • Contains

Number filters

  • Greater than
  • Less than
  • Between
  • Top 10 items

Date filters

  • This week
  • This month
  • Before / After a date

Number filter example

Quick question: Which filter would you use to find people who started this year?

The Date filter → “This year”.

6. Clearing and removing filters

  • Use Clear Filter on a specific column.
  • Turn off filtering entirely using Data → Filter.
Common mistake: Why might data “disappear”?

A filter is still applied — clear it to show all rows again.

7. Removing duplicates

The Remove Duplicates tool deletes repeated rows based on chosen columns.

Useful for:

  • Email/contact lists
  • Customer databases
  • Inventory lists

Steps:

  • Select your data range.
  • Go to Data → Remove Duplicates.
  • Select which columns should be checked.

Remove duplicates window

Try it: What columns should you select when removing duplicate customers?

At minimum: Name + Email (the most reliable unique fields).

8. Basic data cleaning

  • Remove extra spaces.
  • Ensure dates use the same format.
  • Avoid blank rows inside tables.
  • Correct numbers stored as text.

Data cleaning example

Check: What does ##### mean?

The column is too narrow — widen it.

9. Good practices for sorting and filtering

  • Use headings in the first row.
  • Do not merge cells in data tables.
  • Ensure sheets use the correct data types.
  • Use filters to analyse — not delete — data.
  • Clear all filters before printing/exporting.

10. Practical Activity

  • Create a table with: Name, Department, Salary, Start Date.
  • Sort by Salary (highest to lowest).
  • Sort by Department, then Name.
  • Filter to show salaries above 2000.
  • Filter Start Date to show staff who started this year.
  • Use Remove Duplicates on Name or Email.

Quick self-check quiz

Click each question to reveal the answer.

1. Does sorting move individual cells or whole rows?

Sorting moves whole rows so that data in each row stays together.

2. What is the difference between filtering and deleting rows?

Filtering hides rows temporarily. Deleting removes them permanently.

3. Why is it risky to have merged cells inside a data table?

Merged cells can break sorting and filtering because Excel cannot shift rows correctly.

4. When using Remove Duplicates, what should you do before running it?

Make a backup copy of your data and carefully choose which columns to check for duplicates.

5. After filtering, you only see 5 rows — does that mean your sheet only has 5 rows of data?

No. It means only 5 rows match the filter; the rest are hidden until the filter is cleared.