GoalWrite a formula that starts with = and uses the symbols + - * and / to calculate an answer.
New words
formula · a calculation that we type into a cell; it starts with =operator · a symbol that tells the spreadsheet what to do: + - * /constant · a number that we type into a formula and that does not changeformula bar · the bar above the grid that shows what is in the chosen cell
Explanation
A spreadsheet can do calculations for us. We write each calculation as a formula. A formula always starts with an equals sign. It can use numbers, which are called constants, and operators. We type + to add, - to subtract, * to multiply and / to divide. When we press Enter, the cell shows the answer and the formula bar still shows the formula. For example, =12+8 shows 20. If the formula has no equals sign, the spreadsheet treats it as plain text.
B1fx=12+8
A
B
1
Tickets sold on two days
20
Worked examples
Calculation
Formula
Cell shows
add
=9+4
13
subtract
=9-4
5
multiply
=9*4
36
divide
=36/4
9
The four operators have their own symbols. Notice that we use * for times and / for divided by.
Formula
Working
Cell shows
=2+3*4
3 × 4 = 12, then 2 + 12
14
=(2+3)*4
2 + 3 = 5, then 5 × 4
20
A spreadsheet follows the order of operations. Multiplying and dividing are done before adding and subtracting. Brackets are done first.
B3fx=6*5
A
B
1
Packs
6
2
Stickers in a pack
5
3
Total stickers
30
Packs of stickers: the formula =6*5 shows 30. But the numbers are typed into the formula. If the number of packs changes, the cell still shows 30, so the answer is wrong.
Class activity
Formula or not? (pairs). Write twelve cards, such as =8*3, 8*3, =8x3, =40/5, 40 / 5 and =(2+6)*3. Sort them into ‘works as a formula’ and ‘does not work’. Check each card for the equals sign and the right symbol. Then write the answer of each working card. Which cards give the same answer in different ways?
Practice
1
Write a formula for each: (a) 15 take away 6, (b) 7 times 8, (c) 48 divided by 6, (d) 14 plus 9.
(a) =15-6 (b) =7*8 (c) =48/6 (d) =14+9
2
What does cell B2 show?
B2fx=20/4
A
B
1
Pencils
20
2
Pencils each for 4 children
?
B2 shows 5. The formula =20/4 divides 20 by 4.
3
Which of these will not work as a formula, and why? (a) =8*3, (b) 8*3, (c) =8x3.
(b) has no equals sign, so it is plain text. (c) uses x and not *. Only (a) works.
4
Work out the value of each cell.
Cell
Formula
Shows
B1
=(6+4)*3
?
B2
=6+4*3
?
B1 shows 30: the brackets are done first, 6 + 4 = 10, then 10 × 3. B2 shows 18: 4 × 3 = 12 is done first, then 6 + 12.