KS3National Curriculum Y8.4 26 min read 10 question quiz 16 exam marks

Spreadsheets and Data Modelling

Formulas, functions, absolute and relative references, conditional logic and charts. Spreadsheets are the most widely used programming tool on Earth.

Formulas and functions

Every formula starts with an equals sign. Without it, the spreadsheet treats what you type as text.

=B2+C2
=B2*0.2
=(B2+C2+D2)/3

Cell references

Referring to a cell rather than typing a number means the formula updates automatically when the data changes. This is the single most important idea in spreadsheets.

Bad: =45*0.2 Good: =B2*0.2

Common functions

FunctionWhat it doesExample
SUMAdds a range=SUM(B2:B20)
AVERAGEMean of a range=AVERAGE(B2:B20)
MAXLargest value=MAX(B2:B20)
MINSmallest value=MIN(B2:B20)
COUNTHow many cells contain numbers=COUNT(B2:B20)
COUNTIFHow many meet a condition=COUNTIF(B2:B20,">50")
ROUNDRounds to a number of decimals=ROUND(B2,2)
IFChooses between two results=IF(B2>=50,"Pass","Fail")

The IF function

=IF(condition, value if true, value if false)

=IF(B2>=50,"Pass","Fail")
=IF(C2>100,"Over budget","Within budget")

IFs can be nested for more than two outcomes:

=IF(B2>=70,"Merit",IF(B2>=50,"Pass","Fail"))
A spreadsheet with a SUM formula, and how to read the formulaA small spreadsheet called budget.xlsx. Columns are lettered A, B and C and rows are numbered. Column A holds items, Pens, Books, Bag and Lunch, and column B holds their costs, 12, 45, 38 and 45. The selected cell is B6, shown in the cell box, and its formula appears in the formula bar: equals SUM of B2 to B5, which gives 140. The range B2 to B5, outlined with dashes, is what is added up. On the right the formula is read in three parts: the equals sign starts every formula, SUM is the function that adds up, and B2:B5 is the range, from B2 down to B5. A formula should use cell references, such as equals B3 times 0.2, instead of typing the number, such as equals 45 times 0.2, so that it updates when the data changes.budget.xlsxB6fx=SUM(B2:B5)ABC123456ItemCostPens12Books45Bag38Lunch45Total140123Reading a formula=starts every formulaSUMthe function: add upB2:B5the range: B2 down to B5Use cell references, not numbers:=45*0.2=B3*0.2Change a number and every formula that uses it updates by itself.
  1. The formula bar shows what is in the selected cell. Every formula starts with an equals sign.
  2. A cell is named by its column letter and row number, so this is cell B6.
  3. The range B2:B5 is a block of cells, from B2 down to B5. SUM adds them up.
Refer to cells, not to numbers, so the answer changes when the data does. That is the whole point of a spreadsheet.

Absolute and relative references

This is the idea that separates people who fight with spreadsheets from people who use them properly.

Relative references

B2 is relative. Copy the formula down one row and it becomes B3. Copy it right one column and it becomes C2.

This is usually what you want. A column of totals copied down should refer to each row in turn.

Absolute references

$B$2 is absolute. The dollar signs lock it, so copying the formula never changes it.

Use this when every row must refer to the same cell, such as a VAT rate stored once at the top of the sheet.

=B2*$E$1        copied down becomes =B3*$E$1, =B4*$E$1
=B2*E1          copied down becomes =B3*E2, =B4*E3   which is wrong

Mixed references

  • $B2 locks the column but not the row
  • B$2 locks the row but not the column
How to spot when you need an absolute reference

If a formula works in the first row and produces nonsense when copied down, you almost certainly needed dollar signs on a reference that should not have moved.

Relative and absolute cell referencesA sheet with items in column A, prices in column B and a VAT multiplier of 1.2 stored once in cell E1. The formula in C2 is B2 multiplied by E1. Written with no dollar signs and copied down, both references move, so row 3 becomes B3 times E2 and row 4 becomes B4 times E3. E2 and E3 are empty, so every answer below the first row is zero. Written as B2 times dollar E dollar 1 and copied down, the price reference still moves to B3 and B4, which is what you want, while the locked rate reference stays on E1, giving 2.40, 6.00 and 10.80. A reference with no dollar signs is relative and moves. Dollar B dollar 2 locks both parts. Dollar B 2 locks the column only. B dollar 2 locks the row only.What the dollar signs actually doABCDE1ItemPriceWith VATVAT x1.22Pen2.00=B2*$E$13Pad5.004Bag9.00B2 is the priceon this row.E1 is the rate,stored once.ABCDE1ItemPriceWith VATVAT x1.22Pen2.00=B2*E13Pad5.00=B3*E24Bag9.00=B4*E3Both halves moved.E2 and E3 areempty cells, soboth answerscome out as 0.ABCDE1ItemPriceWith VATVAT x1.22Pen2.00=B2*$E$13Pad5.00=B3*$E$14Bag9.00=B4*$E$1B moved: correct.$E$1 did not:also correct.2.40 6.00 10.80B2Nothing locked. Copy it anywhere and both parts move.$B$2Both locked. It always means B2, wherever you copy it.$B2Column locked, row free. Copy right and it stays in B.B$2Row locked, column free. Copy down and it stays in row 2.
If a formula works in the first row and gives nonsense when copied down, you needed a dollar sign on something that moved.

Modelling, charts and good design

What a model is

A spreadsheet model represents a real situation so you can ask what if questions.

Examples: a household budget, the cost of running a school trip, projected profits for a business, the population of an island over ten years.

The point of a model is that you change one input and every dependent figure updates instantly. Working out the effect of a 10 per cent price rise takes one keystroke rather than an hour with a calculator.

Choosing a chart

ChartBest for
Bar or columnComparing separate categories
LineShowing change over time
PieShowing parts of one whole, with only a few categories
ScatterShowing whether two things are related

Every chart needs a title, axis labels and, where there is more than one series, a legend. A chart without labels communicates nothing.

Do not use a pie chart for ten categories

The slices become impossible to compare. Pie charts work with three or four segments at most.

Designing a good spreadsheet

  • Put inputs together at the top or on a separate sheet, clearly labelled
  • Never bury a number inside a formula. Put it in a cell and reference it.
  • Use headings, borders and shading so the structure is visible
  • Format currency, percentages and dates properly
  • Use conditional formatting to highlight important values automatically
  • Freeze the header row so it stays visible while scrolling
  • Use data validation to restrict what can be typed into a cell
Four chart types and what each is best for: bar, line, pie and scatterFour chart types, each drawn with example data. A bar chart compares separate categories, here four days of the week. A line chart shows change over time, here a value rising across five months. A pie chart shows parts of one whole, with only a few slices, here three slices of 50, 30 and 20 percent. A scatter graph shows whether two things are related, here dots that rise from left to right around a dashed trend line. A note at the bottom says every chart needs a title, labelled axes and, when it has more than one series, a legend.Bar chart1MonTueWedThubest for: compare categoriesLine chart2JanMarMayJulSepbest for: show change over timePie chart3best for: parts of one wholeScatter graph4best for: do two things relate?Every chart needs a title, labelled axes and, with more than one series, a legend.
  1. Bar chart: compare separate categories.
  2. Line chart: show how something changes over time.
  3. Pie chart: show parts of one whole, with only a few categories.
  4. Scatter graph: show whether two things are related.
Pick the chart for the question you are asking. A pie chart with ten slices cannot be read.

Key terms you must be able to define

Formula
A calculation in a cell, always beginning with an equals sign.
Function
A built in operation such as SUM or AVERAGE that performs a common calculation.
Cell reference
The address of a cell, such as B2, used in a formula.
Relative reference
A reference that changes when the formula is copied to another cell.
Absolute reference
A reference locked with dollar signs so it does not change when copied.
Range
A block of cells, written as the top left and bottom right separated by a colon.
Model
A spreadsheet that represents a real situation so that what if questions can be asked.
Conditional formatting
Automatically changing the appearance of a cell based on its value.
Data validation
Restricting what can be entered into a cell to prevent invalid data.

Flashcards

Say the definition out loud before you flip the card. Retrieving it from memory is what builds recall, reading it again is not.

DefineFormula
AnswerA calculation in a cell, always beginning with an equals sign.
DefineFunction
AnswerA built in operation such as SUM or AVERAGE that performs a common calculation.
DefineCell reference
AnswerThe address of a cell, such as B2, used in a formula.
DefineRelative reference
AnswerA reference that changes when the formula is copied to another cell.
DefineAbsolute reference
AnswerA reference locked with dollar signs so it does not change when copied.
DefineRange
AnswerA block of cells, written as the top left and bottom right separated by a colon.
DefineModel
AnswerA spreadsheet that represents a real situation so that what if questions can be asked.
DefineConditional formatting
AnswerAutomatically changing the appearance of a cell based on its value.

Reach the top grade on this topic

The top level here comes from explaining why a spreadsheet is the right tool, not just using one.

Explain the power of cell references. A model built on cell references updates every dependent figure the instant an input changes, which is the entire reason spreadsheets exist. Typing numbers into formulas throws that away.

Justify your chart choice. "A line chart because the data shows change over time, and the trend is what matters more than the individual values."

Explain absolute references properly. Say what would go wrong without them: the reference would shift down with each row and point at an empty or wrong cell.

  • Write an IF formula with a sensible condition and two outcomes
  • Explain when to use an absolute reference and what goes wrong without one
  • Choose and justify a chart type for a given set of data
  • Design a model with clearly separated inputs and calculations

Mistakes that cost marks here

Avoid these
  • Forgetting the equals sign, so the spreadsheet stores the formula as text.
  • Typing values directly into formulas instead of referencing a cell.
  • Copying a formula down without an absolute reference, so a fixed value slides down the column.
  • Using a pie chart for data that is not parts of one whole.
  • Producing a chart with no title and no axis labels.
Fun fact

A spreadsheet is a program. Every formula is a small piece of code, and a spreadsheet with logic in it is a working computer model. The first one, VisiCalc, sold so many Apple II computers that it is credited with creating the personal computer market.

Knowledge check

0 of 10 answered
1What must every formula start with?
2What does =SUM(B2:B10) do?
3What is the difference between B2 and $B$2 when a formula is copied?
4Which formula would display Pass for 50 or more, and Fail otherwise?
5Which chart type is best for showing how sales changed each month over a year?
6A VAT rate is stored in cell E1 and a formula in C2 is =B2*E1. What happens when it is copied down?
7What does =COUNTIF(B2:B20,">50") do?
8Why should values be put in cells rather than typed into formulas?
9What is conditional formatting?
10A spreadsheet is used to work out the effect of a price rise on profit. What is this an example of?
Score 0 / 10

Exam-style questions

Five written questions in the style of the real paper. Write a full answer, then let the marker check it against the mark scheme.

16 marks
1State what a formula in a spreadsheet must begin with, and give one example of a formula that adds cells B2 and C2.2 marks
State

Mark scheme0 / 2
  • LA formula must begin with an equals sign
  • LCorrect example such as =B2+C2
Model answer

Every formula must begin with an equals sign, which is what tells the spreadsheet that the contents of the cell should be calculated rather than treated as ordinary text. An example that adds cells B2 and C2 together is =B2+C2.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
2Explain the difference between a relative and an absolute cell reference, and give an example of when an absolute reference is needed.4 marks
Explain

Mark scheme0 / 4
  • LA relative reference changes when the formula is copied
  • LAn absolute reference stays the same because it is locked with dollar signs
  • LGives an example such as a VAT rate or a fixed price stored in one cell
  • LExplains that without the dollar signs the reference would move and give wrong results
Model answer

A relative reference such as B2 adjusts automatically when a formula is copied, so copying a formula down one row changes B2 to B3. This is usually what you want, because each row of a calculation should refer to its own data. An absolute reference such as $E$1 is locked by the dollar signs, so it stays pointing at exactly the same cell no matter where the formula is copied. An absolute reference is needed when every row must refer to the same single value, for example a VAT rate stored once in cell E1. If the formula were written as =B2*E1 and copied down, the reference would slide to E2, then E3, which are empty cells, so every result after the first row would be wrong.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
3Write a formula that displays Merit if the mark in B2 is 70 or above, Pass if it is 50 or above, and Fail otherwise.3 marks
Write

Mark scheme0 / 3
  • LUses a nested IF function
  • LTests the highest condition first
  • LCorrect outcomes for all three cases
Model answer

=IF(B2>=70,"Merit",IF(B2>=50,"Pass","Fail")) The outer IF tests the most restrictive condition first, so a mark of 85 is correctly given Merit. Only if that condition is false does the spreadsheet evaluate the inner IF, which then checks for 50 or above and gives Pass, with Fail as the final alternative. Testing the conditions in the wrong order would mean a mark of 85 was caught by the 50 test and wrongly labelled Pass.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
4A student has created a spreadsheet to model the cost of a school trip. Explain two features of a well designed spreadsheet model.4 marks
Explain

Mark scheme0 / 4
  • LInput values are kept in clearly labelled cells rather than inside formulas
  • LSo a value can be changed once and every calculation updates
  • LCell references are used in formulas rather than typed numbers
  • LFormatting such as currency, headings and conditional formatting makes it clear and reduces errors
Model answer

The first feature is that all the input values, such as the coach hire cost, the entry price per student and the number of students, are kept in their own clearly labelled cells, usually grouped together at the top or on a separate sheet. This means the model can answer what if questions instantly: changing the number of students in one cell updates every dependent calculation automatically, which is the entire point of building a model rather than working the figures out by hand. The second feature is that every formula uses cell references rather than typed numbers, so no value is buried where it cannot be seen or updated. Alongside this, sensible formatting matters: currency values formatted as currency, clear headings and borders so the structure is obvious, and conditional formatting to highlight if the total goes over budget, all of which make the model easier to read and much less likely to be misused.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
5A spreadsheet records the temperature recorded each day for a month. Recommend a suitable chart type and justify your choice.3 marks
Recommend

Mark scheme0 / 3
  • LRecommends a line chart
  • LThe data shows change over time
  • LA line chart makes the trend and any patterns easy to see
Model answer

A line chart is the most suitable choice. The data consists of one measurement taken at regular intervals across a month, so it is a time series, and a line chart is specifically designed to show how a value changes over time. Joining the points with a line makes any trend immediately visible, so it is easy to see whether temperatures rose through the month, whether there was a cold spell, and how much the values varied day to day. A pie chart would be completely unsuitable because the daily temperatures are not parts of a single whole, and a bar chart, while readable, would make the overall trend harder to follow than a continuous line.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
Machine mark 0 / 16