ProofDrill

IF

Shows one thing when a test is true and another when it is not.

Worked example

Which plants need water below 30%?

C2=IF(B2<30,"Water","Leave")

RowABC
1PlantSoil moisture %Today
2Fern22
3Aloe48

A test first, then the two things it can show.

How to write it

=IF(logical_test, value_if_true, [value_if_false])

logical_test
A comparison that is true or false, like B2>100.
value_if_true
What to show when it is true.
value_if_false
What to show when it is not.
Free with a free account

Try IF yourself

Real tasks in a spreadsheet, checked on changed data. A free account saves your work and checks your answers.

Practise it free

Watch out for

  • Text to show needs quotes; a number or a cell does not.
  • Leave out the last part and Excel shows FALSE.

Practise it