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

Picking the right cells

Week 5 · Unit 2: Be a data manager · 3 lessons
1

Cells and ranges

Computing 6: Unit 2, pp. 22–39
GoalWrite cell references and ranges and select the cells that a task needs.
New words
range · a block of cells, written with its first and last cell, such as B2:B6select · to mark the cells that you want to use for a taskrow · a line of cells going across, named with a numberchart · a picture of data, such as a bar chart
Explanation

Every cell has a name made of its column letter and its row number, such as C4. A range is a block of cells. We write a range with its first cell, a colon and its last cell. B2:B6 is one column of five cells. B3:D3 is one row of three cells. B2:D4 is a block of nine cells. Before we calculate or draw a chart we must select exactly the cells that the task needs. If we select too few, the answer is incomplete. If we select too many, the answer is wrong. Cells that are not next to each other can be selected one range at a time.

ABC
1ItemSoldPrice
2postcards402
3stickers651
4pens303
5badges204
6bags129
7magnets255
Worked examples
What we meanCells
all the item namesA2:A7
all the pricesC2:C7
the numbers sold of stickers, pens and badgesB3:B5
the row for the pensA4:C4
the number sold of magnetsB7
Here are some ranges from the zoo shop sheet above.
To draw a bar chart of the item names against the prices, the chart needs both the names and the prices. The two columns are not next to each other, because the numbers sold are in between. So we select A2:A7 first and then add C2:C7.
The labels in row 1 describe the columns. For a sum or an average we leave them out, because words cannot be added. We start at row 2.
Class activity

Shade the range (no computer): draw a grid of 5 columns and 6 rows on squared paper and label the columns A to E and the rows 1 to 6. An adult calls out a range, such as B2:B5 or A3:C3 or D1:E2, and you shade it with a coloured pencil. Then swap. The adult shades a block and you write its range. Try a range that covers one cell, one row and one block. If you have a computer or tablet, practise selecting these ranges in a spreadsheet by clicking and dragging.

Practice
1
Use the zoo shop sheet at the top of this lesson. Write the range for (a) all the numbers sold, (b) the prices of postcards, stickers and pens, (c) the row for the badges.
2
How many cells are in the range B2:D4? Write them in a table of rows and columns.
ABCD
1
2
3
4
5
3
Which cells must be selected to draw a bar chart of the plant names against their heights in week 3?
ABCD
1PlantWeek 1 (cm)Week 2 (cm)Week 3 (cm)
2bean3712
3pea259
4sunflower4915
4
Mia selects C1:C7 of the zoo shop sheet to find the average price, and the sheet shows an odd answer. What did she select that she should not have?