All lessons

IF statements

20 min

Make formulas decide: return one thing if true, another if false.

Step 1 of 5

In this lesson

  • IF(condition, if_true, if_false)
  • Comparisons: >, <, =, and logical AND/OR
  • Great for flags and labels
  • Combine with other formulas for reports
Live practice sheet
ABCDEFGHI
1InvoiceOutstanding
2INV-101250
3INV-1020
4INV-1030
5INV-104940
6INV-1050
7INV-106120
8
9
10Overdue
11
12
13
14

The highlighted cells show where this lesson's formula lives. Use the prompts on the left to rebuild it yourself.