Sub topic 11
Version compatibility and known limits
This chapter assumes you can write the core array formulas (SEQUENCE, FILTER, SORT, UNIQUE), know what a spill range is, and have met the #SPILL! error. It covers where dynamic arrays work, what happens when a workbook moves between versions, and the situations where spilling is not allowed.
Which versions support dynamic arrays
Dynamic arrays are part of Excel for Microsoft 365, Excel 2021 and later, Excel for the web, and the current Excel mobile apps. Excel 2019, 2016 and earlier do not have them.
In older versions, each formula returns one value, and a multi-cell result needs a legacy array formula entered with Ctrl+Shift+Enter. Functions such as FILTER, SORT, SORTBY, UNIQUE and SEQUENCE do not exist there at all.
What happens when a workbook opens in an older version
Excel stores a dynamic array formula in the file in a form that older versions can read. The result depends on the function.
- A formula that uses a new function, such as
=SORT(UNIQUE(A2:A20)), shows#NAME?after recalculation in an older version. The new function name is shown with a_xlfn.prefix. - A formula that spills but uses only old functions, such as
=B2:B6*C2:C6, opens as a legacy array formula. It is wrapped in braces and fixed to the original spill area. - Cached values display until the workbook recalculates, so errors may not appear right away.
How Excel marks formulas that may behave differently
When a formula written in an older version could now return several values, Excel inserts @ to keep its old behavior. For example, a legacy formula =A2:A6 becomes =@A2:A6. The @ makes the formula return one value, as it always did.
The reverse also occurs. If you open a workbook created in Microsoft 365 in an older version, formulas that spill may show an implicit intersection result, or @, where a full array was intended. Do not remove an @ that Excel added unless you want the formula to spill.
Known limits
Spilling cannot do everything. These limits apply:
| Limit | What it means |
|---|---|
| Excel tables | A spilling formula cannot be entered inside a table. Excel returns `#SPILL!`. Put the formula outside the table and refer to the table columns. |
| Merged cells | A spill range cannot overlap merged cells. |
| Blocked cells | Any non-empty cell in the spill area, including a space character, causes `#SPILL!`. |
| Data tables | Spilling formulas are not supported in what-if data tables. |
| Size | A spill range must fit on the sheet. A result that runs past the last row or column returns `#SPILL!`. |
| Volatile results | Functions such as `RAND` and `RANDARRAY` recalculate on every change, which can slow large spills. |
| Arrays of arrays | A cell cannot hold an array. Excel does not allow a formula to return an array whose items are themselves arrays. |
| Closed workbooks | A spill formula that refers to a closed workbook returns `#REF!` until that workbook is opened. |
Two further points are worth remembering. A spill range can only grow into empty cells, so it never overwrites existing data. A spill formula also cannot be entered as a legacy array formula in a range that Excel already treats as a spill.
Checking compatibility before sharing
- Open File > Info > Check for Issues > Check Compatibility.
- Read the report, which lists formulas that use functions not supported in earlier versions.
- Replace those formulas, or paste their results as values if the recipient only needs the numbers.
A workaround for old versions is to build the same result with INDEX, SMALL, IF and ROW inside a legacy array formula. This is harder to read and slower, so use it only when you must support old Excel.
Exercise
A colleague on Excel 2019 opens your workbook, which has =SORT(UNIQUE(A2:A20)) in D2. What do they see after the workbook recalculates, and what are two ways you could avoid the problem?
Show answer
They see #NAME?, because SORT and UNIQUE do not exist in Excel 2019. You could paste the results as values before sharing, or rewrite the logic with older functions in a legacy array formula. Running Check Compatibility would also have flagged the issue.
Exercise
You type =SEQUENCE(5) in a cell inside an Excel table and get #SPILL!. Why, and how do you fix it?
Show answer
Tables cannot contain spilling formulas. Move the formula to a cell outside the table, and refer to the table's columns from there if needed.