Editing a Spilled Array Returns #REF! in Google Sheets

Typing into a spilled array in Google Sheets shows no dialog. The formula cell becomes #REF! because it would overwrite the value you just typed.

本文目錄

You type a replacement into one cell of a spilled FILTER result, press Enter, and no dialog appears. The formula cell turns to #REF!. The hover text, titled Error, is: Array result was not expanded because it would overwrite data in E3. The card also has a Fix button. The value you typed stays in E3.

That is the Google Sheets behavior this page is about. The wording “You can’t change part of an array” did not appear in this file — not as a dialog, a toast, or hover text.

The UI checks used this short playlist in A1:B6:

Title分類
Moon DustLate Signal
Red FernEarly Bird
Blue DoorLate Signal
Iron SkyEarly Bird
Quiet TideLate Signal

=FILTER(A2:A6,B2:B6="Late Signal") in E2 spilled Moon Dust, Blue Door, and Quiet Tide into E2:E4. After Test was typed into E3, E2 showed #REF!, E3 showed Test, and E4 was cleared:

Google Sheets cell E2 showing #REF! after Test was typed into E3, with the hover text Error: Array result was not expanded because it would overwrite data in E3 and a Fix button.
Screenshot: Google Sheets, Nov 2026

Undo restored the original three-title spill.

Pasting into a spilled cell follows the same path. Copying Early Bird from B3 and pasting it into E3 showed no dialog, only the small Paste-options clipboard icon. E2 became #REF! with the same hover text, and E3 held Early Bird.

This is the same #REF! message described in Array result was not expanded. That page is about a formula that cannot spill because something already sits in the way. Here the FILTER had already spilled successfully. Typing or pasting into one of its output cells created the blocker. The spill error in a table article covers a different layout issue.

Delete on one spilled cell does nothing

Selecting E3 alone and pressing Delete left the spill unchanged: E2 still showed Moon Dust, E3 still showed Blue Door, and E4 still showed Quiet Tide. There was no dialog. The same no-op happened on a second try.

To remove the output, select the whole spill, including the formula cell — here E2:E4 — and press Delete. That cleared E2:E4 and removed the formula, again with no dialog.

Change the source, or change the formula cell

If a spilled title is wrong, edit the source or the formula in the top cell, not one output cell.

A larger playlist in a second file was used for those repairs. A1:C10 held nine tracks, and =FILTER(A2:A10,B2:B10="Late Signal") in E2 spilled four titles: Copper Moon, Lantern Weather, Small Hours, and Silver Antenna.

TrackShowMinutes
Copper MoonLate Signal4
Paper SatellitesPier 6 Request6
Blue FrequencyMorning Static3
Lantern WeatherLate Signal5
Quiet CurrentNight Transit7
Small HoursLate Signal4
Glass HorizonPier 6 Request8
Signal BloomMorning Static5
Silver AntennaLate Signal6

E3 displayed Lantern Weather, which lives in A5. After A5 was changed to Lantern Window, the same FILTER returned Copper Moon, Lantern Window, Small Hours, and Silver Antenna. The formula in E2 was not edited.

If the source title is right but the wrong rows are included, edit E2. Replacing the condition with Pier 6 Request:

=FILTER(A2:A10,B2:B10="Pier 6 Request")

returned Paper Satellites in E2 與 Glass Horizon in E3, in source order. The previous four-row spill was replaced by those two titles.

To drop Small Hours from a Late Signal list, change the show in B7. After B7 was set to Night Transit, the original FILTER shrank to Copper Moon, Lantern Weather, and Silver Antenna.

Clearing the formula in E2 removed the entire spill and left the playlist in A1:C10 in place.

UNIQUE follows the same rule. =UNIQUE(A2:A10) in G2 first spilled all nine titles. After A3 was changed to Copper Moon, matching A2, the spill shrank to eight titles and no longer listed Paper Satellites.

A static copy can be edited by hand

If you need a list you can correct cell by cell, copy the spilled values into empty cells as ordinary values, not as another live formula. The four Late Signal titles were placed in K2:K5, then K3 was replaced with Midnight Echo. That edit stayed, and the other three titles were unchanged. The copy will not update when the playlist changes.

Use one formula per row when a cell must stay editable

An array is a poor fit when individual output cells have to remain editable. A one-row formula does not create a multi-cell spill.

=IF(B2="Late Signal",A2,"")

returned Copper Moon. Filled down the column, the Late Signal rows returned Lantern Weather, Small Hours, and Silver Antenna, and the other rows displayed blanks. Each row has its own formula, so replacing one result does not block a spilled block. The cost is the blanks, and a typed-over cell no longer follows the source.

A cleaner pattern keeps the original title in column A and any manual replacement in column D:

=IF(D2<>"",D2,A2)

With Midnight Echo in D2, this returned Midnight Echo. With D2 empty, it would return the title in A2. For more on array-wide versus row-by-row formulas, see ARRAYFORMULA vs MAP and LAMBDA.

When a result will not change the way you expect, look at the formula cell at the start of the spill, not only at the cell you clicked. In the larger playlist, E3 showed Lantern Weather, but the formula lived in E2.

Oscar

寫 Excel 與 Google Sheets 的公式和排錯。

Google Sheets, 19 November 2026. API tests were run in a new private unshared spreadsheet (locale en_US, 1000-row grid); formulas were entered as user input through the Sheets API, and error text was read from the Sheets API error message. Desktop UI tests were run the same day in a separate new private unshared spreadsheet with the English Sheets interface. In the UI file, FILTER(A2:A6,B2:B6="Late Signal") in E2 spilled Moon Dust, Blue Door, and Quiet Tide into E2:E4. Typing Test into E3 and pressing Enter showed no dialog or toast; E2 became #REF!, with the hover text "Array result was not expanded because it would overwrite data in E3." and a Fix button; E3 held Test, and E4 was cleared. Ctrl+Z restored the original spill. Pressing Delete on E3 alone, twice, left the spill unchanged. Pasting Early Bird from B3 into E3 also showed no dialog (only the Paste-options clipboard icon); E2 became #REF! with the same hover text, and E3 held Early Bird. Selecting E2:E4 and pressing Delete cleared those cells and removed the formula, with no dialog. In the API file, FILTER(A2:A10,B2:B10="Late Signal") in E2 spilled Copper Moon, Lantern Weather, Small Hours, Silver Antenna into E2:E5. UNIQUE(A2:A10) spilled nine distinct titles. Writing New Track into E3 through the API was accepted; E2 then returned #REF!, "Array result was not expanded because it would overwrite data in E3." (the API text has two spaces before E3). An empty-string write into E3 still blocked the spill; fully clearing E3 restored the four-title FILTER. Changing A5 to Lantern Window updated E3 to Lantern Window. Changing B7 from Late Signal to Night Transit shrank the FILTER output to Copper Moon, Lantern Weather, Silver Antenna. Replacing the E2 formula with FILTER(...,"Pier 6 Request") returned Paper Satellites, Glass Horizon. After A3 was changed to Copper Moon, UNIQUE spilled eight titles and no longer included Paper Satellites. IF(B2="Late Signal",A2,"") returned Copper Moon; the same pattern down the column returned Lantern Weather, Small Hours, and Silver Antenna on the Late Signal rows and a blank display on the other rows. IF(D2<>"",D2,A2) returned Midnight Echo when D2 held Midnight Echo. Ordinary values copied into K2:K5 could be edited: K3 accepted Midnight Echo and the other three values stayed put. Clearing the formula in E2 removed the entire spill. Excel was not run.

本主題下一篇:表格錯誤與動態陣列 INDIRECT #REF! Invalid Reference in Google Sheets