The IF function is the most used decision function in Excel. It does one simple thing: it reads the result of a logical test, TRUE or FALSE, and returns one value or another. Many beginners write IF without understanding this, and get lost as soon as the formula grows. If you can write the test first, the IF becomes easy.
This short exercise is the best place to start: you build the test, then you put it inside an IF.
What you will practice in this exercise
You work on a list of daily temperatures. You answer 4 questions, one formula per question:
- Is the temperature 3 °C or less? (logical test)
- Fill the test down the column (relative reference)
- Display “Ice alert” when the temperature is below 3 °C (IF function)
- Fill the IF down the column (fill handle)
Practice with exercises
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.