ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 36 · Logic

IF with empty cells in Excel

B2="" is true when B2 is empty. Put it inside IF to show "Missing" for cells that have not been filled in yet, or to leave a cell blank until there is data.

Practice this lesson →Pro lesson. The first 4 lessons are free.

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".

ABCDE
1StudentHomeworkStatusSigned?Form
2AnaYesYes
3Ben
4CleoYesYes
5DevYes
6EliYes
7FayYesYes

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.

IF with empty cells in Excel: how it works, with examples · ExcelUnpack