
📎 This article includes 1 downloadable practice file ↓
In this article
Since Excel 365 and 2021, a formula can return a whole list. Type it once and the results spill into the cells below. No more copying formulas down, no more helper columns.
The five functions
| Function | Example | Gives |
|---|---|---|
| UNIQUE | =UNIQUE(Sales!C2:C81) |
Each rep once |
| SORT | =SORT(UNIQUE(Sales!E2:E81)) |
Cities A-Z |
| FILTER | =FILTER(Sales!A2:L81, Sales!L2:L81="Overdue") |
Every overdue invoice, all columns |
| SORTBY | =SORTBY(Reps, Totals, -1) |
Reps by sales, high to low |
| SEQUENCE | =SEQUENCE(12) |
1 to 12 |
FILTER with several conditions
Multiply conditions for AND, add them for OR:
=FILTER(Sales!A2:L81, (Sales!H2:H81="Electronics") * (Sales!D2:D81="South"), "None")
=FILTER(Sales!A2:L81, (Sales!D2:D81="North") + (Sales!D2:D81="East"))
The last argument is what to show when nothing matches; without it you get #CALC!.
A live leaderboard in two formulas
E2: =UNIQUE(Sales!C2:C81)
F2: =SUMIFS(Sales!K2:K81, Sales!C2:C81, E2#)
G2: =SORTBY(E2#, F2#, -1)
E2# means “the whole spilled range starting at E2”. When a new rep appears in the data, every list grows by itself.
#SPILL!; click the error for a “Select obstructing cells” option.Common mistakes
- Referring to E2:E8 instead of E2#. The fixed range won’t grow when the list does.
- Spilling inside an Excel Table. Tables don’t allow spills; put dynamic formulas next to the table.
- Sharing with Excel 2016 users. They’ll see
_xlfn.FILTERerrors.
Practice
Download this lesson’s workbook below. Most answers are a single number built from a dynamic array, so the Check column can test them. Type your formula in the yellow column; the Check column turns green when the result matches, and the Answers sheet has a working formula for every task.
📎 Practice files for this article
- 📗Lesson 4 practice workbookSales register + 8 dynamic-array tasks.⬇ XLSX · 19 KB
Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.
Stuck on a step? Ask a question and the AI answers using this article.