Range checking in a spreadsheet
A range check formula. It returns TRUE only if the value in B2 is at least the minimum (0) and at most the maximum (100), so boundary values pass and anything outside is rejected.
Understanding Range checking in a spreadsheet in VCE Data Analytics U3O1
What it does: Using >= and <= means 0 and 100 themselves pass the check, as they are the boundary values. If the AND test is FALSE, IF returns the warning text so the invalid entry is easy to spot. AND needs BOTH conditions to be true. OR would accept any number at all, because every number is either at least 0 or at most 100. 100 is a boundary value. Because the formula uses <=, the maximum itself is allowed, so the check passes. 101 is just above the maximum of 100, so B2<=100 is FALSE and AND returns FALSE. The minimum goes with >= and the maximum goes with <=. Swapping them means no value can ever pass.
Common mistakes: The upper limit uses >= instead of <=. Only values of 100 or more would pass the maximum test. It should be =AND(B2>=0,B2<=100). C5>1 excludes the boundary value 1, so a valid rating of 1 would be rejected. The minimum test should use >=: =AND(C5>=1,C5<=10).
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–49) and word search (Modules 17–91).
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
=AND(B2>=0,B2<=100)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →