IF with AND and OR
AND or OR inside IF joins several tests into one TRUE/FALSE. AND needs every test true. OR needs only one true. The IF then gives its first result if TRUE, otherwise its second.
Understanding IF with AND and OR in ACARA Digital Technologies Years 9–10
What it does: The second IF sits in the false part of the first IF, so each mark is tested in turn and lands in one of three categories. AND joins the two tests into one TRUE/FALSE answer that is TRUE only when both tests are true, so the IF returns Pass only then. B2>50 is FALSE. AND needs every test to be TRUE, so the whole test is FALSE and the IF gives its second result, "Fail". In a spreadsheet, AND is a function. Its tests go inside brackets, separated by commas: AND(B2>50,C2="Yes"). AND(...) is closed correctly, but the IF( has no closing bracket. Adding ) after "Fail" fixes the formula.
Common mistakes: The tests inside AND must be separated by a comma. B3>50 and C3>5 need a comma between them: =IF(AND(B3>50,C3>5),"Y","N"). The formula is missing its final closing bracket. Every opening bracket needs a closing one, so it should end with "N").
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 333–377) and word search (Modules 333–412).
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>50,C2="Yes"),"Pass","Fail")Fill in the Blanks
Spot the Error
Student with a class code? Join your class →