Sub topic 4
The anchor cell and the spill range
This chapter assumes you can enter formulas, use A1-style references, and have Excel for Microsoft 365 or Excel 2021 or later. You will learn how to tell which cell owns a spill, how far the spill extends, and what you can and cannot edit inside it.
One formula, one owner
When a formula returns several values, Excel writes the formula in a single cell and fills the cells around it with results. The cell that holds the formula is the anchor cell. It is always the top-left cell of the spill. The filled area is the spill range.
Enter this in an empty cell such as E2:
=SEQUENCE(3,4)E2 is the anchor. The spill range is E2:H4, three rows by four columns, counting 1 to 12 across each row.
Only the anchor contains a formula. The other eleven cells show values that the anchor produces. Click one of them and the formula bar shows the anchor's formula in gray. Gray means you can see the formula but cannot edit it from there.
How Excel decides the size
You do not set the size of a spill range. Excel calculates the formula, looks at the shape of the resulting array, and writes that shape starting at the anchor. A 5-row result fills five rows. A 3-by-4 result fills a 3-by-4 block.
Because the size comes from the result, it can change. Suppose this formula is in E2:
=FILTER(A2:C20,C2:C20>100,"No matches")If five rows pass the test today and eight pass tomorrow, the spill range grows from five rows to eight. If the source data shrinks, the spill range shrinks. You never resize anything by hand.
Seeing the boundary
Click any cell inside a spill range. Excel draws a thin blue border around the whole range. This border is the quickest way to check where a spill starts and ends. If you click a cell outside the border, the formula is not part of that spill.
What you can edit
The rules follow from the anchor owning everything:
- Edit the anchor. Change the formula in the anchor cell and the whole spill range updates.
- Delete the anchor. Press Delete on the anchor and every value in the spill range disappears.
- Do not overwrite a spilled cell. Typing into a non-anchor cell of an existing spill does not change that cell alone. The new entry blocks the spill and the anchor shows
#SPILL!. Later chapters cover this error in detail. - Copy a spilled cell. Copying a non-anchor cell pastes its value, not the formula.
Anchors and plain references
A spill range is not a normal reference. A reference such as E2:H4 points at fixed cells. If the spill grows to row 6, that reference still covers rows 2 to 4 only. This mismatch is why Excel offers a separate way to refer to the live extent of a spill, which the next chapters introduce with the # operator.
| Item | Contains a formula | Can be edited directly |
|---|---|---|
| Anchor cell | Yes | Yes |
| Other spill cells | No, values only | No |
| Cells outside the spill | Whatever you put there | Yes |
Exercise
You enter =SEQUENCE(4,2) in cell D5. Which cell is the anchor, and what is the spill range? What happens to the spill range if you delete the contents of D5?
Show answer
The anchor is D5, because it holds the formula and is the top-left cell. The result has 4 rows and 2 columns, so the spill range is D5:E8. If you delete D5, the formula is gone, so all eight values disappear and the range is empty.