ProofDrill

#SPILL!

A formula with several results has no room to show them.

The error, and the fix

What is each line of the order worth, and the whole order?

D2=B2:B4*C2:C4

RowABCDE
1ProductPriceQtyLine totalsOrder total
2Pens240
3Pads512check
4Ink96

D2 needs D2:D4 for its three results, but D3 holds a note. Clear D3 and they spill down; SUM turns them into one total.

Why it happens, and how to fix it

Cells in the way
Something sits where the results need to go, even a space or an old value. Select the formula to see a dashed border round the cells it needs, then clear them.
Merged cells
Results can’t spill into merged cells. Unmerge them, or move the formula.
Inside an Excel table
Formulas in a table can’t spill. Move the formula outside the table, or write one formula per row.
More results than the sheet has room for
A whole-column reference like A:A*2 written below row 1 needs more rows than the sheet has. Refer only to the rows you need, such as A2:A500*2.

Questions

How do I fix #SPILL! in Excel?

Select the formula: Excel outlines the cells it needs. Clear or move whatever is in them, unmerge merged cells, or move the formula out of a table.

Why don’t I see #SPILL! in older Excel?

Spilling arrived with Microsoft 365 and Excel 2021. Older versions don’t spill results, so they never show #SPILL!.

Stop it happening

  • Leave empty cells below and to the right of a formula that returns several results.
  • If you wanted one number rather than a list, wrap the formula in a function that returns one result, such as SUM.
  • Spilling arrived with Microsoft 365 and Excel 2021; older versions treat these formulas differently.

Other errors