Fill Blank Cells with the Value Above

Excel Formulas › Data Cleaning

All versionsIF

Reports often list a group label once, leaving the rows beneath blank. Fill each blank with the value above so the column is complete and usable for sorting, filtering, and PivotTables.


Quick formula: carry the value down into blanks:
=IF(A2="", B1, A2)
If the cell is blank, take the value from the row above; otherwise keep the cell's own value.

Functions used (tap for the full reference guide):

The example

Region label fills down its rows.

AB
1RawFilled
2WestWest
3(blank)West

The formula

The formula:

=IF(A2="", B1, A2) // blank? take above : keep

How it works

How it works:

  1. In a helper column, IF(A2="", B1, A2) — if blank, pull the filled value above; else keep the cell.
  2. Reference the helper column above (B1) so filled values cascade down a run of blanks.
  3. Then paste the helper as values over the original to lock it in.
  4. The no-formula route: select the column, Go To Special → Blanks, type = up-arrow, Ctrl+Enter.

Go To Special is the one-shot manual version. Select the column, Home → Find & Select → Go To Special → Blanks, then type =, press the up arrow, and confirm with Ctrl+Enter — every blank fills from the cell above at once. The formula version is better when the fill must update as data changes.

Try it: interactive demo

Live demo

A column with gaps (one value per line, blank = repeat).

Variations

Trim before testing

Spaces count as filled:

=IF(TRIM(A2)="", B1, A2)

Blank if truly empty

Use ISBLANK:

=IF(ISBLANK(A2), B1, A2)

Group counter

Number each group:

=IF(A2<>"", C1+1, C1)

Pitfalls & errors

Reference the helper above. Point B1 at the filled column, not the gappy original, so fills cascade.

Paste as values. Lock the result before deleting the original column.

Spaces aren’t blank. A cell with a space fails ="" — wrap in TRIM if needed.

Practice workbook

📊
Download the free Fill Blank Cells with the Value Above practice workbook
A fill-down sheet with the trim, ISBLANK, and group-counter variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I fill blank cells with the value above in Excel?
In a helper column use =IF(A2="", B1, A2), referencing the filled column above so values cascade, then paste as values.
Is there a no-formula way?
Yes — select the column, Go To Special → Blanks, type = then the up arrow, and press Ctrl+Enter.
Why does my fill stop after one blank?
You're referencing the original gappy column. Point the IF at the helper column above (B1) so fills carry down.

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: Default if blank · Running count · Check if blank

Function references: IF