Why it works
- What it does
- IF checks a condition and returns one value when it is true and another when it is false. Think about the empty cell before you write it: a blank count is not 0 stock, so test for "" first when blanks mean “not counted”.
- The shape of the formula
- =IF(condition, value if true, value if false)
- How to remember it
- IF asks one yes/no question; every possible input needs a sensible answer.
- The usual mistake
- Ignoring blanks. An item nobody counted reads as 0 and is reordered.
Keep practicing
- Nested IF: several bands in one formulaHow do I sort invoices into aging buckets?Open
- IF with AND and ORHow do I mark orders that ship free only to some states above a minimum?Open
- Keep numbers that can change out of formulasWhy should a limit or rate live in a cell, not in the formula?Open
- Lesson: One answer or another with IFA short lesson in your workspace: the idea, small steps on a sheet, one task with new dataOpen
Updated