Harmony Virtual Lab

Digital Technologies · Spreadsheets: formulas and functions

Spreadsheet formulas and functions

Use cell references, SUM, AVERAGE, MAX and IF to complete a shop sales record and a class result sheet.

Start this experimentAll Digital Technologies experiments

Aim

To enter formulas and functions in a spreadsheet so that it calculates totals, averages, maximum values and grades automatically.

Apparatus

  • Computer or phone with a spreadsheet program (or this simulator)
  • Data to process

Theory

A spreadsheet is a grid of cells, each named by its column letter and row number (B3). A formula starts with = and can use cell references, so the answer updates when the data changes.

  • Operators: + − * / and ^ (power).
  • =SUM(D2:D6) adds a range; AVERAGE, MAX, MIN and COUNT work the same way.
  • =IF(test, value if true, value if false) chooses between two results. Text goes in double quotes.

These rules are the same in Microsoft Excel, Google Sheets and LibreOffice Calc.

Procedure

  1. Choose a task and read the instructions.
  2. Tap a yellow cell and type a formula that starts with =.
  3. Press Enter or move to another cell: the cell shows the result.
  4. Check your sheet. Correct cells turn green; cells to fix turn red.
  5. Change some of the data and watch your formulas update.

What you do in the virtual lab

Set up the apparatus on screen, take readings and record them in a table (Task; Correct cells; Cells to complete; Cells to fix). Simulated instruments give slightly different readings each time, as real ones do. Finish with a short quiz; every answer is explained.

Teachers can set the experiment for a class, see each student’s results and use it as a WAEC- or NECO-style practical paper in exam practice.

Practice questions

  1. Which formula adds the values in cells B2 to B6?

    1. =SUM(B2:B6)
    2. =ADD(B2:B6)
    3. SUM B2 to B6
    4. =B2:B6
    Show the answer

    A. =SUM(B2:B6) Functions start with =, and a range is written first cell:last cell.

  2. Cell C4 contains =A4*B4. A4 is 5 and B4 is 1200. What does C4 show?

    1. A4*B4
    2. 1205
    3. 6000
    4. 5 × 1200
    Show the answer

    C. 6000 The cell shows the result of the formula: 5 × 1200 = 6000.

  3. =IF(D2>=50,"Pass","Fail") shows “Fail” when D2 is

    1. 50
    2. 75
    3. 100
    4. 49
    Show the answer

    D. 49 Only values of 50 or more pass the test D2>=50.

Do the experiment and the full quiz

Related Digital Technologies experiments

  • Logic gates and truth tablesDigital Technologies · SSS 1 – SSS 2Switch the inputs of AND, OR, NOT, NAND, NOR and XOR gates and build each truth table.
  • Binary, octal and hexadecimalDigital Technologies · JSS 2 – SSS 1Flip eight bit-switches to see how computers store numbers, then hit target values in binary.
  • Programming a robot: sequence and loopsDigital Technologies · JSS 1 – SSS 1Write a program of moves and turns to steer a robot to its goal, then shorten it with a loop.
  • How strong is a password?Digital Technologies · JSS 1 – SSS 2Test made-up passwords, measure their strength in bits and see how long an attacker would need to guess them.
  • Coding in PythonDigital Technologies · SSS 1 – SSS 3Write real Python – print, variables, loops and if statements – and have each program checked automatically.
  • Train a simple AIDigital Technologies · JSS 3 – SSS 3Teach a computer to tell ripe plantain from unripe by giving it labelled examples, then test how accurate it is.