ThisCalculator

Everyday

Excel Auto Merge Blank Cells: How to Fill Down

Updated · Standard formula, shown below

Excel does not have a one-click “merge blank cells” feature, but you can automatically fill blank cells with the value from the cell above using a simple technique: select the range, press F5 (or Ctrl+G) to open Go To Special, choose “Blanks,” type an equals sign, press the up arrow, and confirm with Ctrl+Enter. This fills every selected blank cell with the content of the cell directly above it, effectively merging the visible groups into single labeled blocks. Below is the full step-by-step method, why it works, and what to watch out for.

Why You Need to Fill Blank Cells

Spreadsheets often use merged cells or blank cells to show that a value applies to several rows. For example, a sales report might list “Region: North” only on the first row of that region, leaving the rows below blank. While this looks clean, it causes problems when you try to filter, sort, pivot, or use formulas—blank cells are treated as empty, so the region data is lost. Filling the blanks with the value above (also called “fill down” or “copy down”) makes each row complete and analysis-ready.

Excel’s built-in Fill Down command (on the Home tab, in the Editing group) only works if you select the cells and drag the fill handle, but it does not automatically skip blanks. The Go To Special method is the standard way to fill all blanks at once without dragging.

Step-by-Step: Fill Blank Cells with the Value Above

  1. Select the range that includes the blanks. For example, select A1:A20 if your data is in column A.
  2. Press F5 (or Ctrl+G) to open the Go To dialog.
  3. Click Special… at the bottom left.
  4. In the Go To Special dialog, select Blanks and click OK. Excel now selects all blank cells in your chosen range.
  5. Type an equals sign (=) in the formula bar (do not click anywhere else).
  6. Press the Up Arrow key on your keyboard. This enters a reference to the cell directly above the active blank cell.
  7. Press Ctrl+Enter (not just Enter). This fills all selected blank cells with the formula that references the cell above.

After this, the blanks are no longer blank—they contain formulas like =A2. If you want to replace the formulas with static values (so they don’t change if the source cell changes), copy the range and use Paste Special → Values.

What the Method Actually Does (The Logic)

When you press Ctrl+Enter, Excel copies the formula you typed into every selected cell at once. Because you selected only blank cells, each blank gets a formula that points to the cell above it. For example, if A3 is blank, it becomes =A2. If A4 is also blank, it becomes =A3 (which itself points to A2). This chain effect fills the entire block with the nearest non-blank value above.

This is not the same as merging cells. Merging combines multiple cells into one large cell, which can break sorting and filtering. The fill-down approach keeps each row separate, which is almost always better for data analysis.

Common Mistakes and How to Avoid Them

  • Forgetting to press Ctrl+Enter – If you press Enter alone, only the active cell gets filled. Always use Ctrl+Enter.
  • Selecting the wrong range – If you include the header row, the header might get filled with the row above it. Start your selection from the first data row.
  • Blanks that are not truly blank – Cells with spaces or formulas that return “” are not considered blank by Go To Special. Use Find & Select → Go To Special → Blanks after cleaning the data.
  • Filling over existing data – The method only fills blanks, so it won’t overwrite values. But if you select a range that contains data you want to keep, it’s safe—only blank cells are affected.
  • Not converting formulas to values – If you later delete the original cell above, the filled cells will show errors. Paste as values if you want static text.

Alternatives: Power Query and VBA

If you work with large datasets or need to repeat this often, consider these alternatives:

  • Power Query (Get & Transform) – In Excel 2016 or later, you can load your data into Power Query, use the Fill Down command (under Transform), and load it back. This is great for cleaning data from external sources.
  • VBA macro – A simple macro can loop through a range and fill blanks. For example, For Each cell in Selection: If cell.Value = "" Then cell.Value = cell.Offset(-1,0).Value. This is more advanced but automates the task.
  • Manual fill handle – For a small range, you can select the blank cells and drag the fill handle down. This is tedious for many blanks.

The Go To Special method is the fastest for one-time tasks and works in all modern Excel versions (2010, 2013, 2016, 2019, 365, and Excel for the web).

What About Merged Cells?

If your data already has merged cells, the fill-down method won’t work directly because merged cells are not blank—they contain the value in the top-left cell and the others are empty but part of a merged range. To unmerge and fill, select the merged range, click Merge & Center to unmerge, then apply the Go To Special method. This is a common cleanup step before using the data in a pivot table or chart.

Frequently Asked Questions

Does this work in Excel for Mac?

Yes. The keyboard shortcuts are slightly different: use Ctrl+G or F5 for Go To (on Mac, it’s Fn+F5 or Cmd+G in some versions), and the rest is the same. The Go To Special dialog is identical.

Will this fill blanks with the value from the cell above or the cell to the left?

It fills with the cell above by default because you press the Up Arrow. If you want the value from the left, press the Left Arrow instead. The method is flexible.

What if I have blanks in multiple columns?

Select the entire range (e.g., A1:C100) and the method will fill each blank with the value above in its own column. This is one of the biggest time-savers.

Can I fill blanks with a specific value (like “N/A”) instead of the cell above?

Yes. After selecting blanks, type the value (e.g., N/A) and press Ctrl+Enter. This fills all blanks with that value.

Why does my formula show a #REF! error after filling?

This happens if you delete the row that contained the original value. To prevent it, convert the filled formulas to values using Paste Special → Values.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.