Formula Errors

How to Fix the #SPILL! Error in Excel Dynamic Array Formulas

Phi Hung VoPhi Hung Vo Nov 10, 2026 869 views

Question details

The user needs to resolve a #SPILL! error that occurs when a dynamic array formula (such as a square-root formula returning multiple values) attempts to populate adjacent cells but fails.

How to Fix the #SPILL! Error in Excel Dynamic Array Formulas
Product
Excel
Device & OS
not provided
Scenario
Using dynamic array formulas to calculate and output a list of values into a range of adjacent cells.
Observed behavior
The formula returns a #SPILL! error instead of the expected array of values because the intended output range is obstructed.
Before you start

Verify exactly how many rows and columns your dynamic array formula is expected to populate, so you can inspect the correct target area for hidden data.

Solution 1Recommended

Clear Obstructing Cells in the Spill Range

Remove existing data, hidden characters, or spaces in the expected output area to allow the dynamic array to spill its results properly.

A #SPILL! error typically occurs when a dynamic array formula attempts to return multiple results, but something is occupying the cells where the results need to appear. The obstruction could be existing text, numbers, formulas, or even an invisible space character.

1
Locate the intended output range

Click on the cell containing the formula that is returning the #SPILL! error. A dashed blue or green border will temporarily appear to highlight the intended spill range.

2
Identify blocked cells

Look for any cells within the dashed boundary that contain data, manual formatting, or characters. You can also click the error warning icon next to the cell and select 'Select Obstructing Cells'.

3
Clear the obstructions

Select all obstructing cells in the spill area, right-click, and choose 'Clear Contents', or press the Delete key on your keyboard.

4
Verify formula recalculation

Once the expected output area is completely empty, the application will automatically recalculate the formula and display the spilled array of values.

Clear Obstructing Cells in the Spill Range
Invisible Spaces: Sometimes cells appear perfectly empty but contain invisible spaces or apostrophes. If the #SPILL! error persists, select the entire expected output block and press the Delete key.
Efficient Dynamic Array Processing

Handle Dynamic Arrays Seamlessly in WPS Spreadsheet

WPS Office Spreadsheet provides robust support for modern dynamic array formulas. You can calculate multiple values simultaneously and efficiently spill results without complex workarounds, fully compatible with standard Excel workbook formats.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open your existing .xlsx file containing the data you want to analyze.
  2. 2. Enter the array formula: Type your dynamic array formula (e.g., using functions like SORT, FILTER, or standard math operations on ranges) into the top-left cell of your target empty area.
  3. 3. Spill the results: Press Enter. Ensure the surrounding cells are empty, and WPS Spreadsheet will automatically calculate and spill the list of results into the adjacent cells.
Full compatibility with Microsoft Excel (.xlsx) formats and standard array functionsNative support for modern dynamic array processing and automatic spillingFree and lightweight spreadsheet solution with an intuitive user interface
QA img-9

Frequently Asked Questions

What does the 'Spill range isn't blank' warning mean?

This specific #SPILL! error message indicates that one or more cells in the area where your formula needs to output its results already contain data. You must select those cells and clear their contents for the array formula to evaluate properly.

Can a merged cell cause a #SPILL! error?

Yes. Dynamic array formulas cannot spill their results into merged cells. If your intended output range contains any merged cells, you must select them and choose 'Unmerge Cells' from the Home tab before the formula can populate.

Why do I get a #SPILL! error when trying to use dynamic arrays inside an Excel Table?

Dynamic array formulas that spill across multiple adjacent cells are not supported inside structured Tables. To fix this error, you need to either convert the table back to a standard range or place your array formula outside of the table boundaries.

How do I quickly find out exactly which cell is blocking the spill?

Click the yellow diamond warning icon that appears next to the cell displaying the #SPILL! error. From the dropdown menu, select 'Select Obstructing Cells'. The application will automatically highlight the exact cells containing the conflicting data.