Error Fixes Guide · Prompt: “Fix #SPILL! error when summarizing a dynamic filtered list into a single comma-separated cell”

How to Fix #SPILL! Errors in Excel Dynamic Arrays

Verified by LiveFormulaLab Engineering Team • Updated November 2026

Fix #SPILL! errors in Excel FILTER, UNIQUE, XLOOKUP, and SUMIFS by clearing blocked cells, removing @ implicit intersection, or unmerging cells.

Verified Error Fixes Syntax

=TEXTJOIN(", ", TRUE, FILTER(A2:A6, B2:B6="Active"))

How This Formula Works (Step-by-Step)

Excel 365 displays #SPILL! when a dynamic array formula like FILTER, UNIQUE, or XLOOKUP returns multiple values but the cells below or beside it are occupied or inside an Excel Table.

Step 1: Click the dashed spill border to clear blocking text, spaces, or merged cells below the formula.

Step 2: When you want all matching items inside a single cell (or inside an Excel Table), wrap FILTER inside TEXTJOIN(", ", TRUE, ...) so it collapses to one scalar text value.

Formula Syntax & Arguments Breakdown

Resolves #SPILL! blocked-range errors either by clearing obstructing cells below/beside the spill zone or condensing multi-row array outputs into one cell via TEXTJOIN.

Argument / ClauseRequirementData TypeRole & Behavior
delimiter (", ")RequiredSeparatorCombines spilled items cleanly into one single cell when inline display is preferred.
ignore_empty (TRUE)RequiredBooleanDrops empty values inside the filtered array automatically.
array (FILTER(A2:A6, B2:B6="Active"))RequiredDynamic ArrayDynamic array expression that otherwise tries to spill across multiple cells.

3 Real-World Use Cases

  • Displaying all active team members on a project inside one Excel Table cell without #SPILL!.
  • Troubleshooting FILTER() formulas blocked by an empty space character below the cell.
  • Replacing accidental range-reference formulas (=A2:A6=B2) inside row-by-row checks.

Cross-Platform Equivalents

Excel
=TEXTJOIN(", ", TRUE, FILTER(A2:A6, B2:B6="Active"))
SQL
SELECT STRING_AGG(member, ', ') FROM team WHERE status = 'Active';
Python Pandas
', '.join(df[df['Status'] == 'Active']['Member'])

Common Mistakes & Pro Tips

Pitfalls & How to Fix Them

  • Mistake: Putting a dynamic array formula (=FILTER, =UNIQUE, =SORT, =XLOOKUP multi-col) inside an Excel Formatted Table (Ctrl+T) always throws #SPILL!.

    Fix: Move dynamic array formulas outside structured Excel Tables, or aggregate them into a single scalar value with TEXTJOIN / SUM.

  • Mistake: A single invisible space character in a cell below the formula blocks the entire spill rectangle.

    Fix: Click the #SPILL! warning icon > "Select Obstructing Cells" and press Delete to clear hidden spaces.

  • Mistake: Merged cells anywhere inside the target spill range block Excel dynamic arrays completely.

    Fix: Unmerge all cells in the output area and use "Center Across Selection" formatting instead.

Engineering Pro Tips

  • Click the dashed blue spill border to preview the exact size Excel needs before clearing adjacent notes or totals.
  • Reference an entire dynamic spill range dynamically in downstream formulas using the hash operator: =COUNTA(E2#).
  • Use =@Formula only if you intentionally want legacy single-value intersection instead of spilling.

Frequently Asked Questions

Why does #SPILL! happen inside a formatted Excel Table (Ctrl+T)?
Excel Tables do not support multi-cell spilled arrays. Either move the formula outside the Table or wrap it in TEXTJOIN/INDEX/SUM.
The cells below my formula look empty—why does it still say #SPILL!?
A blocking cell may contain a single space (" ") or an empty formula (""). Select the spill zone and press Delete.
Can merged cells cause #SPILL!?
Yes. Dynamic arrays cannot spill across merged cells; unmerge the output range or choose Center Across Selection.

Related Formulas & Guides