The Excel message “You can’t change part of an array” means the cell you are trying to edit belongs to an array formula or to the output of a dynamic array formula. To fix it, edit or delete the formula at its source: select the entire range for a legacy array formula, or select the top-left formula cell for a dynamic array.
This is usually a protection rule, not a sign that the workbook is damaged. Excel treats an array result as a unit, so changing one result cell independently could make the displayed results inconsistent with the formula that created them.
What the error means
An array formula can calculate several results at once and place them in multiple cells. Excel therefore distinguishes between a formula cell and the cells that display its results. If you try to type into one of those result cells, Excel may stop the change and show this message.
The message most commonly refers to one of two situations. A workbook may contain a traditional, or legacy, array formula entered into a selected range. Alternatively, it may contain a dynamic array formula whose results spill automatically into nearby cells. The right fix depends on which kind you have; selecting just one output cell will not work in either case.
Do not confuse this message with #SPILL!. That error means Excel cannot place a dynamic array’s results in the cells it needs, often because something is blocking the spill range. “You can’t change part of an array” means Excel is preventing an edit to a cell that is already part of an array result.
Why legacy array formulas lock a range
Older Excel array formulas are entered into a range selected in advance. The formula calculates an array of values, and Excel associates the formula with the whole selected range. Even if you only want to correct one displayed value, that cell is not an independent formula or constant. Excel blocks editing a single member of the range.
These formulas are often called CSE formulas because they were traditionally confirmed with Ctrl+Shift+Enter on Windows. Excel may display braces around the formula in the formula bar to identify a legacy array formula. Do not type those braces yourself: they are an indicator, not part of the formula syntax. Workbooks created in older Excel versions can still contain these formulas when opened in Microsoft 365.
A legacy array can also be easy to overlook. It might be a short, familiar calculation, or it might be part of a larger workbook built years ago. If editing one cell gives the message even though you cannot see a formula in that cell, check whether it belongs to a formula range rather than assuming that the cell is simply blank or locked by sheet protection.
How dynamic array formulas work
In current Excel for Microsoft 365, many formulas can return multiple values and spill them into adjacent cells automatically. The formula itself is entered in one cell, called the anchor cell, usually at the top-left of the results. Other cells in the spill range display results but are not places where you can edit the formula or replace one result by typing over it.
For example, with a formula entered in A1, =SEQUENCE(3) returns 1, 2, and 3 in A1:A3. The formula belongs in A1; A2 and A3 are spill results. Trying to type a different value in A2 can produce the array-edit message. To change the sequence, edit A1. To remove the results, clear the formula in A1; the other displayed values disappear with it.
Dynamic array functions such as SEQUENCE, FILTER, SORT, and UNIQUE are available in Microsoft 365 and Excel 2021 or later. A workbook may also use a dynamic array result from a formula that is not one of those functions. The important clue is the relationship between the anchor formula and the cells it fills, not the function name alone.
How to identify the array range
Start by checking what kind of formula is present. Click a cell in the affected area and look at the formula bar. If the cell is part of a legacy array, Excel may show the same array formula for the range and braces may appear around it. If the cell is a dynamic spill result, locate the top-left cell that contains the actual formula; selecting a result cell often reveals that it is not the source to edit.
For a legacy array, Excel can select the complete array associated with the active cell. On Windows, use Home > Find & Select > Go To Special > Current array. Check the highlighted range before editing or deleting anything. If a larger range is selected than expected, cancel and inspect the workbook first.
For a dynamic array, look toward the top-left of the displayed results for the anchor formula. If the array is large or the source is not obvious, inspect nearby formulas and the worksheet layout. Do not assume that every adjacent value is part of the spill; the spill range is determined by the formula’s output and can change when the inputs change.
How to edit or remove a legacy array formula
If you need to change the formula, select its entire range before editing. You can use Go To Special as described above, or carefully select the complete known range with the mouse. Then edit the formula in the formula bar and confirm the change. In current Excel, a legacy array formula may still require Ctrl+Shift+Enter on Windows when you enter it; follow Excel’s behavior for that formula and range rather than selecting only one cell.
To remove a legacy array formula, select the entire array range and press Delete. You can also use Home > Clear > Clear Contents after selecting the full range. If you select only one member, Excel will refuse because the formula still occupies the range as a unit. Check that the correct cells are selected before clearing them, especially in a workbook with other data nearby.
If your goal is to make just one result editable, you must first stop treating the range as one formula result. One option is to replace the formula output with fixed values, which removes the link to the calculation and means those values will no longer update. Another is to rebuild the calculation so that the cells you want to edit are produced by separate formulas or are stored as independent inputs. Keep a copy of the original formula before making that structural change.
How to change a dynamic array result
For a dynamic array, select the anchor cell and edit its formula. You cannot replace one of the spilled results by typing into that result cell. Changing the formula or the source data may change the output, but the spill area itself is not a set of independent cells while the formula is active.
To remove the entire dynamic result, clear the anchor formula. If you want to keep the current displayed results but work with them as ordinary values, copy the results to a different area and use Paste Special > Values there. The copied values are no longer linked to the original formula. Be careful not to overwrite important data, and remember that the original spill will continue to update until you remove or change its anchor formula.
If you need one value to be independently editable while preserving the other results, consider changing the workbook design. For example, put manual overrides in a separate input column and have the calculation refer to those inputs, or use a formula that returns the desired results from separate source cells. A spill range is designed to be managed through its formula, not edited cell by cell.
Common problems and safe fixes
- You selected only one cell. For a legacy array, select the whole array; for a dynamic array, edit the anchor cell.
- You selected the wrong range. Use Current array for a legacy formula and verify the highlighted cells before deleting or replacing anything.
- You want to change only one displayed number. Copy the results as values to a separate area, or redesign the calculation to allow independent inputs. Editing one output directly is not supported.
- You see
#SPILL!instead. Look for content, merged cells, or other obstructions in the intended spill area. This is a placement problem, not an instruction to edit part of an existing array. - The worksheet may also be protected. Sheet protection can prevent edits for a different reason. If Excel reports a protection issue, check Review > Unprotect Sheet and follow the workbook owner’s access rules; removing protection does not change how array formulas work.
Before making a broad change, save a separate copy of the workbook. This is particularly useful when a legacy formula feeds other calculations or when converting results to values, because those edits can remove formulas and their ability to recalculate.
Excel for the web, Mac, and older versions
The core rule is the same in Microsoft 365 for Windows, Excel for Mac, and Excel for the web: do not edit an individual cell that is part of an array result. The location of commands and keyboard behavior can differ. The ribbon path given above is for Excel for Windows; if a command is not visible in another edition, use that edition’s search or help tools to locate the equivalent Go To Special or clear command.
Legacy CSE formulas can behave differently from modern dynamic arrays, and older versions may not support functions such as FILTER or SEQUENCE. A workbook containing newer formulas opened in an older edition may show compatibility problems or an unsupported-function error. If you are collaborating across versions, check which Excel edition the recipients use before replacing a legacy formula with a newer dynamic-array function.
On Mac, keyboard shortcuts can differ from Windows, and the exact key combination may depend on the keyboard and Excel version. The mouse and ribbon method is a practical alternative when a shortcut does not match. Excel for the web also has a more limited set of editing features than the desktop app, so open the workbook in desktop Excel if a particular legacy-array operation is unavailable in the browser.
Frequently Asked Questions
How do I change just one cell in an array formula?
You generally cannot edit one member of an active array result. Edit the entire legacy array formula, change the dynamic array’s anchor formula, or copy the results as values to another range and edit those independent values.
How do I find the cells in a legacy array formula?
Select a cell in the formula range, then on Windows choose Home > Find & Select > Go To Special > Current array. Excel highlights the array associated with that cell. Confirm the selection before clearing or replacing it.
Can I delete one result from a spilled formula?
No. Clear or change the formula in the spill’s anchor cell to change the output. If you need a result that can be edited independently, copy the displayed results as values to a separate range or change the workbook design.
Does this error mean my worksheet is protected?
Not necessarily. The message usually means the cell belongs to an array formula. Sheet protection is a separate restriction and typically produces a protection-related notice when you try to edit a locked cell.
Why does Excel show #SPILL! instead?#SPILL! means a dynamic array cannot place its output in the required cells, often because the destination range is obstructed. The array-edit message instead indicates that you tried to change a cell already controlled by an array result.
Related
- Cut, Copy, and Paste in Excel: Shortcuts and Steps
- Excel: Highlight the Bottom 10 Values in Red
- Pull Data Dumps With No Blank Rows in Excel
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Errors & fixes
- Excel YEAR Formula Not Working? Fix Dates and ErrorsIf the YEAR formula is not working, first check whether the cell contains a real Excel date rather…
- SUMPRODUCT Formula Not Working? Fix the Common CausesIf SUMPRODUCT is not working in Excel, first check that every range in the formula has the same…
- Google Sheets Freeze Rows Not Working? Fix the ViewIf frozen rows in Google Sheets keep scrolling away, open the correct sheet tab and choose View >…
- Lookup Value Not Working in Excel? Fix the CauseA lookup value usually fails in Excel because the lookup and source values do not match exactly, the…
- Excel Formula Not Working? Find and Fix Common ErrorsIf an Excel formula is not working, check that the cell contains a formula rather than text, confirm…
- Excel File Corruption Fix: Safe Recovery StepsTo fix a corrupted Excel file in Microsoft 365 for Windows, make a copy of it first, then…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.