Sub topic 1
What changed with dynamic arrays
Prerequisites
This chapter assumes you can already do the following:
- Enter and edit formulas, and read the formula bar.
- Use cell and range references such as
A1andA1:A10, in relative and absolute form. - Use basic functions such as
SUMandIF. - Open Excel for Microsoft 365 or Excel 2021 or later. Excel 2019 and earlier do not have dynamic arrays, so the examples will not behave as described there.
The old model: one formula, one cell
Before dynamic arrays, a normal formula returned exactly one value and lived in exactly one cell. If you wanted a column of results, you wrote the formula once and filled it down. Each copy was an independent formula that Excel calculated separately.
A formula that referred to a range where a single value was expected did not fail. Excel silently reduced the range to one value, using a rule called implicit intersection. If the formula sat in the same row (or column) as one cell of the range, Excel used that cell. If it sat anywhere else, the result was #VALUE!.
Real multi-cell results needed a legacy array formula. You selected the whole output area first. Then you typed the formula and confirmed it with Ctrl+Shift+Enter. Excel wrapped the formula in curly braces, for example {=B2:B6*C2:C6}. The result was a fixed block. You could not edit or delete part of it, and it did not resize when the data changed.
The new model: one formula, many values
In dynamic array Excel, any formula can return an array, which is a rectangular set of values. When the result has more than one value, Excel writes the values into the neighboring cells. This is called spilling, and the filled area is the spill range.
You type the formula in one cell and press Enter. Excel works out the size of the result and fills the cells below and to the right. No selection and no Ctrl+Shift+Enter are needed.
Three things changed together:
- Every formula is evaluated as an array formula. Ranges are no longer reduced to a single value unless the formula forces it.
- The result decides the footprint. The formula does not need to know the output size in advance. Excel measures the result each time it calculates.
- Spill ranges resize. If the source data changes and the result gets longer or shorter, the spill range grows or shrinks on its own.
A first example with SEQUENCE
SEQUENCE generates numbers, so it shows spilling with no source data. Enter this in one cell:
=SEQUENCE(5)The formula returns the numbers 1 to 5 and spills them down five cells. Only the first cell, the anchor, holds the formula. The other four cells show values. If you click one of them, the formula bar shows the anchor's formula in gray, and you cannot edit it there.
Give SEQUENCE a second argument and the result gets columns:
=SEQUENCE(3,4)This spills a grid of 3 rows and 4 columns filled with 1 to 12. The numbers count across each row before moving down to the next. Rows come first in the argument order, then columns.
Ranges as arrays
The most common everyday change is arithmetic on ranges. Suppose column B holds quantities in B2:B6 and column C holds unit prices in C2:C6. To get line totals, you used to write =B2*C2 and fill down. Now you can write one formula:
=B2:B6*C2:C6Excel multiplies the two ranges item by item, pairing the first cell with the first cell, the second with the second, and so on. It returns five values, which spill into five cells. There is nothing to fill down, and if you add the sixth row to the ranges later, you edit one formula, not a column of them.
This pairing works when both ranges have the same size. The next chapters cover what happens when sizes differ. The main point here is that the formula's result is a five-value array and the cells are only where Excel displays it.
Seeing the engine's decision
The diagram below shows what Excel does when you press Enter on a formula in dynamic array Excel.
The #SPILL! branch is a new failure mode that did not exist before. A spill needs empty cells, and if something blocks them, the formula cannot display its result. Later chapters in this tutorial cover the causes and fixes. For now, remember that spilling is something Excel checks every time it calculates, not something you set up once.
What happens to old formulas and old workbooks
Dynamic array Excel has to open workbooks written for the old engine without changing their results. Excel solves this with the @ operator, which forces implicit intersection. When it loads an old formula that could now spill, it inserts @ where the old engine would have reduced a range to one value. For example, a legacy formula =A2:A6 entered in one cell is shown as:
=@A2:A6The @ operator means "give me one value, as the old engine did". The formula returns a single value instead of spilling the range. You usually do not need to add or remove these by hand, but you will see them in older files. The chapter on @ and legacy arrays covers them in detail.
Legacy Ctrl+Shift+Enter formulas keep their curly braces in the formula bar. They still work as fixed blocks. They are not converted automatically. If you edit one and press only Enter, it becomes a dynamic formula.
Practical consequences
The change affects how you build and read worksheets:
- Fewer formulas to maintain. One anchor formula replaces a whole filled-down column, so there is only one formula to audit and change.
- Layout planning matters. A spill range needs free space. Leave room below and beside any formula that may return many values, and do not put notes or totals directly under one.
- Formulas can return different sizes over time. Anything that depends on a spill result, such as a sum or a chart, must handle size changes. Excel gives a way to refer to the whole current spill range, which a later chapter introduces.
- Results exist only in the anchor's formula. You cannot delete or overwrite one cell inside a spill range. To change the result, edit the anchor, or delete the anchor to clear the whole range.
- Sharing needs care. Colleagues on Excel 2019 or earlier see dynamic array formulas as legacy array formulas or as errors, because their engine lacks the new behavior.
Common mistakes at this stage
- Filling down a spilling formula. If
=B2:B6*C2:C6already spills five values, copying it into the cells below is unnecessary and usually causes#SPILL!, because the copy collides with the spill range. - Typing over a spilled cell. Overwriting a cell in a spill range blocks the spill, and the anchor shows
#SPILL!. Clearing the blocking cell restores the result. - Assuming a formula returns one value. A formula you would have read as a single-value formula, such as
=A2:A6*2, now spills. Check for a blue outline around the result when you select the anchor. It marks the spill range. - Expecting the formula to appear in every cell. Only the anchor stores it, so searching for formulas with Go To Special finds one cell per spill, not one per displayed value.
Summary of the shift
| Question | Before dynamic arrays | With dynamic arrays |
|---|---|---|
| Results per formula | One value per cell | One value or many |
| Multi-cell results | Select area, Ctrl+Shift+Enter | Press Enter in one cell |
| Range in a single-value spot | Implicit intersection, silently | Spills, unless `@` is used |
| Result size | Fixed by the selection | Set by the result, recalculated |
| Editing part of the result | Not allowed | Not allowed; edit the anchor |
| New failure mode | None | `#SPILL!` when cells are blocked |
Exercise
A colleague enters =B2:B6*C2:C6 in cell E2 in Excel for Microsoft 365, and it spills five values. Then they write the same formula in an Excel 2019 workbook, in cell E2, with only Enter. What does the old engine do with the ranges, and what would a cell outside rows 2 to 6, such as E10, show?
Show answer
Excel 2019 applies implicit intersection. In E2 it uses row 2 of each range and returns the single value B2*C2. In E10, which is outside rows 2 to 6, there is no matching row, so it returns #VALUE!. To get all five values in Excel 2019 you would need a legacy array formula entered with Ctrl+Shift+Enter over a selected block of five cells.
Exercise
You enter =SEQUENCE(3,4) in A1. Which cells does the spill range cover, and what value is in C2?
Show answer
The spill range covers A1:D3, which is 3 rows by 4 columns. The numbers count across each row, so row 1 holds 1 to 4, row 2 holds 5 to 8, and row 3 holds 9 to 12. C2 is in the second row, third column, so it holds 7.