Fix the #SPILL! Error
A UNIQUE, FILTER, or SORT formula that should list multiple results shows #SPILL! instead — even though the formula itself is written correctly.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
Dynamic array functions like UNIQUE, FILTER, and SORT return many values from one formula, spilling them into the cells below and to the right. #SPILL! means that landing zone isn't empty — even one occupied cell in the way blocks the whole result. The occupant is often invisible: a lone space, an old note, or a leftover formula. In Excel, click the #SPILL! cell and a dashed border outlines the exact range the formula needs; find the non-empty cell inside it and clear it. The formula then spills instantly with no edits needed. A second cause is asking for more room than exists: =UNIQUE(A:A) on a whole column tries to spill a million rows, so reference a bounded range like A2:A20 instead.
When to use it
Expect #SPILL! whenever you drop a dynamic array formula into a sheet that already has content nearby — dashboards, shared trackers, or any column with stray notes below the data.
Common mistakes
Got a file full of these?
Open it in your browser — every error cell gets highlighted with its fix. Nothing is uploaded.
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08