Spreadsheets – Selecting Subsets of Data (Cambridge IGCSE ICT 0417)
Learning Objectives
By the end of this lesson students will be able to:
Design a well‑structured data model and use named ranges and structured table references.
Apply a full range of basic and intermediate functions required by the syllabus (SUM, AVERAGE, MIN, MAX, COUNT, COUNTA, ROUND, IF, IFERROR, TEXT, DATE, AND, OR, VLOOKUP/XLOOKUP, nested IF).
Sort, search and filter data using:
AutoFilter (single‑criterion)
Advanced Filter (multiple‑criterion – AND / OR)
Formula‑based helper columns or the FILTER function.
Use Conditional Formatting to highlight records.
Create and customise a simple chart to present the filtered data.
Interpret the results (AO3 – analysis & evaluation).
1. Setting Up a Proper Data Model
Field headings – a single row of concise, non‑blank headings; avoid merged cells.
Data types – decide whether each column holds text, numbers, dates or currency and keep the format consistent.
Define a table – select the range and choose Insert → Table. The table automatically receives a name (e.g. SalesTbl) and structured references such as SalesTbl[Units Sold].
Named ranges – useful for formulas that refer to the whole dataset.
Formulas → Define Name → Name: SalesData → Refers to: =SalesTbl
Absolute vs. relative references – lock rows/columns with $ when copying formulas.
A2 – relative.
$A2 – column locked.
A$2 – row locked.
$A$2 – both locked.
2. Sample Data Set
Item ID
Category
Units Sold
Unit Price (£)
Total Sales (£)
Region
Sale Date
101
Electronics
15
120
1800
North
01/02/2024
102
Clothing
30
25
750
South
15/02/2024
103
Electronics
8
200
1600
East
20/02/2024
104
Furniture
5
350
1750
West
05/03/2024
105
Clothing
12
30
360
North
12/03/2024
106
Electronics
20
150
3000
South
18/03/2024
107
Furniture
3
400
1200
East
22/03/2024
108
Clothing
25
22
550
West
28/03/2024
3. Essential Functions (Syllabus 20.1)
Function
Purpose
Example (using structured references)
Result (sample data)
SUM
Add a range of numbers.
=SUM(SalesTbl[Units Sold])
108
AVERAGE
Mean of a range.
=AVERAGE(SalesTbl[Total Sales £])
1 542.5
MIN / MAX
Smallest / largest value.
=MIN(SalesTbl[Unit Price £])
22
COUNT / COUNTA
Count numbers (COUNT) or any non‑blank cells (COUNTA).
Home → Conditional Formatting → New Rule → “Use a formula to determine which cells to format”.
Enter a formula that reflects the desired condition, e.g.:
=$E2>2000
Choose a fill colour (light orange works well) and click OK.
All rows where Total Sales (£) exceeds £2 000 are now highlighted, giving an instant visual cue of high‑performing items.
7. Presenting Data – Simple Chart (Syllabus 20.3)
Apply the required filter (e.g., show only “Electronics”).
Select the visible columns Item ID and Total Sales (£) (or the whole filtered range).
Insert → Chart → Column Chart.
Customise the chart:
Chart Title: “Electronics – Total Sales by Item”.
Axes: Set the vertical axis minimum to 0 and maximum to a round number just above the highest sales value (e.g., 3 200).
Data Labels: Add to show exact figures.
If you also want to display Units Sold, add a secondary vertical axis and change that series to “Line”.
Use the Design tab to apply a clear colour scheme that matches any Conditional Formatting used.
8. Practical Activities (Exam‑style Tasks)
AutoFilter: Show only rows where Region is “South”. Record the number of visible rows.
Advanced Filter (AND): Display all Clothing items with Total Sales (£) less than £600.
Advanced Filter (OR): Show rows that are either Electronics with sales > £1 500 **or** Furniture with units sold ≥ 5.
Helper Column: Create a Match? column that returns TRUE when Units Sold > 10 andUnit Price (£) < 100. Filter on this column.
Conditional Formatting: Highlight rows where Total Sales (£) exceeds £2 000. Explain how this visual cue helps a manager.
Chart Creation: Using the filtered “Electronics” data, produce a column chart with data labels and a secondary line series for “Units Sold”.
Analysis (AO3): Write a short paragraph (3‑4 sentences) interpreting the filtered results – e.g., which region generates the most revenue, whether high‑price items compensate for lower units sold, etc.
9. Tips for Exam Success (Syllabus 20.3)
Exact header text: The criteria range must contain the header **exactly** as it appears in the data table – no extra spaces, no different capitalisation.
Absolute references: Use $ only where you intend the reference to stay fixed when copying a formula across rows or columns.
AutoFilter vs. Advanced Filter: AutoFilter handles one condition per column; Advanced Filter can handle multiple columns and both AND & OR logic.
OR logic in Advanced Filter: Place each alternative condition on a separate row within the criteria range.
Custom sort: Remember to create a numeric helper column if you need to sort by a non‑alphabetical order.
Clear filters before new tasks: Data → Clear to avoid hidden rows affecting subsequent calculations.
Structured references: When the exam allows, use table names (e.g., SalesTbl[Units Sold]) – they are shorter and automatically adjust when rows are added or removed.
Check for errors: Wrap look‑up formulas in IFERROR to avoid #N/A messages that can cost marks.
Suggested flowchart: Decision process for choosing a filtering method (AutoFilter → single criterion, Advanced Filter → multiple‑criterion AND/OR, Helper column or FILTER function → dynamic or complex logic).
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources,
past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.