select the #SPILL! formula cell, inspect the dashed outline of its intended spill range, and open the error indicator. If Excel offers Select Obstructing Cells, clear or move those entries; otherwise follow the cause shown by the indicator, such as a Table, sheet edge, merged cells, or indeterminate size.
On this page8
Fix: #SPILL!
What causes #SPILL!
In Excel versions that support dynamic arrays, one formula can return values into adjacent cells. #SPILL! means Excel cannot place that output in the grid. Start with the error indicator: “Spill range isn’t blank” points to occupied cells, including a formula or an apparently empty cell containing a space. “Spill into merged cells” needs unmerging or a new location. Other causes are a formula inside an Excel Table, an array that extends beyond the worksheet edge, a volatile output size that does not stabilize, or an array too large for available memory. Do not assume every #SPILL! is an obstruction.
How to fix #SPILL!
- Select the cell showing
#SPILL!. Read the error indicator and inspect the dashed outline of the intended spill range; the cause determines the fix. - If the range is not blank, choose Select Obstructing Cells from the error indicator when Excel offers it. Delete or move the entries you find, including formulas or invisible spaces; leave needed source data intact.
- If the outlined range includes merged cells, unmerge those cells or move the formula to an unmerged area.
- If the formula is inside an Excel Table, move it outside the Table or convert the Table to a range using Table Design > Convert to Range.
- If the output would cross the worksheet edge, replace a whole-column input with the needed bounded rows, or use one lookup value when only one result is intended.
- If Excel reports indeterminate size, check whether a volatile function changes the array dimensions between calculation passes;
=SEQUENCE(RANDBETWEEN(1,1000))is an example. Use a stable row count, such as=SEQUENCE(20). If Excel reports out of memory, reduce the array or referenced range.
Microsoft sources for error causes and dynamic arrays: How to correct a #SPILL! error · Dynamic array formulas and spilled array behavior · UNIQUE function
Select the cell showing #SPILL!. Read the error indicator and inspect the dashed outline of the intended spill range; the cause determines the fix.
If the range is not blank, choose Select Obstructing Cells from the error indicator when Excel offers it. Delete or move the entries you find, including formulas or invisible spaces; leave needed source data intact.
If the outlined range includes merged cells, unmerge those cells or move the formula to an unmerged area.
If the formula is inside an Excel Table, move it outside the Table or convert the Table to a range using Table Design > Convert to Range.
If the output would cross the worksheet edge, replace a whole-column input with the needed bounded rows, or use one lookup value when only one result is intended.
If Excel reports indeterminate size, check whether a volatile function changes the array dimensions between calculation passes; =SEQUENCE(RANDBETWEEN(1,1000)) is an example. Use a stable row count, such as =SEQUENCE(20). If Excel reports out of memory, reduce the array or referenced range.
Excel for Windows: Select the error cell and open its error indicator to check the cause.Excel for Mac: Select the error cell and open its error indicator to check the cause.
Read the cause before changing cells
In Excel versions that support dynamic arrays, one formula can return values into adjacent cells. #SPILL! means Excel cannot place that output in the grid. Start with the error indicator: “Spill range isn’t blank” points to occupied cells, including a formula or an apparently empty cell containing a space. “Spill into merged cells” needs unmerging or a new location. Other causes are a formula inside an Excel Table, an array that extends beyond the worksheet edge, a volatile output size that does not stabilize, or an array too large for available memory. Do not assume every #SPILL! is an obstruction.
Blocked range and worksheet edge: two checks
Blocked-range check: enter Apple, Pear, Apple, Plum in A2:A5; put “note” in C3 and =UNIQUE(A2:A5) in C2. The three distinct results need C2:C4, so C3 blocks the spill. Select C2, use the error indicator’s Select Obstructing Cells option when available, then move or delete C3; C2:C4 can show Apple, Pear, Plum. Non-obstruction check: in dynamic-array Excel, =VLOOKUP(A:A,A:C,2,FALSE) entered in E2 attempts a whole-column output that crosses the worksheet edge. Replace the lookup input with a bounded range such as A2:A7 (for a six-result array) or A2 (for one result); clearing E3 does not fix a sheet-edge error. The blocked-range example has a visible obstacle; the whole-column VLOOKUP example does not. The error indicator and the intended output dimensions tell you which repair applies.
Dynamic-array version context
These steps apply to Excel builds that support dynamic-array spills, including current Microsoft 365, Excel 2021, and Excel 2024. Function availability and error wording can vary by version. Older array-formula behavior is different; check your Excel version before applying a newer function example. Microsoft documents the separate #SPILL! causes and dynamic-array behavior in its Excel support pages.
Common mistakes
- Clearing nearby cells before reading the error indicator: a Table, worksheet-edge, or indeterminate-size cause needs a different fix.
- Assuming
UNIQUEreturns as many rows as its input: it returns the number of distinct results, which determines the intended spill range. - Making a blocker look empty with white font: the underlying value, formula, or space still occupies the cell.
Frequently asked questions
How do I find which cell is blocking the spill?
Select the #SPILL! formula cell to show the dashed intended range. If the error indicator says “Spill range isn’t blank”, choose Select Obstructing Cells when available. Move or delete those entries; even a single space can occupy a cell.
Why does #SPILL! appear when the spill range looks clear?
A cell may contain an invisible space or a formula returning an empty string. The error indicator may instead report merged cells, a Table formula, worksheet-edge overflow, indeterminate size, or memory pressure. Check the indicated cause before deleting anything.
Can I use #SPILL! formulas inside an Excel Table?
Spilled array formulas are not supported inside Excel Tables. Place the formula outside the Table, or convert the Table to a normal range if that fits your workbook.