Dynamic array formulas return more than one value and "spill" the results into the cells below or beside them automatically.
What is spilling?
Type =UNIQUE(A2:A100) in one cell. Excel fills as many cells as it needs with the unique values. You do not copy the formula down. The blue border around the results is the spill range.
The main dynamic functions
FILTER: returns rows that meet a condition.SORTandSORTBY: sort a list with a formula.UNIQUE: removes duplicates from a list.SEQUENCE: creates a list of numbers.XLOOKUP: can return several columns at once.
Example: a sorted list of unique customers
=SORT(UNIQUE(A2:A500))
The # spill operator
If the formula in E2 spills, refer to the whole result with E2#. For example, =COUNTA(E2#) counts the spilled items, and the count updates when the list grows.
#SPILL! error
This means something is blocking the spill area. Clear the cells in the way and the formula works.
Who can use them?
Dynamic arrays are in Microsoft 365, Excel 2021 and later. Older versions show them as plain formulas with errors.