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.

For details and examples, see: Dynamic Array Formulas in Excel

Dynamic Arrays are only available in Office 365.