Flagging invalid entries with IF
Shows OK if B2 is between 0 and 120, otherwise Check. Copy it down the column beside the data, then filter on Check to find the invalid entries.
Understanding Flagging invalid entries with IF in ACARA Digital Technologies Years 9–10
What it does: AND combines the lower and upper range tests so that only values inside the range show OK. Filtering on Check hides the OK rows, so only the invalid entries are left to look at and fix. AND joins both tests into one check. Without it, IF gets too many arguments and the formula breaks. 150 is greater than 120, so the AND test is false and IF returns the third part, "Check". Copying down makes B2 change to B3, B4 and so on, so every row gets its own check. -5 is less than 120, so the second formula would wrongly say OK. The first one also tests the lower limit of 0.
Common mistakes: The flag must appear beside every row, so the formula is copied down column C to C9, not across to D2. Invalid entries are marked Check, so you filter on Check. Filtering on OK would only show the valid rows.
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 255–329) and word search (Modules 226–329).
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(AND(B2>=0,B2<=120),"OK","Check")Fill in the Blanks
Spot the Error
Student with a class code? Join your class →