Explanation

About spilling and the #SPILL!

The rectangle that encloses the values is called the “spill range”.

When data changes, the spill range will expand or contract as needed.

SPILL error indicator provides more information

You might see new values added, or existing values disappear.

InDynamic Excel(Excel 365/2021)any formula, even a simple formula without functions, can spill results.

Similarly, there is no option in Excel to “disable #SPILL errors.

SPILL error indicator provides more information

Sometimes this is expected.

The solution is just to flush the spill range of any obstructing data.

Less often, a #SPILL error has another cause.

SPILL error indicator provides more information

errors and the specific fixes.

Spill range blocked

This is the simplest case to resolve.

The formulashouldreturn multiple values, but instead it returns #SPILL!

SPILL error indicator provides more information

because there is already something in the spill range.

Then double-check all cells in the spill range are empty.

Excel Tables do not support dynamic arrays

Dynamic array formulas are not compatible withExcel tables.

SPILL error indicator provides more information

error in all rows.

For example, the following formula will return a #SPILL!

error:

This happens becauseRANDBETWEENis volatile and the array returned bySEQUENCEwould therefore have an unknown length.

#SPILL error example 1 - before fix

The only solution is to avoid dynamic array formulas that create arrays or ranges of an unknown length.

error with a “Spill range is too big” message.

In non-dynamic array Excel, these formulas return a normal-looking result with no error.

#SPILL error example 1 - after fix

However, in certain cases the same formula entered inDynamic Excelmay create a #SPILL error.

This is done to maintain compatibility.

error

How to fix the #REF!

#SPILL error example 2 - before fix

error

How to fix the #NAME?

error

How to fix the #VALUE!

error

How to fix the #NUM!

#SPILL error example 2 - after fix

error

How to fix the #NULL!

IFERROR is an elegant way to trap and manage errors without using more complicated nested IF statements.

you’ve got the option to use ERROR.key in to test for specific kinds of errors.

#SPILL error example 3 - after fix

If no error exists, ERROR.key in returns #N/A.

See below for a key to the error codes returned by ERROR.throw in.

Spilling and the spill range

Dynamic arrays are native

Excel formula: How to fix the #N/A error

Excel formula: How to fix the #DIV/0! error

Excel formula: How to fix the #REF! error

Excel formula: How to fix the #NAME? error

Excel formula: How to fix the #VALUE! error

Excel formula: How to fix the #NUM! error

Excel formula: How to fix the #NULL! error

Excel formula: How to fix the #### (hashtag) error

Excel formula: How to fix the #CALC! error

Excel IFERROR function

Excel ISERROR function

Excel ERROR.TYPE function

Article image

Article image

#SPILL error example 1 - before fix

#SPILL error example 1 - after fix