IF practice exercises

Returns one value when a test is true and another when it is false. Below are 6 interactive exercises that put it to work on realistic business data — you write the formula, and get told exactly what went wrong when it does not work.

Syntax

IF(logical_test, value_if_true, value_if_false)

Practise IF

Ordered from most approachable to hardest.

When IF is the right tool

Returns one value when a test is true and another when it is false. It belongs to the logical functions family, and it shows up constantly in real work — which is why it is worth being genuinely fluent rather than merely familiar.

Reading about a function is not the same as being able to write it. The exercises on this page exist because the gap between recognising IF and producing it from memory, correctly, on data you have not seen before, only closes by doing it.

Questions about IF

How do I practise IF without Excel installed?

Every exercise on this page runs in your browser. You type the IF formula into a real spreadsheet grid and get told immediately whether it works — no download, no account.

What does IF do?

Returns one value when a test is true and another when it is false. The syntax is IF(logical_test, value_if_true, value_if_false). The exercises below put it to work on realistic business data rather than abstract examples.

How long does it take to learn IF?

Most people can write a working IF formula within twenty minutes of practice. Getting it right under pressure — with edge cases, unsorted data and ranges that must survive being filled down — is what the harder exercises here are for.