- Most IF mistakes give no error, just a wrong answer:
>where>=was meant, a number in quotes, two results swapped. The exercises put a row on the limit to catch them. - Every test in this module is a comparison that is TRUE or FALSE.
AND,OR,XORand the IS functions combine or check them;IF,IFSandSWITCHturn them into results. - Several conditions can be written as a nested IF, an
IFSor a lookup table. You practise all three and see when each one is easier to read and change.
The 11 exercises
Each one is a short task on an Excel-style sheet in your browser, free and without sign-up. The checker looks at the result, so any formula that gets it right passes, and a wrong one gets the reason.
-
TRUE or FALSE?
A comparison such as
=A2>100is a formula on its own and shows TRUE or FALSE. -
Pass or fail?
IFchecks a condition and shows one result when it is true and another when it is false. -
Both or either?
ANDis TRUE only when every test is true;ORis TRUE when at least one is. -
Exactly one of the two
XORis TRUE when exactly one of two tests is true, and FALSE when both are or neither is. -
Grade bands with nested IF
A nested
IFputs oneIFinside another to choose between more than two results, checked in order. -
Many conditions, no nesting
IFSchecks several conditions in order and returns the value for the first one that is TRUE, without nesting IFs. -
Match a code with SWITCH
SWITCHcompares one value with a list of exact matches and returns the result paired with the one it equals, or a default. -
IF with AND and OR
ANDandORcan sit inside each other and insideIF, so one test can mix "all of these" with "any of those". -
What's in this cell?
ISNUMBER,ISTEXTandISBLANKsay what a cell holds: a number, text, or nothing at all. -
Catch the error, not the bug
IFERRORshows a formula's result, or a value you choose when the formula returns an error. -
Mistake hunt: the commission sheet
An IF that looks right can still pay the wrong amount: a > where >= was meant, results in the wrong order, or a number in quotes.
Do module 5 in order, step by step, in the courseAll 126 exercises
FAQ
- Which should I learn first, IF or IFS?
- IF. It works in every version of Excel and Google Sheets, IFS needs Excel 2019 or later, and IFS is easy once you know how IF reads its tests in order.
- When is a lookup table better than IF?
- When the bands or codes change, or there are more than three or four of them. The values then live in cells you can edit, and the formula stays the same: a VLOOKUP or XLOOKUP on a small table replaces a long nested IF.
- Do these exercises help with Excel interview tests?
- IF with AND or OR, nested IF and IFERROR are standard topics in Excel tests for office and analyst jobs, often with a value sitting exactly on a limit. The exercises use the same kind of edge cases.