Modern Microsoft Excel incorporates dynamic arrays, allowing formulas like UNIQUE, FILTER, SORT, and SEQUENCE to compute results that naturally expand into adjacent cells (a behaviour known as spilling). However, entering an array formula only for the cell to display #SPILL! halts automated data modelling.
The #SPILL! error signals that Excel calculated a multi-cell array result, but the designated destination cells are obstructed. Obstructing values can include stray text, non-visible spaces, merged cells, or boundaries overlapping existing Excel Tables. Following this diagnostic guide will help you resolve spill errors cleanly.
Clear Physical Data Obstructions in the Spill Range
The most common cause of a spill error is that one or more cells in the anticipated output grid already contain data, an empty string, or a stray formula.
- Click on the cell displaying the #SPILL! error.
- Notice the thin, dashed blue border that illuminates around the perimeter of the expected output range. This indicates the exact grid space Excel needs to render the array.
- Click the small floating warning icon (an exclamation mark inside a diamond) next to the cell.
- Select Select Obstructing Cell(s). Excel will automatically highlight the specific cell blocking the array.
- Press the Delete key to clear the obstructing data. As soon as the pathway is clear, your formula will spill its results across the grid.
Unmerge Cells Within the Destination Target Area
Dynamic array formulas require standard, uniform spreadsheet cells. If any cell within the intended spill range is merged with another cell, Excel cannot populate the grid.
- Highlight the expected output area outlined by the blue boundary.
- Look at the Home tab on the Excel ribbon.
- Under the Alignment section, click Merge & Center to toggle off merging across the selected range.
- Re-enter the formula; the array will spill smoothly across standard cells.
Avoid Spilling Dynamic Arrays Inside Excel Tables
Microsoft Excel structured data tables (created via Insert > Table or Ctrl + T) do not support dynamic array spill ranges. Excel tables expect formulas to evaluate on an individual row-by-row basis.
- If you entered a formula such as
=UNIQUE(A2:A100)inside a structured table column, move the formula to an empty worksheet area outside the table boundaries. - Alternatively, if you require the array to spill within the table, convert the table back into standard spreadsheet ranges by clicking Table Design > Convert to Range.
Prevent Infinite Spill Ranges Referencing Entire Columns
Entering whole-column references inside certain array functions (e.g., =FILTER(A:A, B:B="Complete")) can cause Excel to attempt spilling down all 1,048,576 rows, exceeding worksheet limits.
- Review the ranges defined inside your formula parameters.
- Replace whole-column references with explicit range boundaries (for example, use
A2:A1000instead ofA:A). - Press Enter to allow the constrained array to evaluate.