Year 8 · Y8.4 Spreadsheets and Data Modelling · Lesson 1

Stretch tasks Formulas and functions

Task 1

Quiz Challenge

A quiz game against four computer players, then short and long written answers.

  1. Quiz Blitz12 questions against the clock
  2. Quick Fire4 short answers
  3. Big Think2 long answers

About 20 minutes

Task 2

This or That

Pixel the cat asks 8 questions. Each has two answers: pick the right one.

  • Two answers to every question
  • A fish treat for every right answer
  • Streaks win Pixel shades, then a party hat

About 4 minutes

Task 3

Memory Match

Flip the cards two at a time to match each function card to its meaning card.

  • 12 cards: each function has a meaning
  • One peek at every card
  • Combo points for pairs found in a row

6 pairs, about 4 minutes

The games need JavaScript. Every question is below, with the answers at the end.

Read the lesson: Formulas and functions

Formulas and functions: the questions

Quiz Challenge, round 1: Quiz Blitz

  1. You type SUM(B2:B5) into a cell without an equals sign. What happens?

    • It calculates as normal
    • The spreadsheet always adds the = for you
    • The cells B2 to B5 are cleared
    • It is shown as text, not calculated
  2. B2 holds 6 and C2 holds 4. What does this formula show?

    =(B2+C2)*2

  3. Why is =B2*0.2 better than =45*0.2?

    • It updates automatically if the value in B2 changes
    • It calculates faster
    • It uses less memory
    • It is shorter to type
  4. Which formula counts how many scores in B2:B20 are over 50?

    • =COUNT(B2:B20,">50")
    • =SUM(B2:B20>50)
    • =IF(B2:B20>50)
    • =COUNTIF(B2:B20,">50")
  5. COUNT(B2:B10) counts every cell in the range, including cells that hold text.

    • True
    • False
  6. A1 holds 4, A2 holds 10 and A3 holds 7. What does this show?

    =MAX(A1:A3)-MIN(A1:A3)

  7. B2 holds exactly 50. What does this show?

    =IF(B2>=50,"Pass","Fail")
    • An error
    • Pass
    • Fail
    • 50
  8. B2 holds 69. What does this show?

    =IF(B2>=70,"Merit",IF(B2>=50,"Pass","Fail"))
    • Fail
    • 69
    • Pass
    • Merit
  9. Which TWO formulas give the mean of B2, B3, B4 and B5?

    Tick 2.

    • =SUM(B2:B5)/5
    • =B2+B3+B4+B5/4
    • =MAX(B2:B5)/4
    • =AVERAGE(B2:B5)
    • =SUM(B2:B5)/4
  10. Put the steps in the order a spreadsheet works out =2+3*(4-1).

    Number these 1 to 3.

    • Add: 2 + 9 = 11
    • Brackets: 4 - 1 = 3
    • Multiply: 3 x 3 = 9
  11. What does this show?

    =ROUND(3.14159,2)

  12. Which cells does =SUM(B2:D2) add up?

    • Every cell in columns B to D
    • B2, C2 and D2
    • B2 and D2 only
    • B2, B3 and B4

Quiz Challenge, round 2: Quick Fire

  1. Explain why formulas should use cell references instead of typed-in numbers. [2 marks]

  2. Cell B2 holds 45. What does this formula show, and why? [2 marks]

    =IF(B2>=50,"Pass","Fail")

  3. Explain the difference between COUNT and COUNTIF. [2 marks]

  4. This formula was meant to find the mean of four cells. Explain the mistake, and how to fix it. [2 marks]

    =B2+B3+B4+B5/4

Quiz Challenge, round 3: Big Think

  1. A teacher has 30 students' marks in column B. Explain which functions she should use to find the mean mark, the top mark, the number who passed, and a grade for each student. [4 marks]

  2. Explain why a spreadsheet is better than a calculator for working out the costs of a school trip for 60 students. [6 marks]

This or That: tick the right answer

  1. Which of these will the spreadsheet calculate?

    • B2+C2
    • =B2+C2
  2. Which formula finds the largest value in B2:B20?

    • =MAX(B2:B20)
    • =SUM(B2:B20)
  3. A2 holds 7.456. What does this show?

    =ROUND(A2,1)
    • 7.4
    • 7.5
  4. Which function chooses between two results?

    • COUNTIF
    • IF
  5. C2 holds exactly 100. What does this show?

    =IF(C2>100,"Over budget","Within budget")
    • Over budget
    • Within budget
  6. How many different results can this formula give?

    =IF(B2>=70,"Merit",IF(B2>=50,"Pass","Fail"))
    • 2
    • 3
  7. B2, B3 and B4 hold 3, 6 and 9. What does this show?

    =AVERAGE(B2:B4)
    • 18
    • 6
  8. What does B2:B5 mean in a formula?

    • Cells B2, B3, B4 and B5
    • Cells B2 and B5 only

Memory Match: match each function to its meaning

FunctionMeaning
A SUM1 Counts the cells that meet a condition
B AVERAGE2 Finds the largest value
C MAX3 Turns 7.456 into 7.5 with 1 decimal place
D COUNT4 Adds up a range
E COUNTIF5 Counts the cells that hold numbers
F ROUND6 Finds the mean of a range
Answers

Round 1: Quiz Blitz

  1. It is shown as text, not calculated Without the equals sign the spreadsheet has no idea it is meant to be a formula.
  2. 20 The brackets are worked out first: 6 + 4 = 10, then 10 x 2 = 20.
  3. It updates automatically if the value in B2 changes Referring to the cell links the formula to the data, so the answer is always up to date.
  4. =COUNTIF(B2:B20,">50") COUNTIF counts only the cells that meet a condition. COUNT counts every cell holding a number.
  5. False COUNT only counts cells that contain numbers. Text and empty cells are ignored.
  6. 6 The largest is 10 and the smallest is 4, so 10 - 4 = 6. This gap is called the range.
  7. Pass >= means greater than or equal to, so 50 passes.
  8. Pass 69 is not 70 or more, so the second IF runs. 69 is at least 50, so it shows Pass.
  9. =AVERAGE(B2:B5); =SUM(B2:B5)/4 Without brackets, =B2+B3+B4+B5/4 divides only B5 by 4, because division happens before addition.
  10. Brackets: 4 - 1 = 3 → Multiply: 3 x 3 = 9 → Add: 2 + 9 = 11 Brackets first, then multiplication and division, then addition and subtraction. The answer is 11, not 15.
  11. 3.14 ROUND keeps the number of decimal places you ask for: 2 places gives 3.14.
  12. B2, C2 and D2 A range runs from its first cell to its last: here across row 2 from column B to column D.

Round 2: Quick Fire

    • The answer updates automatically when the data changes
    • A value only needs changing in one place, so there are fewer mistakes
    Model answer

    If a formula uses cell references, the answer updates automatically whenever the data changes. A value only has to be changed once, in one place, so there are fewer mistakes than retyping numbers in every formula.

    • Fail
    • 45 is less than 50, so the condition is false
    Model answer

    It shows Fail, because 45 is less than 50, so the condition B2>=50 is false and the value if false is used.

    • COUNT counts how many cells contain numbers
    • COUNTIF only counts the cells that meet a condition
    Model answer

    COUNT counts how many cells in a range contain numbers. COUNTIF only counts the cells that meet a condition, such as values over 50.

    • Only B5 is divided by 4, because division happens before addition
    • Put brackets round the addition, or use AVERAGE
    Model answer

    Division happens before addition, so only B5 is divided by 4. The fix is to put brackets round the addition, =(B2+B3+B4+B5)/4, or simply use =AVERAGE(B2:B5).

Round 3: Big Think

    • AVERAGE for the mean
    • MAX for the top mark
    • COUNTIF, with a condition such as >=50, for the number who passed
    • IF, or nested IFs, for each student's grade
    • Uses ranges such as B2:B31, so the results update when marks change
    Model answer

    She should use =AVERAGE(B2:B31) for the mean mark and =MAX(B2:B31) for the top mark. =COUNTIF(B2:B31,">=50") counts how many passed. For each student's grade she can use a nested IF function, such as =IF(B2>=70,"Merit",IF(B2>=50,"Pass","Fail")), filled down the column. Because every function uses a range of cells, all the results update if a mark is changed.

    • Formulas recalculate automatically when a value changes
    • What if questions can be answered by changing an input
    • The data is stored, so it can be saved, edited and shared
    • Functions such as SUM handle many values at once
    • There are fewer mistakes than retyping on a calculator
    • Charts can show the costs visually
    • You can check how every total was worked out
    Model answer

    A spreadsheet stores all the costs, so the work can be saved, edited later and shared with other staff, whereas a calculator forgets everything. Formulas recalculate automatically, so if the coach price changes the total and the cost per student update instantly. That means what if questions, such as what happens if only 50 students go, take seconds by changing one input. Functions such as SUM add up many values at once, there are fewer mistakes than retyping numbers into a calculator, and anyone can check how each total was worked out by looking at the formulas. The costs can also be shown on a chart.

This or That

  1. =B2+C2 Without the equals sign the spreadsheet treats what you type as text.
  2. =MAX(B2:B20) MAX finds the largest value. SUM adds them all up.
  3. 7.5 Rounding to 1 decimal place looks at the next digit. It is 5, so 7.4 rounds up to 7.5.
  4. IF IF tests a condition and shows one result when it is true and another when it is false. COUNTIF counts cells.
  5. Within budget 100 is not greater than 100, so the condition is false and the second result is shown.
  6. 3 The IF inside the IF gives Merit, Pass or Fail: three results.
  7. 6 AVERAGE adds them up to 18, then divides by how many there are, 3.
  8. Cells B2, B3, B4 and B5 A colon makes a range: every cell from the first to the last.

Memory Match

  • A 4 SUM: Adds up a range
  • B 6 AVERAGE: Finds the mean of a range
  • C 2 MAX: Finds the largest value
  • D 5 COUNT: Counts the cells that hold numbers
  • E 1 COUNTIF: Counts the cells that meet a condition
  • F 3 ROUND: Turns 7.456 into 7.5 with 1 decimal place