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

Choose the right data

Week 27 · Unit 11: Be a data designer · 3 lessons
2

Select the right range

Computing 3: Unit 11, pp. 161–177
GoalName the range of cells that holds the data we need.
New words
range · a group of selected cellsfirst cell · the cell where the range startslast cell · the cell where the range ends
Explanation

A range is a group of cells that we select together. We write a range with its first cell, a colon and its last cell. B2:B5 means B2, B3, B4 and B5. To choose the range, find the heading that matches the problem. Then look at the cells under it. The first data cell is usually in row 2, because row 1 holds the headings. Count down to the last row of data. A range can also go along a row, such as A4:D4. The heading itself is not part of the data, so we do not select it.

ABCD
1SportPlayersFirst matchFee
2Football2215/09/2027$10.00
3Swimming1418/09/2027$12.50
4Chess925/09/2027$5.00
5Tennis1228/09/2027$8.00
Worked examples
ABCD
1SportPlayersFirst matchFee
2Football2215/09/2027$10.00
3Swimming1418/09/2027$12.50
4Chess925/09/2027$5.00
5Tennis1228/09/2027$8.00
Problem: list the names of the sports. The heading is “Sport”, in column A. The data starts at A2 and ends at A5, so the range is A2:A5.
CellPlayers
B222
B314
B49
B512
Problem: find the total number of players. The heading is “Players”, in column B, and the format is Number. The range is B2:B5, and the total is 22 + 14 + 9 + 12 = 57 players.
ABCD
1SportPlayersFirst matchFee
2Football2215/09/2027$10.00
3Swimming1418/09/2027$12.50
4Chess925/09/2027$5.00
5Tennis1228/09/2027$8.00
Problem: show everything about chess. Chess is in row 4. The row starts at A4 and ends at D4, so the range is A4:D4.
Class activity

Range game (in pairs): draw the sports table on paper. One of you calls a problem, such as “the fees” or “everything about swimming”. The other writes the range, for example D2:D5 or A3:D3, and shades it with a coloured pencil. Swap after each problem. Use each of these at least once: a whole column of data, a whole row of data, and a total of numbers.

Practice
1
Write the range that holds the names of the colours.
ABC
1ColourTubesCost
2red6$9.00
3blue4$6.00
4yellow5$7.50
5green3$4.50
6white8$12.00
2
Use the same table. What is the range for the number of tubes, and what is the total number of tubes?
3
What is the total cost of all the paints in the same table?
4
Kenji wants to list the names of the colours. He selects A1:A6. What is wrong?
ABC
1ColourTubesCost
2red6$9.00
3blue4$6.00
4yellow5$7.50
5green3$4.50
6white8$12.00