How to use dynamic array formulas in Excel

Updated · DeskHowTo

In Excel for Microsoft 365 / Excel 2021–2024 (verified 2026-10-24), enter a formula that returns multiple values (for example =UNIQUE(A2:A100) or =FILTER(A2:C100,C2:C100="Open")) in one cell and press Enter — results spill into blank cells below/right. Edit only the top-left cell; clear blockers if you see #SPILL!. Reference the whole spill with A2# (spilled-range operator).

Dynamic arrays replace many legacy Ctrl+Shift+Enter array formulas. They do not work inside Excel Tables the same way — put spills on a normal range beside your table.

Jump to

Applies to Excel for Microsoft 365, Excel 2021/2024, Excel for Mac and Excel for the web with dynamic arrays. Older Excel without dynamic arrays will not spill — use legacy approaches there.

Write a spilling formula and fix #SPILL!

Spill a unique list

  1. Click an empty cell with clear space below.
  2. Type =UNIQUE(A2:A100) and press Enter.
  3. Confirm Excel filled a vertical list of distinct values.

Filter rows with FILTER

  1. Try =FILTER(A2:D100, C2:C100="Open") to return matching rows.
  2. Combine with SORT: =SORT(FILTER(...), 2, 1) when your Excel build supports nested dynamic arrays.
  3. Leave the spill range clear of other data.

Reference and repair

  1. Sum a spill with =SUM(A2#) using the spilled-range operator.
  2. If #SPILL! appears, clear or move obstructing cells (or spill past the sheet edge / merged cells).
  3. Do not paste values over the spill unless you intend to break the formula.

Our take: spill beside Tables, not inside them

Keep raw data in an Excel Table; put FILTER/UNIQUE outputs on a dashboard sheet so spills have room.

If it fails

  • #SPILL!: something blocks the output range — clear it, unmerge cells, or move the formula.
  • #NAME?: workbook opened in Excel that lacks the function.
  • Formula in a Table column misbehaves: move dynamic arrays outside structured tables.
  • Legacy CSE habit: you do not need Ctrl+Shift+Enter for dynamic array Excel.

Frequently asked questions

What is an Excel dynamic array?

A formula that returns multiple values and automatically spills them into neighbouring blank cells.

What causes #SPILL!?

The spill range is blocked by non-empty cells, merges, or the edge of the worksheet.

What is the # operator in Excel?

The spilled-range operator — A2# refers to the entire spill started at A2.

Which functions spill?

Many newer functions such as FILTER, UNIQUE, SORT, SEQUENCE and RANDARRAY; some older functions spill when they return arrays.

Do dynamic arrays work in Excel for the web?

Yes in current Excel for the web with a supporting Microsoft 365 account.