Flagging out-of-range values with IF and OR
Shows Check if B2 is below 0 or above 100, otherwise OK. OR needs just one true test, so it catches both ends. AND would never work because no value is both below 0 and above 100.
Understanding Flagging out-of-range values with IF and OR in ACARA Digital Technologies Years 7–8
What it does: OR returns TRUE when at least one of its tests is true, so it catches a value that is too low or too high. The IF formula writes Check next to every out-of-range value, so filtering for Check shows just those rows. AND needs every test to be true together. A mark of 150 is above 100 but not below 0, so AND would say OK even though it is a problem. B2<0 is true. OR catches the low end, so the result is Check. Each test inside OR is separated by a comma. Leaving out the comma causes an error.
Common mistakes: AND needs both tests true, but no rating is below 1 and above 5 at once, so nothing is ever flagged. It should be OR. The second test should be B3>5 to catch values above the maximum. B3<5 would flag most valid ratings.
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 261–300) and word search (Modules 261–324).
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(OR(B2<0,B2>100),"Check","OK")Fill in the Blanks
Spot the Error
Student with a class code? Join your class →