What you will learn
- Check if a cell is empty with ""
- Show a message for missing data
How it works
B2="" is TRUE when B2 is empty.
=IF(B2="","Missing","Done") shows Missing for an empty cell.
Formulas at a glance
=IF(B2="","Missing","Done") | The pattern to follow |
Example
Write the formula to show "Missing" if Ana's Homework is empty. Otherwise show "Done".
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Student | Homework | Status | Signed? | Form |
| 2 | Ana | Yes | Yes | ||
| 3 | Ben | ||||
| 4 | Cleo | Yes | Yes | ||
| 5 | Dev | Yes | |||
| 6 | Eli | Yes | |||
| 7 | Fay | Yes | Yes |
Click C2 and type =IF(B2="","Missing","Done"), then press Enter.
The answer is Done.
When to use it
- Flagging missing answers or payments
- Showing nothing until data is typed in
- Checking which forms are complete
Common mistakes
- Typing a space between the quotes" " is a space, not empty. Use "".
- Using ISBLANK and formulasA formula that returns "" is not blank to ISBLANK. ="" checks work for both.
- Forgetting the quotes around wordsWrite "Missing", not Missing.
Practice it on a real sheet
Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.