AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Spreadsheets at work

Week 18 · Unit 7: Be a data engineer · 3 lessons
3

Plan a spreadsheet

Computing 5: Unit 7, pp. 86–103
GoalPlan a small spreadsheet by choosing fields, data types, validation rules, formulas and a filter, and test it.
New words
field · one column of a table; it holds one kind of datarecord · one row of a table; all the facts about one thingfeature · a useful tool in a spreadsheet, such as a formula, validation or a filtertest plan · a list of checks that we make to see if the sheet works
Explanation

Before we build a spreadsheet, we plan it. First, decide what questions the sheet must answer. Then list the fields and choose a data type for each. Add a validation rule to the fields where mistakes are likely. Decide which formulas or functions are needed, and which filter will find the records that we want. Build the sheet and fill in some sample records. Last, test it with a test plan. Try wrong data, change a value and check the totals, and use the filter.

Worked examples
FieldTypeValidation rule
Readertextnone
Booktextnone
Date finisheddatea date
Pagesnumberwhole number from 1 to 1000
A school book club wants to log what pupils have read. Here is the plan for its fields.
ABCD
1ReaderBookDate finishedPages
2AnaSky Boat3 Mar 2026120
3BenRed Door9 Mar 2026240
4ChenTiny Seeds15 Mar 202690
5DinaNight Train21 Mar 2026310
6EdBlue Hill28 Mar 2026150
Here are five sample records. The club’s questions are answered by formulas and a filter. Total pages: =SUM(D2:D6) shows 910. Mean pages: =AVERAGE(D2:D6) shows 182. Filter Pages more than 200 shows rows 3 and 5.
TestWhat should happen
type ‘lots’ in Pagesthe sheet refuses it and shows an error message
change Chen’s pages from 90 to 100the total changes from 910 to 920
filter Pages more than 200only Ben and Dina are shown
clear the filterall five records are shown again
A test plan says what to try and what should happen.
Class activity

Design a sheet (small groups). Choose a topic that you know about, such as the class plants, a sports day, a rainfall diary or a toy library. Fill in a planning card: three questions the sheet must answer, the fields, a data type and a validation rule for each field, one formula or function, and one filter. Make five sample records on paper and work out the answers by hand. Swap cards with another group. Can they follow your plan and find the same answers? Write three tests for their sheet.

Practice
1
A pupil plans a rainfall diary with the fields Date, Rainfall (mm) and Weather note. Choose a data type for each field, and write a validation rule for Rainfall.
FieldExampleType
Date5 Apr 2026?
Rainfall (mm)12?
Weather notewindy?
2
Which rows are shown when the filter is ‘Rainfall greater than 5’?
RowDayRainfall (mm)
2Mon4
3Tue0
4Wed12
5Thu7
6Fri2
3
The mean of the rainfall in B2:B6 is shown by =AVERAGE(B2:B5). What is wrong?
B7fx=AVERAGE(B2:B5)
AB
1Daymm
2Mon4
3Tue0
4Wed12
5Thu7
6Fri2
7Mean5.75
4
Write two tests for a rainfall diary sheet.