Above: Using the FILTER function to return multiple matches on "red".

In fall 2018, Microsoft announced a new feature in Excel called "dynamic array formulas". In a nutshell, this feature allows formulas to return multiple results to a range of cells on the worksheet based on a single formula entered in one cell. This behavior is called "spilling" and results appear in a "spill range". All results are dynamic – if source content changes, the results dynamically update to stay in sync.

To leverage this feature, Microsoft also released new dynamic array functions:

Function Purpose
FILTERFilter data and return matching records
RANDARRAYGenerate array of random numbers
SEQUENCEGenerate array of sequential numbers
SORTSort range by column
SORTBYSort range by another range or array
UNIQUEExtract unique values from a list or range
XLOOKUPModern replacement for VLOOKUP
XMATCHModern replacement for the MATCH function

These functions make many long-standing and difficult problems in Excel much easier.

Dynamic Arrays are available in Excel 2021+ and Excel 365.

Support Exceljet

Many websites (including Exceljet) have lost over half their traffic in the past year because of the crushing impact of AI on web searches. Exceljet is still at it, publishing free content each week. If you find Exceljet helpful, you can support the site and go ad-free with the Exceljet Lifetime Pass. One payment, no subscription, and ads are gone forever. Plus, you get our Excel Shortcuts video course as a thank you.

Get the Lifetime Pass