EXCEL TRAINING · LESSON 4 OF 8 · 3 MIN READ
Make a decision with IF
Return one result when a condition is true and another when it is false.
Understand the idea
IF evaluates a condition and chooses between two results. A comparison such as C2>=B2 produces a logical result. The operator >= includes equality, while > does not. Text results need quotation marks in the formula. Choose boundary behaviour from the task, rather than guessing it.
Work through it
Write the condition in plain language first. Decide what should happen above, below and exactly at the boundary. Then write the true and false results. Test all three cases, including equality, so a formula that looks right on one dataset does not hide a boundary error.
SEE IT IN CONTEXT
Worked example
B2 target = 100 C2 actual = 100 =IF(C2>=B2,"Met","Below") Result: Met
Equality meets an “at least” target, so >= fits this example. If the brief said “more than”, the comparison would be different. The words in quotes are the outputs, not cell references.
Common mistakes to avoid
- Using > when equality must count.
- Forgetting quotation marks around text.
- Swapping the true and false results.
NOW HAVE A GO
Check a sales target
Apply the idea in the linked activity. Follow its own brief and values; examples in this lesson are illustrative.
Try the practice activity →Download the Excel workbookAbout the linked activity
Examples use English function names and comma separators. Your spreadsheet app may use local names or separators. The browser checker supports the functions listed in each activity, rather than all of Excel.
Reading marks are self-reported and saved only in this browser.
0 of 8 lessons marked as read
Keep learning: Reference documentation ↗
