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

Right data and quick finds

Week 17 · Unit 7: Be a data engineer · 3 lessons
1

Numbers, text and dates

Computing 5: Unit 7, pp. 86–103
GoalChoose number, text or date as the data type of a field and say why.
New words
data type · the kind of data that a cell holds, such as number, text or datenumber · a value that we can use in a calculation, such as 25 or 3.5text · any set of letters, digits and symbols, such as a name or a codedate · a day, a month and a year
Explanation

Every cell in a spreadsheet holds data of some type. Three common types are number, text and date. A number can be used in calculations, such as a price or a count. Text is a set of letters, digits and symbols, such as a name or a code like K-105. A date is a day, a month and a year. Some data looks like a number but should be text, such as a locker code that starts with 0. We never add or average codes. The right data type lets a spreadsheet sort, calculate and check the data correctly.

DataType
12.75number
Ravi Shahtext
K-105text
14 March 2026date
Worked examples
Types: text, text, date, number
Kit codeItemDate boughtNumber in store
K-101shirt12 Feb 202624
K-102shorts12 Feb 202618
K-103socks3 Mar 202630
A football club keeps a kit store sheet. Each field has the type that suits its data.
B5fx=SUM(B2:B4)
AB
1ItemNumber in store
2shirts24
3shorts18
4sockstwelve
5Total42
Wrong types cause quiet mistakes. Here ‘twelve’ is typed as text. The SUM function ignores text, so the total shows 42 and not 54.
TypedStored asShown
0042number42
0042text0042
A locker code 0042 is text. If it is stored as a number, the leading zeros are lost.
Class activity

Data type sort (small groups). Write 12 data items on cards: for example 17, Mia, 4 June, 2.5, B-77, a house number, a locker code such as 0016, 30 June 2026, Leo, 9.99, 0, Z-3. Sort them into three piles: number, text and date. Talk about the tricky ones. A good question to ask is: ‘Would we ever add or average this?’ If not, it is probably text. Do your piles agree with the other groups’?

Practice
1
Choose the best data type: (a) a pupil’s height 1.32 m, (b) shirt size M, (c) a birthday, (d) a team code T-07, (e) the number of goals.
2
A bike club keeps a sheet. Choose the data type for each field.
FieldExampleType
Rider nameAmira?
Date joined8 May 2026?
Km ridden42.5?
Member ID0521?
3
Tuesday’s number was typed as the word ‘nine’. What is wrong with the total, and what should it be?
B5fx=SUM(B2:B4)
AB
1DayBooks returned
2Mon15
3Tuenine
4Wed12
5Total27
4
Why should a locker code or a phone number be stored as text?