Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Competitions › SOF ICSO › unit 11 of 16

Spreadsheets and formulas

SOF ICSO · Computer Science · about 6 minutes

A spreadsheet is a grid of cells named by column and row (B3). Formulas start with = and update automatically when the data changes.

Questions test SUM, AVERAGE, MAX, MIN, COUNT, IF and relative versus absolute references.

In this lesson

  1. Relative and absolute
  2. Useful functions
  3. Worked examples
  4. Where marks are lost
  5. Check yourself

1Relative and absolute

Copying a formula moves its references by the same amount, which is usually what you want. Put $ before the column or row to lock it, e.g. a tax rate in $F$1 used by every row.

2Useful functions

COUNT counts numbers; COUNTA counts non-empty cells; IF chooses between two results; VLOOKUP finds a value in a table.

Worked examples

  1. Example 1B1 = 5, B2 = 7, B3 = 3. What is =MAX(B1:B3)−MIN(B1:B3)?

    1. 7 − 3.

    Answer: 4

Where marks are lost

  • Forgetting the = sign.
  • Writing the row before the column.

Exam tips

  • =SUM(A1:A5) adds a range.
  • $A$1 is absolute: it does not change when copied.
  • =IF(B2>=40,"Pass","Fail").

Practice questions

  1. =AVERAGE(4, 8, 12) gives…

  2. A formula =A1+B1 in C1 is copied to C2. It becomes…

  3. Which cell is in the third column and fifth row?

More worked examples

Try each one first, then open the working.

  1. A1:A4 hold 21, 6, 33, 25. =AVERAGE(A1:A4)?

    Show the working

    Start: Apply the function to all four cells.

    AVERAGE over the range.

    Answer: 21.25

  2. Cell E1 contains =B3*C4+D2. What value does it show?

    fx =B3*C4+D2BCD221763232441195151215E1 = ?
    Show the working

    Start: Multiply before adding.

    =B3*C4+D2 gives 8.

    Answer: 8

  3. A1:A4 hold 33, 5, 19, 14. =MAX(A1:A4)?

    Show the working

    Start: Apply the function to all four cells.

    MAX over the range.

    Answer: 33

  4. Cell E1 contains =COUNTIF(B2:D5,">10"). What value does it show?

    fx =COUNTIF(B2:D5,">10")BCD21456328164151218510818E1 = ?
    Show the working

    Start: Count the cells with values above 10.

    =COUNTIF(B2:D5,">10") gives 6.

    Answer: 6

Practise more

New questions every time, at exam level

A1:A4 hold 28, 29, 15, 31. =AVERAGE(A1:A4)?

Learn it properly

Full chapters with animations, each with an “Explained simply” version.

  • SpreadsheetsClass 7

Sit a timed SOF ICSO mock test

Internet and networksNext: HTML and web pages