Formula Errors

How to Fix Array Result Not Expanded #REF! Errors in Excel and Google Sheets

Anum MushtaqAnum Mushtaq Nov 11, 2026 868 views

Question details

The user needs to fix a #REF! error that occurs because an array formula cannot expand without overwriting existing data.

How to Fix Array Result Not Expanded Errors in Excel
Product
Excel and Google Sheets
Device & OS
not provided
Scenario
Using dynamic array formulas or importing a Google Sheets template into Excel, typically on a Summary sheet calculating cross-sheet data.
Observed behavior
The cell displays a #REF! error with a message indicating that the array result was not expanded because it would overwrite existing data.
Before you start

Confirm whether the file was originally built in Excel or Google Sheets, as dynamic array functions and cross-sheet references behave slightly differently between the two applications.

Solution 1Recommended

Clear Data from the Intended Spill Range

Remove any text, formatting, hidden characters, or formulas that are blocking the array from expanding into neighboring cells.

Dynamic array formulas automatically populate multiple cells, known as a 'spill range'. If even a single cell in this intended range contains data (including a hidden space), the formula returns an error to prevent accidental overwriting.

1
Locate the blocked range

Select the cell containing the #REF! error. A faint dashed blue border will appear, outlining the exact range the formula is attempting to fill.

2
Inspect for existing data

Check the highlighted area for any rogue data, spaces, or invisible formatting that might be occupying the required cells.

3
Clear the obstructing cells

Highlight all empty cells within the dashed border, right-click, and select 'Clear Contents', or simply press the Delete key on your keyboard.

4
Verify formula expansion

Once the range is completely empty, the array formula will automatically recalculate and populate the spilled data.

Clear Data from the Intended Spill Range
Instant Calculation: You do not need to rewrite the formula. Once the blocking data is removed, the array will immediately spill and display the correct values.
Seamless Array Support

Easily Manage Dynamic Arrays with WPS Office

WPS Spreadsheet fully supports dynamic array functions and cross-platform compatibility, making it easy to fix spill errors and open complex Google Sheets or Excel templates without breaking formulas.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open your existing Excel or Google Sheets template.
  2. 2. Click the error cell: Select the cell with the array formula to instantly view the required spill range outlined on your sheet.
  3. 3. Clear and calculate: Use the clear contents tool to remove any obstructing data and watch WPS Spreadsheet instantly process your dynamic arrays.
100% format compatibility with Microsoft Excel (.xlsx) dynamic array formulas.Intuitive error tracing visually highlights cells that are blocking your spill range.Free and lightweight spreadsheet software with no steep learning curve.Flawlessly imports and handles complex templates converted from Google Sheets.
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get a #REF! error instead of a #SPILL! error?

In Google Sheets, blocked array formulas typically return a #REF! error stating the result was not expanded. In modern Microsoft Excel, this exact same scenario returns a #SPILL! error. If you are seeing #REF!, you are likely using Google Sheets or an older Excel file format.

Can I force an array formula to overwrite existing data?

No, spreadsheet applications intentionally prevent array formulas from overwriting existing data to protect your information. You must manually clear the required cells or move the formula to an area with enough empty space.

Why does my downloaded Google Sheets template show errors in Excel?

Google Sheets and Excel handle certain complex array configurations and the INDIRECT function slightly differently. When you export a Google Sheets file to .xlsx, some syntax might not translate perfectly, requiring you to manually update the sheet references in Excel.

How do I find invisible characters blocking my formula?

Select the entire blank range where the formula should expand and press the Delete key. Often, cells that appear empty actually contain invisible spaces, apostrophes, or cleared formatting from a previous template design.