New Tool Radar

AI for Data & Spreadsheets

How to Fill Blank Cells With the Value Above in Excel

Fill gaps in a column, such as a region repeated down a list, with the value above, using Go To Special and one formula.

Schematic with three steps: Select the blanks in the column; Enter a formula pointing at the cell; Paste the results as values.

Exports often leave a grouping column blank after the first row of each group, so the region appears once and the rows below it are empty. Filling each blank with the value above restores the group on every row, which is what filters, pivots and SUMIFS need.

What you need

  • Excel with a column that has gaps after the first row of each group
  • A copy of the workbook
  • A note of which column holds the group value

Step 1: Select the blanks in the column

Select the group column, press Ctrl+G, click Special, choose Blanks and click OK. Only the blank cells in that column are selected.

Step 2: Enter a formula pointing at the cell above

With the blanks still selected, type = and press the up arrow to point at the cell above, then press Ctrl+Enter to enter the same relative formula into every selected blank at once.

Step 3: Paste the results as values

Copy the filled column and use Paste Special, Values, so the filled values are fixed and no longer depend on the cell above. Check the group counts add up to the row count.

Worked example: synthetic 20-row list with blank regions

The table below is a synthetic example. It shows the expected result of filling blank regions; no workbook was opened.

Region Rows after filling Check
North 8 8 rows
South 7 7 rows
East 5 5 rows
Total 20 Matches the row count

Expected result (UNTESTED). 12 blanks are filled with the region above, giving North 8, South 7 and East 5 rows, which adds up to the 20 rows in the list. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Fill with the value above only when the blank really means the same group; a blank can also mean unknown.
  • Paste as values after filling, or deleting a row above will break the filled cells.
  • Do not fill blanks in a column where blank means a genuine missing value, such as an amount.

Sources

See all