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.
Data
Type
12.75
number
Ravi Shah
text
K-105
text
14 March 2026
date
Worked examples
Types: text, text, date, number
Kit code
Item
Date bought
Number in store
K-101
shirt
12 Feb 2026
24
K-102
shorts
12 Feb 2026
18
K-103
socks
3 Mar 2026
30
A football club keeps a kit store sheet. Each field has the type that suits its data.
B5fx=SUM(B2:B4)
A
B
1
Item
Number in store
2
shirts
24
3
shorts
18
4
socks
twelve
5
Total
42
Wrong types cause quiet mistakes. Here ‘twelve’ is typed as text. The SUM function ignores text, so the total shows 42 and not 54.
Typed
Stored as
Shown
0042
number
42
0042
text
0042
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.
(a) number (b) text (c) date (d) text (e) number
2
A bike club keeps a sheet. Choose the data type for each field.
Field
Example
Type
Rider name
Amira
?
Date joined
8 May 2026
?
Km ridden
42.5
?
Member ID
0521
?
Rider name: text. Date joined: date. Km ridden: number. Member ID 0521: text, because we never calculate with it and it starts with 0.
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)
A
B
1
Day
Books returned
2
Mon
15
3
Tue
nine
4
Wed
12
5
Total
27
SUM ignores text, so the total 27 leaves out Tuesday. The correct total is 15 + 9 + 12 = 36. The word should be typed as the number 9.
4
Why should a locker code or a phone number be stored as text?
We do not calculate with them, and a number type could remove zeros at the start. As text they stay exactly as typed.