FormulaCraft

Fix the Array result error

Excel & Google Sheets
Topic:SaaS metrics

What Array result means

In Google Sheets, when a formula returns multiple values — such as UNIQUE, FILTER, or an ARRAYFORMULA — it attempts to write each value into its own adjacent cell. If any of those destination cells are already occupied by data or another formula, Sheets cannot expand the array and shows the 'Array result was not expanded because it would overwrite data in ...' error.

Common causes

Example fix

Broken
=UNIQUE(A2:A50)
Fixed
=UNIQUE(A2:A50)

The formula is correct. Clear the cells in the column below the formula cell where the results need to expand; the error disappears once the output zone is empty.

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How to fix it

  1. 1Click the error cell — Sheets highlights the blocking cell(s) in the error message. Clear those cells' content.
  2. 2Move the array formula to an empty area of the sheet with no data to its right or below for the expected number of output rows.
  3. 3Check for cells that appear empty but contain spaces: select them and press Delete (not Backspace) to ensure they are truly empty.
  4. 4Unmerge any merged cells in the expansion zone: Format > Merge cells > Unmerge.
  5. 5If the array is inside an ARRAYFORMULA that already handles an entire column, remove the outer ARRAYFORMULA and let the inner function (FILTER, UNIQUE) expand natively.

Stop hunting errors by hand.

Upload your spreadsheet and the Auditor flags every Array result and broken formula at once — or paste this one formula and get the fix explained.

Frequently asked

How many rows should I clear below my array formula?

Clear at least as many rows as the maximum number of results you expect. For safety, leave the entire column below the formula empty and put unrelated data in a different column.

Does this error also appear in Excel?

Excel uses #SPILL! for the same concept. The underlying cause is identical — output cells are occupied — but the error code and wording differ.

Can I force an array to overwrite existing data?

No. The array expansion is blocked precisely to prevent accidental data loss. Clear the target cells intentionally if you want the array to fill them.

More on SaaS metrics

See all →

Related formulas

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: