OneDrive File Issues

Fix Excel Workbook Links Changed to OneDrive Web Paths

Steven ParkerSteven Parker Dec 2, 2026 869 views

Question details

Use local paths for Excel workbook references and queries affected by OneDrive web paths.

Fix Excel Workbook Links Changed to OneDrive Web Paths
Product
Microsoft Excel and OneDrive
Device & OS
not provided
Scenario
Workbooks are stored in OneDrive, and formulas or Power Query need to reference synchronized local files.
Observed behavior
Excel may use HTTPS or SharePoint paths for workbook links or return a web path from CELL("filename"), which can disrupt formulas and queries expecting a local path.
Before you start

Confirm that OneDrive is syncing the folder containing the source workbook. In your file manager, locate the synchronized source file and, if available, select Always keep on this device so it is available offline.

Solution 1Recommended

Change the workbook link to the synchronized local file

Use this approach when an external workbook reference points to a OneDrive or SharePoint URL.

1
Locate the local source

Open your synchronized OneDrive folder in your file manager and find the source workbook. Note its local folder path and file name.

2
Open workbook links

In the destination workbook in Excel, select Data > Workbook Links or Data > Edit Links, depending on your Excel version.

3
Change the source

Select the affected link, choose Change Source, and browse to the synchronized local copy of the source workbook. Confirm the selection.

4
Check the formulas

Open a cell that references the source workbook and check its formula. Save the destination workbook, reopen it, and verify that the link still works.

Change the workbook link to the synchronized local file
Excel may use a web path again: There is no universal setting that prevents Excel from using OneDrive URLs in every situation. Changing an external link also does not control the path returned by CELL("filename").
Free Microsoft Office alternative

Work with Excel files in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format support for an easier transition. It does not change how Microsoft Excel handles OneDrive paths.

Open and edit spreadsheets in a familiar interfaceWork with local spreadsheet files in WPS SpreadsheetsSupports Microsoft Excel formats, including XLSX and XLSFree and lightweight for everyday document work
microsoft office alternative - wps office

Frequently Asked Questions

Why does CELL("filename") return a SharePoint URL?

When Excel works with a OneDrive or SharePoint workbook, it may identify the file by its online location. CELL("filename") can therefore return a URL instead of the local synchronized path.

Can I stop Excel from using OneDrive URLs for all workbook links?

There is no universal setting that prevents this in every situation. For an individual external link, try Data > Workbook Links or Data > Edit Links and use Change Source to select the local synchronized file.

How can I keep the source workbook available offline?

In your file manager, find the workbook in the synchronized OneDrive folder, right-click it, and choose Always keep on this device if that option is available.

What if Power Query uses a path from CELL("filename")?

A query that expects a local path may fail if the cell returns a URL. Enter the synchronized local path in a separate cell or query parameter, then update the query in Data > Queries & Connections to use that value.