The IF function in a spreadsheet
Checks a condition, like B2>=50, and shows one result if it is true and another if it is false. Text results go in quotes, and you can copy it down a column.
Understanding The IF function in a spreadsheet in Years 9–10 Data & Information
What it does: "Pass" and "Fail" are in quotes, so the cell displays those words. Without the quotes the spreadsheet would look for named ranges and give an error. When =IF(B2>=50,"Pass","Fail") is copied down one row, the relative reference B2 changes to B3, so each row tests its own mark. The test B2>=50 uses 'greater than or equal to'. 50 is equal to 50, so the test is true and the formula shows the first result, Pass. The first part of IF is the condition that gets checked. It is either true or false. The next two parts are the results.
Common mistakes: Text results must be inside quotes. Without quotes, Excel thinks Pass is a name and shows an error. It should be "Pass". When the formula is copied down to row 3, the test should check B3. Here it still checks B2, so row 3 would show the wrong result. It should be B3>=50.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 17–51) and word search (Modules 6–132).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
=IF(test, value_if_true, value_if_false)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →