FormulaSurge
All articles

excel-errors

#SPILL! Error in Excel

What the #SPILL! error means and six fixes - blocked spill range, Tables, whole-column references, merged cells and unknown spill size.

  • spill
  • dynamic arrays
  • excel errors
  • spill range
3 min readBy
#SPILL! Error in Excel

Dynamic array functions such as FILTER, UNIQUE, SORT and SEQUENCE return several values that spill into neighbouring cells. When Excel cannot write those values, the formula cell shows #SPILL!. The warning icon next to it tells you which of the causes below applies.

The six causes, and the fix for each

1. Spill range isn't blank

Something sits where the results would go. Use Select Obstructing Cells, then clear or move it.

2. Spill range in table

Tables do not support spilled arrays. Put the formula beside the Table, or convert the Table to a range.

3. The result runs past the edge of the sheet

Usually a whole-column reference: =A:A*2 tries to return over a million rows. Use A2:A500, a Table column, or the trim reference A:.A, which stops at the last used row (see TRIMRANGE and trim references).

4. Merged cells

Unmerge any merged cells in the spill range.

5. Spill range is unknown

The size of the result keeps changing as Excel calculates - often a volatile function such as RANDARRAY or OFFSET feeding the array size. Make the size come from a stable cell.

6. Out of memory or extremely large result

Reduce the range the formula works on, or move the heavy step into Power Query.

Working with spill results

Refer to the whole result with a spill reference such as =E2# - for example as the source of a drop-down list. More on spilling in Dynamic arrays: the Excel feature you didn't know you had.

Still stuck?

Paste the formula into the free Excel Error Solver, or send it to the free Formula Clinic. Quick fixes get a free written quote (Excel error fixing). All guides are in the Excel error library.

FS

Written by

Independent Excel practice · 10+ years of hands-on Excel work

Excel specialists in Power Query, Power Pivot, VBA and financial modeling. The patterns on this page are the same patterns we build with - fixed scope, fixed price, named owner. About FormulaSurge. Stuck on a formula? Get a free fix.

Free tool · 10 sec · runs in your browser

Formula Explainer

Paste any formula and read it in plain English, step by step in the order Excel calculates it.

Open the tool

Related service

Need this built for your team?

See Spreadsheet Audit & Repair - fixed price in writing, built end-to-end. Not sure of the scope? A Scoping Sprint ($99 / ₹4,999) gives you an exact quote first.

Read more

Start here · Scoping Sprint

Know the exact price in 2 working days. $99, credited in full to your build.

Builds from $75, fixed in writing · Working draft in 5 days or your first payment back · Mutual NDA first if you want one

10+ years in ExcelNamed senior ownerFixed price, in writingDraft in 5 days or refundMutual NDA on request30-day warranty

Frequently asked

Questions readers ask most.

What does #SPILL! mean in Excel?

A dynamic array formula returned several values, but Excel cannot write them into the neighbouring cells - the spill range. The usual reasons are something already in those cells, the formula sitting inside a Table, merged cells, or a result too large for the sheet.

What does 'Spill range isn't blank' mean?

At least one cell where the results would go already holds something - a value, a formula, a space or even formatting that looks empty. Use 'Select Obstructing Cells' from the warning icon to find it.

Why does my old formula return #SPILL! after upgrading?

Older Excel quietly returned a single value from a formula like =VLOOKUP(A:A, ...). Microsoft 365 returns every result and tries to spill them. Point the formula at one cell (A2) or a limited range, or add @ for the old single-value behaviour.

Which Excel versions have #SPILL!?

Excel for Microsoft 365, Excel 2021 and later, and Excel for the web - the versions with dynamic arrays.

Start with a Scoping Sprint

Want this built for your team?

Send your requirements, a sample workbook or a screenshot. We reply within one working day, and the Scoping Sprint ($99 / ₹4,999) gives you the exact price in 2 working days, credited in full to the build.

  • Written scope and fixed price before any build work starts
  • Working draft in 5 working days or your first payment back
  • Recorded walkthrough and 30-day warranty at handover
  • Mutual NDA on request
Replies within one working day, usually the same day

Calls 9am–7pm IST, Mon–Sat · How a project works

Built for teams in

Industries and cities this work is set up for

How we work

Six rules every FormulaSurge project runs on.

Not slogans. Operating rules - the same six on every dashboard, audit, macro and model.

Excel workbook with a sales table and a rising chart15% OFF

Welcome offer

15% off your first project

15% off the build fee of your first project. Mention it when you book; the Scoping Sprint is still credited in full.

Start with the $99 Scoping Sprint: a fixed price for your build in 2 working days.

Not ready yet? · Free

Free 10-minute Excel audit

Seven checks on your workbook, results in writing within one working day.