Show a Default When a Cell Is Blank

Excel Formulas › Logical

All versionsIF

Replace empty cells with a fallback — “N/A,” a zero, or a value from elsewhere — so reports never show distracting blanks. A quick IF (or a couple of alternatives) does it.


Quick formula: show “N/A” when A2 is blank:
=IF(A2="", "N/A", A2)
If the cell is empty, return the default; otherwise return its value.

Functions used (tap for the full reference guide):

The example

Blanks replaced by a default.

AB
1ValueShown
2AnnAnn
3(blank)N/A

The formula

Fallback for empties:

=IF(A2="", "N/A", A2) // default when blank

How it works

Test for blank, supply a default:

  1. A2="" is TRUE for an empty cell (and for a formula returning an empty string).
  2. IF returns the default when blank, the value otherwise.
  3. For a zero default in math, =N(A2) or =A2+0 treats blank as 0.
  4. To pull a fallback from another cell: =IF(A2="", B2, A2).

Coalesce down a list of options: nest IFs — =IF(A2<>"", A2, IF(B2<>"", B2, "N/A")) — returns the first non-blank. In 365, =IFS(A2<>"",A2, B2<>"",B2, TRUE,"N/A") is cleaner.

Try it: interactive demo

Live demo

Type a value (or leave blank).

Shown:

Variations

Zero for math

Treat blank as 0:

=N(A2)

Fallback cell

Use another value:

=IF(A2="", B2, A2)

First non-blank

Coalesce:

=IFS(A2<>"",A2, B2<>"",B2, TRUE,"N/A")

Pitfalls & errors

Blank vs empty string. ="" from a formula isn’t truly blank, but A2="" treats it as such — usually what you want.

Spaces aren’t blank. A cell with a space fails A2="" — test TRIM(A2)="" to catch it.

Default type. A text default in a numeric column can break downstream math — use 0 or "" if the column feeds calculations.

Practice workbook

📊
Download the free Show a Default When a Cell Is Blank practice workbook
A default-when-blank sheet with the zero, fallback-cell, and coalesce variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I show a default value for blank cells in Excel?
Use =IF(A2="", "N/A", A2). It returns the default when the cell is empty and the value otherwise.
How do I treat a blank as zero in a calculation?
Use =N(A2) or =A2+0, which convert an empty cell to 0.
How do I return the first non-blank of several cells?
Nest IFs or use IFS: =IFS(A2<>"",A2, B2<>"",B2, TRUE,"N/A").

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Fill blanks down · Count blank cells · Highlight required blanks

Function references: IF