IF: making decisions
Return one thing when a test is true and another when it is false.
IF has three parts: =IF(test, value if true, value if false). The test compares two values: equal (=), not equal (<>), greater than, less than, at least (>=) or at most (<=). Text results go in double quotes, like "Pass".
Example: C2 has =IF(B2>=500,B2*10%,0) and B2 is 640.
- Is 640 at least 500? Yes — The test is true
- 640 times 10% = 64 — Use the value if true
- 64 — C2 shows 64
Why it works: A test like greater than can only be true or false, so IF needs just two answers: one for true and one for false.
Tip: Watch the edge: > means strictly more, so a value exactly equal to the limit fails a > test but passes >=.