Formula Errors

How to Unmerge Cells and Fill Values Down in Excel Without Circular References

Steve KSteve K Oct 12, 2026 871 views

Question details

The user needs a method to unmerge cells and automatically copy the original value down into the newly created blank rows below, using a formula that avoids circular references.

How to Unmerge Cells and Fill Values Down in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Cleaning and structuring data where unmerging cells leaves gaps in rows that need to inherit the value from the top cell of the previously merged group.
Observed behavior
When cells are unmerged, only the topmost cell retains the data, leaving the rows below blank. Applying standard formulas directly over the same range often triggers a circular reference error.
Before you start

Ensure your dataset contains a header row, as this is necessary to properly anchor the formula in the first data row. It is also recommended to create a new blank helper column next to your target data to perform the calculation safely.

Solution 1Recommended

Use an IF Formula in a Helper Column

Use a simple conditional formula in an adjacent column to check for blanks and carry the previous values forward without creating circular references.

To avoid a circular reference error, you cannot write a formula that refers to its own cell location. Instead, use an adjacent helper column. The formula will check the original column: if it's empty, it takes the value from the cell immediately above in the helper column. If it has data, it copies the data directly.

1
Unmerge the cells

Select the column with the merged cells. Go to the 'Home' tab and click 'Merge & Center' to unmerge them. The data will now sit in the top cell, leaving blanks below.

2
Set up the helper column formula

Assuming row 1 contains headers and your data is in column A, click on cell B2. Enter the formula: =IF(A2=0,B1,A2) or =IF(A2="",B1,A2).

3
Fill the formula down

Press Enter. Select cell B2 again, click and hold the small square at the bottom-right corner (fill handle), and drag it down to the bottom of your dataset.

4
Convert formulas to plain values

Select all the newly populated data in column B, press Ctrl+C to copy. Right-click the top data cell in column A, and under Paste Options, select 'Values' (the clipboard icon with a 123). You can now delete the helper column.

Circular Reference Avoided: By writing the formula in column B and referencing the cell above it (B1) instead of A1, Excel processes the logic line by line without looping back on itself.
Advanced Data Tools

Easily Unmerge and Fill Data with WPS Spreadsheet

WPS Spreadsheet provides powerful data formatting and formula processing tools. You can easily unmerge cells, clean up missing data, and apply standard IF formulas to fill down values without compatibility issues.

  1. 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your .xlsx workbook containing the merged data.
  2. 2. Unmerge the cells: Highlight your data and click 'Merge and Center' on the Home ribbon to separate the blocks.
  3. 3. Use the IF formula to fill down: In an empty adjacent column, input =IF(A2="",B1,A2) and drag the fill handle down to populate the blank rows automatically.
  4. 4. Paste as values: Copy the completed helper column, right-click your original column, and select 'Paste as Values' to finalize your data structure.
100% format compatibility with Microsoft Excel (.xlsx) files.Supports all standard Excel formulas, preventing calculation errors.Lightweight program that opens large datasets instantly.Intuitive interface for fast data cleaning and formatting.
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get a circular reference warning when trying to fill blank cells?

A circular reference warning appears when a formula refers to the exact cell it is written inside, creating an infinite calculation loop. When using formulas to fill down unmerged cells, you must write the formula in a separate helper column to prevent the formula from looping on itself.

Can I remove the helper column after the values are filled?

Yes. Once the helper column calculates the correct filled values, select the entire helper column, copy it (Ctrl+C), and then 'Paste as Values' over your original data. You can then safely delete the helper column.

Why is my formula returning 0 instead of the value above?

If the formula =IF(A2=0,B1,A2) is returning incorrect results, Excel may be interpreting the empty cell differently. Try modifying the condition to explicitly check for blanks by using the formula =IF(A2="",B1,A2) or =IF(ISBLANK(A2),B1,A2).