logo
search
Formula Errors

How to Fix Excel #SPILL! Errors Caused by Merged Cells

Huma Ashraf ChHuma Ashraf Ch Oct 10, 2026 869 views

Question details

The user needs to fix a #SPILL! error in Excel that occurs when a dynamic array formula interacts with merged cells.

How to Fix Excel #SPILL! Errors Caused by Merged Cells
Product
Microsoft Excel
Device & OS
not provided
Scenario
Using dynamic array formulas in Microsoft 365 that either reference a merged cell range or attempt to output data into an area containing merged cells.
Observed behavior
Excel displays a #SPILL! error because dynamic array formulas treat referenced merged cells as an entire range and cannot spill their output into merged cells.
Before you start

Click the cell displaying the #SPILL! error to reveal a dashed blue border indicating the intended spill range, so you can easily spot any merged cells blocking the formula.

Solution 1Recommended

Unmerge Cells in the Spill Range

Since dynamic arrays cannot spill into merged cells, removing the cell merges in the formula's output area is the most direct way to resolve the error.

A dynamic array formula needs a clear, standard grid of single cells to display its multiple results. If even one merged cell overlaps this required area, Excel blocks the entire calculation to prevent data overwriting and returns the #SPILL! error.

1
Select the obstructing cells

Highlight the merged cells that are located within the formula's intended spill range (indicated by the dashed border).

2
Unmerge the cells

Navigate to the 'Home' tab on the Excel ribbon, click the drop-down arrow next to 'Merge & Center', and select 'Unmerge Cells'.

3
Clear or rearrange data

Ensure that the newly unmerged cells are empty so the formula has enough blank space to spill its results. The formula will automatically recalculate once the space is clear.

Unmerge Cells in the Spill Range
Formatting Alternative: If you need the visual appearance of a merged cell without actually merging them, select the cells, open the Format Cells dialog (Ctrl+1), go to the Alignment tab, and choose 'Center Across Selection' in the Horizontal text alignment drop-down.
Advanced Spreadsheet Tool

Easily Handle Dynamic Arrays and Formula Errors in WPS Spreadsheet

WPS Spreadsheet fully supports dynamic array formulas and provides intuitive tools to help you identify and resolve formula spill conflicts. Easily unmerge cells and calculate complex data in a familiar, user-friendly environment.

  1. 1. Open your spreadsheet: Launch WPS Spreadsheet and open the file containing the formula errors.
  2. 2. Locate the spill error: Select the cell showing the error. WPS Spreadsheet will outline the expected spill range so you can identify obstructions.
  3. 3. Unmerge blocking cells: Highlight any merged cells in the output area, go to the Home tab, and click 'Merge and Center' to unmerge them.
  4. 4. Recalculate automatically: Once the merged cells are removed, your dynamic array formula will automatically update and display the correct values.
Seamless format compatibility with Microsoft Excel (.xlsx, .xls)Full support for modern dynamic array formulas and functionsClear visual indicators to quickly troubleshoot #SPILL! errorsFree, lightweight, and fast office suite alternative
microsoft office alternative - wps office

Frequently Asked Questions

What does a #SPILL! error mean in Excel?

A #SPILL! error occurs when a dynamic array formula attempts to return multiple results, but the required blank output range (spill range) is blocked by existing data, merged cells, or Excel tables.

Can I force a dynamic array formula to spill into merged cells?

No. Dynamic array formulas require a standard grid of individual cells to output multiple values. They cannot spill into any range that contains merged cells. You must unmerge the cells for the formula to function.

How do I quickly find the merged cells causing the #SPILL! error?

Click on the cell displaying the #SPILL! error. A small warning icon will appear next to it. Click the icon and select 'Select Obstructing Cells' from the menu to instantly highlight the merged cells or data blocking the formula.

Why does referencing a merged cell cause a #SPILL! error?

Excel treats a merged cell range (e.g., A1:B1) as an array rather than a single cell. When a dynamic formula references this array, it attempts to process multiple cells instead of one, which can trigger the error. Referencing only the top-left cell of the merged area resolves this.