#SPILL!
A formula with several results has no room to show them.
- Excel error
The error, and the fix
D2=B2:B4*C2:C4
| Row | A | B | C | D | E |
|---|---|---|---|---|---|
| 1 | Product | Price | Qty | Line totals | Order total |
| 2 | Pens | 2 | 40 | ||
| 3 | Pads | 5 | 12 | check | |
| 4 | Ink | 9 | 6 |
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.