Spreadsheet error

How to fix the #SPILL! error

TL;DR

#SPILL! means a dynamic array formula (FILTER, UNIQUE, SORT, SEQUENCE) wants to output multiple cells but something is in the way. Clear the output range.

What it means

Excel 365 supports dynamic arrays that "spill" into adjacent cells automatically. If those cells already have content, merged cells, or a table boundary, the formula returns #SPILL!.

Common causes

How to fix it

1.Clear the obstructing cells

  1. Hover the #SPILL! cell — Excel highlights the blocked range.
  2. Delete or move whatever content is in that range.

2.Unmerge cells

  1. Select the spill target area.
  2. Home > Merge & Center to unmerge.

3.Move out of the table

  1. Structured tables do not allow spill inside them.
  2. Move the dynamic array formula to a regular range, or convert table back to range.

Example

Broken=UNIQUE(A2:A100) // returns #SPILL! because B3 has a leftover valueFixed=UNIQUE(A2:A100) // after clearing B3:B100

UNIQUE needs to spill values downward. If any of the target cells are occupied, Excel refuses to overwrite them and returns #SPILL!.

Prevention

Related errors

#CALC!#REF!#VALUE!

Let FormulaPad debug it for you

Paste your broken formula and the error message — get a diff and an explanation in seconds.

Debug a formula