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
Got the same error in multiple cells? Upload your whole sheet and the Auditor will flag every #SPILL! and broken formula at once — free. Pro plans (₹199/$4.99/mo) can apply the verified fixes and download the corrected file in one click.
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: