FormulaCraft

How to check if a cell is blank with IF in Excel and Google Sheets

Topic:IF, IFS & nested conditions
Excel & Google Sheets
=IF(ISBLANK(A2),"Empty","Has Value")

Verified example

Computed by a real spreadsheet engine on the sample data below.

ValueResult
Hello
42

=IF(ISBLANK(A2),"Empty","Has Value")Has Value

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1To check if A2 is blank, use =IF(ISBLANK(A2),"Empty","Has Value"). ISBLANK returns TRUE only for truly empty cells.
  2. 2Alternatively, use the empty string comparison: =IF(A2="","Empty","Has Value"). This also catches cells that contain a zero-length string.
  3. 3Combine with other logic to skip calculations: =IF(ISBLANK(A2),"",A2*B2) returns blank instead of an error when A2 is empty.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What is the difference between ISBLANK and checking A2=""?

ISBLANK is TRUE only for a cell with no content whatsoever. A2="" is also TRUE for cells that contain an empty string formula result.

How do I count blank cells in a range?

Use COUNTBLANK(range) to count cells that are empty or contain empty strings, or SUMPRODUCT(--(range="")) for more control.

More on IF, IFS & nested conditions

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: