Function Problems

How to Fix Excel Formula Spilling into Adjacent Cells

Jason MillerJason Miller Nov 10, 2026 869 views

Question details

The user wants to stop formulas from automatically returning multiple values into adjacent cells, creating non-editable spilled arrays.

How to Fix Excel Formula Spilling into Adjacent Cells
Product
Microsoft Excel
Device & OS
not provided
Scenario
Entering a formula that references a multi-cell range instead of a single cell for division or other calculations.
Observed behavior
The formula triggers dynamic-array spill behavior, returning multiple results into a spill range below or beside the formula cell where the adjacent cells appear gray and cannot be edited individually.
Before you start

Verify if your formula includes a range (like AT58:AT60) where a single cell reference (like AT58) is expected. If you only want a single result, you will need to adjust the formula references.

Solution 1Recommended

Change Array References to Single Cells and Fill Down

Modify the formula to calculate a single row and copy it down manually to avoid dynamic spilling.

In modern versions of Excel, using a range in a basic formula triggers a dynamic array. To return to the traditional calculation method, rewrite the formula to reference only a single row, then drag it down.

1
Select the origin cell

Click on the very first cell where the formula was entered (this is the only cell in the spill range that is actually editable).

2
Edit the formula

In the formula bar, change the range reference to a single cell reference. For example, change =AT58:AT60/O7 to =AT58/O7.

3
Press Enter

Press the Enter key. The formula will now calculate only one value, and the spill range will disappear.

4
Use the fill handle

Click and hold the small green square at the bottom-right corner of the cell, then drag it down to fill the formula into the cells below.

Change Array References to Single Cells and Fill Down
Independent Formulas: This method creates individual, editable formulas for each row rather than a single array, allowing you to modify specific rows later if needed.
Efficient Spreadsheet Management

Easily Manage Formulas and Arrays with WPS Spreadsheet

WPS Office Spreadsheet provides a clean, user-friendly interface for building formulas without confusing automatic spill errors. It is highly compatible with Microsoft Excel formats and functions, allowing you to manage your data effortlessly.

  1. 1. Open WPS Spreadsheet: Download and install WPS Office, then open your existing Excel workbook in WPS Spreadsheet.
  2. 2. Select the target cell: Click the cell where you want to perform your calculation.
  3. 3. Enter your formula: Type your standard formula referencing a single cell (e.g., =AT58/O7) and press Enter.
  4. 4. Fill the data: Hover over the bottom-right corner of the cell until the cross cursor appears, then drag down to populate the rest of the column cleanly.
Seamless handling of standard formulas without unexpected spill issues.100% compatibility with Microsoft Excel (.xlsx) files, arrays, and functions.Lightweight software that runs smoothly on older devices and operating systems.Free access to advanced data analysis, templates, and charting tools.
QA img-9

Frequently Asked Questions

Why are the spilled cells grayed out and uneditable in Excel?

In dynamic array formulas, only the top-left cell where the formula was originally entered contains the actual formula. The adjacent gray cells simply display the calculated spill results. Because they are driven by the parent cell, they cannot be manually edited.

How do I clear a spill range in Excel?

To clear the spill range, you must delete or modify the formula in the first (origin) cell. You cannot delete the spilled results individually. If you are getting a #SPILL! error, you need to clear any data that is blocking the spill area.

Is there a way to disable dynamic arrays in Microsoft Excel?

Dynamic array behavior is native to Microsoft 365 and Excel 2021 or later and cannot be globally disabled in the settings. However, you can prevent spilling on a case-by-case basis by using the @ operator before range references to force implicit intersection.

What does the #SPILL! error mean?

The #SPILL! error occurs when an array formula needs to spill its results into adjacent cells, but one or more of those target cells already contain data, text, or even a hidden space. Clearing the blocking cells will allow the formula to spill properly and fix the error.