FormulaCraft

Fix the #SPILL! error

Excel only

What #SPILL! means

#SPILL! is a modern Excel error. A dynamic-array formula (like UNIQUE, FILTER, or SORT) needs to "spill" its results into the cells below or beside it, but something is in the way, so it cannot.

Common causes

Example fix

Broken
=UNIQUE(A2:A100)
Fixed
=UNIQUE(A2:A100)

The formula is correct — clear the occupied cells in the highlighted spill range below it.

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How to fix it

  1. 1Click the formula cell — Excel highlights the spill range with a dashed border so you can see what is blocked.
  2. 2Delete or move whatever sits inside that highlighted range.
  3. 3Unmerge any merged cells in the spill area.
  4. 4Move the formula out of an Excel Table if it needs to spill, since Tables block dynamic arrays.
  5. 5If you only want a single result, anchor the input with @ or wrap it so it does not spill.

Stop hunting errors by hand.

Upload your spreadsheet and the Auditor flags every #SPILL! and broken formula at once — or paste this one formula and get the fix explained.

Frequently asked

Does Google Sheets have #SPILL!?

No. Google Sheets uses ARRAYFORMULA and shows a different message ("Array result was not expanded...") when output is blocked.

Why does my formula spill error inside a Table?

Excel Tables do not support dynamic arrays. Move the spilling formula to a normal range outside the Table.

Related formulas

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: