How to Unmerge Cells and Fill Values Down in Excel Without Circular References
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.

- 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.
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.
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.
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.
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).
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.
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.
Use the 'Go To Special' Feature
A widely used, built-in Excel trick to fill blanks quickly without needing an extra helper column.
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. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your .xlsx workbook containing the merged data.
- 2. Unmerge the cells: Highlight your data and click 'Merge and Center' on the Home ribbon to separate the blocks.
- 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. Paste as values: Copy the completed helper column, right-click your original column, and select 'Paste as Values' to finalize your data structure.

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).




