Formula Errors

Prevent #REF! Errors in Excel External Workbook References

Steve KSteve K Nov 12, 2026 869 views

Question details

The user needs to prevent #REF! errors in a summary workbook that retrieves data from other Excel workbooks.

How to Prevent #REF! Errors in Excel External Workbook References
Product
Microsoft Excel
Device & OS
not provided
Scenario
A summary workbook depends on data stored in source workbooks B and C.
Observed behavior
Formulas can return #REF! when source workbooks are moved, renamed, unavailable, disconnected, or contain broken references.
Before you start

Locate the current copies of every source workbook and confirm that you have permission to open them. Check whether the source files or their folders were renamed, moved, deleted, or disconnected from a network or cloud location.

Solution 1Recommended

Restore the source workbook path used by the Excel formulas

Use this when #REF! appears after a linked workbook was moved, renamed, deleted, or replaced.

An external reference must point to an existing workbook, worksheet, and cell or range. Restoring the original file location or updating the workbook link prevents formulas from referring to invalid locations.

1
Open the summary workbook

In Microsoft Excel, open the summary workbook that displays the #REF! error.

2
Open the workbook links settings

Select Data > Workbook Links. In some Excel versions, select Data > Edit Links.

3
Change the broken source

Select the unavailable source workbook, choose Change Source, and browse to the current file location. Select the correct workbook and confirm the update.

4
Verify the referenced sheets and ranges

Open the source workbook and confirm that the worksheet names, columns, and referenced cells still exist. Restore renamed sheets or update formulas that refer to deleted ranges.

5
Save and recalculate

Select Formulas > Calculate Now, confirm that the formulas return values instead of #REF!, and save the summary workbook.

Restore the source workbook path used by the Excel formulas
Keep linked file locations stable: Store related workbooks in a controlled shared folder and avoid renaming source files or worksheets after formulas have been created.
Free Microsoft Office alternative

Manage Linked Workbook Data with WPS Spreadsheets

If Microsoft Excel external links are disrupted by unavailable or moved source files, WPS Office provides a free, lightweight spreadsheet alternative with a familiar interface. You can open, review, edit, and migrate Excel workbooks while keeping common formulas and workbook formats compatible.

  1. 1. Install WPS Office: Download and install WPS Office, then open WPS Spreadsheets from the app launcher.
  2. 2. Open the Excel summary workbook: Select Open and choose the existing .xlsx or .xls summary workbook.
  3. 3. Review formulas and source data: Select a formula cell to inspect its references, then open the required source workbook or import its data into a local sheet.
Open and edit linked-data spreadsheets in a familiar spreadsheet workspace.Supports Microsoft Excel .xlsx, .xls, and .csv file formats.Lightweight installation for working with summary workbooks across devices.Use built-in spreadsheet tools to inspect formulas and organize imported source data.
microsoft office alternative - wps office

Frequently Asked Questions

Why does an Excel formula show #REF! when it links to another workbook?

#REF! means part of the formula reference is invalid. The source workbook may have been moved, renamed, deleted, unavailable, or changed so that the referenced worksheet, row, column, or cell no longer exists.

Can Excel update links when the source workbook is closed?

Excel can update many standard external cell links from a closed workbook if the file path is available. However, some functions, queries, connections, and protected or inaccessible files may require the source workbook to be open.

Where can I change a broken external workbook link in Excel?

Open the summary workbook and select Data > Workbook Links. In older Excel versions, use Data > Edit Links. Select the source workbook, choose Change Source, and select the correct file.

How do I find formulas that contain external workbook references?

Select Home > Find & Select > Find, enter an opening bracket character ([), then select Find All. External workbook formulas commonly include the source workbook name inside brackets.

Is Power Query better than direct workbook references?

Power Query is often more reliable for recurring imports because it loads source data into the destination workbook and can be refreshed through Data > Refresh All. It still requires an accessible source location, but it reduces dependence on many live cell-by-cell links.