Why Excel Changes Formulas to OneDrive or SharePoint Links and How to Manage It
Question details
The user wants to know why Excel alters external formula references to display long SharePoint or OneDrive web URLs instead of the local workbook names, and how to maintain the original local formulas.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Working with multiple interconnected Excel workbooks that are synchronized and stored in OneDrive or SharePoint.
- Observed behavior
- Excel automatically replaces the short local workbook name in a formula with the full absolute online file path (SharePoint/OneDrive URL).
Ensure all linked workbooks are fully synchronized to your local OneDrive or SharePoint folder before making changes to avoid breaking external references.
Keep the Source Workbook Open While Editing
Prevent Excel from displaying long SharePoint URLs by keeping the referenced source file open in the background.
When a source workbook is closed, Excel requires the full absolute path (the SharePoint or OneDrive URL) to locate the data. If both workbooks are open simultaneously, Excel can resolve the reference locally in its memory and will display only the short file name.
Launch Excel and open the primary workbook where you need to create or edit your formula references.
Navigate to your OneDrive or SharePoint folder and open the referenced source workbook (e.g., Company.xlsx) in the same Excel instance.
Create or modify your external reference formula. Because the source file is open, Excel will display the short workbook name instead of the long URL.
Save your main workbook while the source file is still open. Note that once you close the source file, Excel will automatically append the full online path to maintain the link's reliability.
Temporarily Pause OneDrive Synchronization
Pause OneDrive syncing while you work to prevent the application from immediately converting local file paths into online URLs.
Try WPS Office for Seamless Spreadsheet Management
If you are frustrated by Excel's automated handling of OneDrive and SharePoint links, consider switching to WPS Office. It provides a familiar, lightweight spreadsheet interface that gives you better control over your local files without aggressive cloud URL conversions.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install and Launch: Run the installer and open WPS Spreadsheets.
- 3. Open Your Workbooks: Open your local .xlsx files and manage your formulas and external references with complete control.

Frequently Asked Questions
Why does the SharePoint path only appear when the source file is closed?
When the source file is closed, Excel removes it from active memory and needs a complete, absolute path to locate the external data. Since the file is stored in a synced cloud location, the absolute path defaults to the SharePoint or OneDrive web URL.
Can I manually replace the long SharePoint link with a local path?
It is not recommended. While manually changing the URL to a local path might work temporarily, Excel's synchronization engine will typically revert it back to the SharePoint path the next time the file is saved and reopened.
How can I ensure my external formulas don't break when using OneDrive?
To preserve reliable links, always keep both the main workbook and the source workbook in the same synchronized OneDrive or SharePoint directory. Moving one file without the other will cause the external references to break.
Does this URL conversion happen on Mac as well as Windows?
Yes, this is an intentional design feature of Microsoft Office across both Windows and Mac platforms. Whenever cloud-synced files reference each other, Excel manages the connection via the online URL.




