Excel + Google Sheets · IF
Let Excel decide for you
Returns one value if a condition is true and another if it's false.
The formula
=IF(B2>30, "Chase", "OK")What each part means
B2>30The question"Chase"If yes"OK"If no
Example
| A | B | C | |
|---|---|---|---|
| 1 | Invoice | Days late | Action |
| 2 | #201 | 12 | |
| 3 | #202 | 45 | |
| 4 | #203 | 0 | |
| 5 | #204 | 31 |
| A | B | C | |
|---|---|---|---|
| 1 | Invoice | Days late | Action |
| 2 | #201 | 12 | OK |
| 3 | #202 | 45 | Chase |
| 4 | #203 | 0 | OK |
| 5 | #204 | 31 | Chase |
Step by step
- Click cell C2.
- Type the formula:
=IF(B2>30, "Chase", "OK") - Press Enter.
- Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.
Where it works
- Every version of Excel
- Google Sheets
- Excel for the web (free)