Function Problems

How to Automatically Fill Blank Cells with Values Above in Excel

Chanuka GeekiyanageChanuka Geekiyanage Nov 10, 2026 872 views

Question details

The user needs to populate blank cells in a column with the value immediately above them to create variable-sized repeating groups without manually dragging each one.

How to Automatically Fill a Repeating Series with Variable Group Sizes
Product
Excel
Device & OS
not provided
Scenario
Organizing and cleaning a dataset where category codes are only entered in the first row of each group, leaving empty cells below that must be filled for accurate data sorting and analysis.
Observed behavior
Blank cells exist below each distinct value, requiring a bulk operation to copy the respective upper values down to their corresponding empty spaces.
Before you start

Before applying this method, ensure your data range does not contain hidden characters or spaces inside the visually blank cells, as this will prevent Excel from recognizing them as truly blank.

Solution 1Recommended

Use the 'Go To Special' Feature to Fill Blanks

This is the most efficient method to fill all blank cells in a dataset with the value immediately above them in a single operation, avoiding manual dragging.

By utilizing the 'Go To Special' feature alongside a relative formula, you can isolate empty cells and command Excel to look at the cell directly above each one.

1
Select the target column

Highlight the specific column or the exact data range that contains both the values and the blank cells you want to fill.

2
Open Go To Special

Press F5 or Ctrl+G on your keyboard to open the 'Go To' dialog box, then click the 'Special...' button located at the bottom left.

3
Isolate the blank cells

In the Go To Special menu, select the 'Blanks' radio button and click 'OK'. This will keep only the empty cells highlighted in your selection.

4
Enter the relative formula

Without clicking anywhere else, check the formula bar or the active highlighted cell (e.g., G7). Type an equals sign (=) and click the cell immediately above it (e.g., =G6), or just type the cell reference manually.

5
Apply to all selected blanks

Press Ctrl+Enter simultaneously. This confirms the formula for the active cell and automatically applies the relative formula to every other selected blank cell, filling them with the values above.

Use the 'Go To Special' Feature to Fill Blanks
Convert Formulas to Values: After filling the blanks, the cells will contain formulas. To prevent errors when sorting later, keep the cells selected, press Ctrl+C to copy, right-click, and select 'Paste as Values' to convert them to static text.
Advanced Data Cleaning

Easily Fill Blank Cells in WPS Spreadsheet

WPS Office offers a powerful, user-friendly Spreadsheet application that fully supports advanced data manipulation features like 'Go To Special'. You can use the exact same shortcuts to clean up datasets and fill blank cells effortlessly.

  1. 1. Select Data: Open your spreadsheet in WPS Office and highlight the column containing the blanks.
  2. 2. Find Blanks: Press Ctrl+G to open the Go To dialog, select 'Blanks', and click 'Go To'.
  3. 3. Enter Formula: Type '=' and press the Up arrow key to reference the cell immediately above.
  4. 4. Fill Automatically: Press Ctrl+Enter to apply the formula across all selected blank cells instantly.
Fully compatible with Microsoft Excel (.xlsx, .xls) file formats.Supports identical keyboard shortcuts (F5, Ctrl+G, Ctrl+Enter) for a seamless transition.Includes a rich set of built-in data cleaning and formatting tools.Free, lightweight, and fast performance even for large datasets.
microsoft office alternative - wps office

Frequently Asked Questions

Why did Ctrl+Enter overwrite my existing data instead of just the blanks?

This happens if you skip the 'Go To Special > Blanks' step. If the entire column remains selected when you press Ctrl+Enter, Excel applies the formula to every cell. Always ensure only the blank cells are isolated before typing the formula.

Can I use this method to fill values to the right instead of downwards?

Yes. Select your data row, use F5 to select Blanks, type '=' and press the Left arrow key to reference the cell to the left. Then press Ctrl+Enter to fill the blank cells horizontally.

What should I do if 'Go To Special' says 'No cells were found'?

This means your visually empty cells actually contain hidden characters, spaces, or zero-length strings (often caused by exporting data from other software). You will need to use the Find and Replace tool or the TRIM function to clear those cells completely before selecting Blanks.