Why Excel Changes OneDrive File Paths to SharePoint URLs
Question details
The user wants Excel workbook references to retain local file paths instead of changing to SharePoint URLs when saved.

- Product
- Microsoft Excel, OneDrive for Business, and SharePoint
- Device & OS
- not provided
- Scenario
- A workbook uses formulas linked to other workbooks in a local OneDrive for Business synchronization folder.
- Observed behavior
- When the workbook is saved, Excel converts references to synchronized files into SharePoint HTTPS links.
Identify the destination workbook and its linked source workbooks, and check whether their folders are synchronized by OneDrive. In Excel, look for Data > Workbook Links or Data > Edit Links to inspect the current link sources.
Test workbook links outside the OneDrive sync folder
Use local copies outside synchronized folders to test whether storage location is causing Excel to replace local paths with cloud URLs.
Use File > Save As in Excel to save copies of the destination workbook and its source workbooks to a folder that is not synchronized by OneDrive.
Open the local destination copy and select Data > Workbook Links or Data > Edit Links, depending on your Excel version. Choose each source and use Change Source to select the corresponding local copy.
Save and close the destination workbook, reopen it, and inspect Data > Workbook Links or Data > Edit Links to see whether the sources remain local. Update a value in a local source workbook and check that the destination updates as expected.

Check access to the SharePoint link sources
Use this approach if cloud URLs are acceptable or the links stop updating after Excel converts them.
Work with Excel workbooks in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Microsoft Office formats, making it easy to move everyday workbook tasks to WPS. It does not change Microsoft Excel's OneDrive or SharePoint integration.

Frequently Asked Questions
Why does Excel show a SharePoint URL for a file in my OneDrive folder?
OneDrive for Business can synchronize SharePoint-backed files to a local folder. Excel may use the cloud URL for a linked workbook when it saves files in that synchronized location.
Can I force Excel to keep a local path in a synchronized folder?
There is no guaranteed setting in this guidance that prevents the conversion. Test copies outside the synchronized folder and use Data > Workbook Links or Data > Edit Links to point to the local sources.
Will a SharePoint URL prevent a workbook link from updating?
Not necessarily. The link can update if the source is available and the user has access. Check the source in Data > Workbook Links or Data > Edit Links, and verify that you can open its SharePoint location.
Will changes to local test copies sync back to OneDrive?
No. Copies saved outside the OneDrive sync folder are separate from the synchronized workbooks. Changes to those copies do not automatically update the originals.




