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 Dust | Late Signal |
| Red Fern | Early Bird |
| Blue Door | Late Signal |
| Iron Sky | Early Bird |
| Quiet Tide | Late 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:
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.
| Track | Show | Minutes |
|---|---|---|
| Copper Moon | Late Signal | 4 |
| Paper Satellites | Pier 6 Request | 6 |
| Blue Frequency | Morning Static | 3 |
| Lantern Weather | Late Signal | 5 |
| Quiet Current | Night Transit | 7 |
| Small Hours | Late Signal | 4 |
| Glass Horizon | Pier 6 Request | 8 |
| Signal Bloom | Morning Static | 5 |
| Silver Antenna | Late Signal | 6 |
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.