Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
#SPILL! occurs in Excel when a dynamic array formula cannot write its results into the spill range because one or more cells in that range are occupied — in this specific variant, because those cells are merged. Excel cannot write individual values into sub-cells of a merged group, so the spill is blocked entirely.
=UNIQUE(A2:A100)=UNIQUE(A2:A100)The formula itself is correct. Fix the spill by unmerging cells in the output range: select the spill range, then Home > Merge & Center > Unmerge Cells.
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
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.
Click the formula cell. Excel shows a dashed border around the expected spill range and a tooltip identifying the obstruction. Use Home > Find & Select > Go To Special > Merged Cells within that range.
Unmerging removes the merge but leaves the content in the upper-left cell of the former merge. You will need to reformat. Use 'Center Across Selection' as a non-merging alternative for headers.
Google Sheets does not support merged cells blocking array expansion in the same way. Sheets auto-expands arrays but will show an 'Array result was not expanded' error if output cells are occupied by other data.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: