Excel Error Codes

Fix Excel #REF! Errors in OneDrive External Workbook Links

Natalie TaylorNatalie Taylor Nov 12, 2026 869 views

Question details

The user needs to resolve a #REF! error in Excel desktop formulas that link to a source workbook stored on OneDrive.

Fix Excel #REF! Errors in OneDrive External Workbook Links
Product
Microsoft Excel desktop with OneDrive-hosted workbooks
Device & OS
not provided
Scenario
An external formula works after links are updated or while the source workbook is open, but needs to remain valid when the source workbook is closed.
Observed behavior
Excel for the web may calculate the external link, while Excel desktop returns #REF! after the linked OneDrive source workbook is closed.
Before you start

Make sure the OneDrive desktop sync client is running and that both the destination workbook and source workbook are available locally. Confirm that you can open the source workbook from its OneDrive-synced folder before changing the link.

Solution 1Recommended

Open the OneDrive source workbook and update the Excel workbook link

Use this method when the link works only while the source workbook is open or when Excel reports that values from other workbooks were not updated.

Excel desktop may be unable to refresh a cloud-based external reference when the OneDrive source workbook is closed. Opening the source file from its synced location lets Excel resolve the workbook and update the stored link path.

1
Open the source workbook locally

Open File Explorer, go to your OneDrive-synced folder, and open the source workbook directly in Excel. Do not open only a browser link to the file.

2
Check OneDrive synchronization

Select the OneDrive cloud icon in the Windows notification area and confirm that the source workbook has finished syncing and does not show a sync error.

3
Update the external link

Open the workbook containing the #REF! formula. On the Data tab, select Workbook Links or Edit Links, select the affected source workbook, and choose Update Values.

4
Correct the source location if needed

In Data > Workbook Links or Edit Links, select the broken link and choose Change Source. Browse to the source workbook inside the local OneDrive folder, then save the destination workbook.

5
Test the refreshed formula

Close the source workbook, reopen the destination workbook, and select Enable Content or Update when Excel asks to update links. Check whether the formula still returns a value instead of #REF!.

Open the OneDrive source workbook and update the Excel workbook link
Keep the local path available: If the error returns after the source workbook closes, keep both workbooks synchronized to local OneDrive folders rather than relying on a web URL-based source path.
Free Microsoft Office alternative

Work with linked Excel workbooks in WPS Spreadsheets

If Excel desktop continues to mishandle a OneDrive external workbook link, try WPS Office as a free, lightweight alternative with a familiar spreadsheet interface. You can open and migrate existing workbooks easily, then review formulas and linked data from locally synchronized files.

Free and lightweight spreadsheet software for everyday workbook editingFamiliar ribbon-style interface helps you move from Excel with minimal adjustmentSupports Microsoft Excel .xlsx and .xls workbook formatsLets you open and review external-reference formulas in imported Excel workbooksCompatible with common tables, formulas, charts, and worksheet layouts
microsoft office alternative - wps office

Frequently Asked Questions

Why does an external OneDrive formula work in Excel for the web but show #REF! in Excel desktop?

Excel for the web and Excel desktop can resolve cloud workbook links differently. In desktop Excel, the source workbook may need to be accessible through a valid locally synchronized OneDrive path, especially when the source file is closed.

Where can I update a broken workbook link in Excel?

Open the destination workbook and go to the Data tab. Select Workbook Links in newer Excel versions or Edit Links in older versions, choose the affected source, and use Update Values or Change Source.

Why does Open Source make the #REF! formula work temporarily?

Opening the source workbook gives Excel direct access to the referenced cells, allowing it to calculate the formula. If the result fails after closing the source, the saved external link path or closed-workbook access is likely unreliable.

Can I use a OneDrive web URL as the source for an Excel external formula?

A OneDrive URL may not behave consistently for desktop external references. For better reliability, use the source workbook from the local folder created by the OneDrive sync client and update the link to that location.

When should I use Power Query instead of an external workbook formula?

Use Power Query when you need to import and refresh data from another workbook reliably, particularly when the source file is normally closed. Use direct external formulas only when you need cell-by-cell formula relationships that update as linked values.