How to Fix Excel Paste Link #REF Error with SharePoint Files
Question details
The user needs to fix a #REF error that occurs when using the Paste Link feature for Excel workbooks hosted on SharePoint.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to link cells across worksheets within workbooks that are hosted or synced via SharePoint using the Paste Link function.
- Observed behavior
- Excel generates a #REF error by inserting an external SharePoint URL path instead of a relative local worksheet reference.
Before troubleshooting, ensure you have a stable internet connection to SharePoint and verify whether the issue occurs in both the Excel desktop application and Excel for the web.
Use Manual Cell Referencing Instead of Paste Link
Bypass the Paste Link bug by manually typing the equal sign to establish a direct, local reference between your worksheets.
When Excel's Paste Link feature gets confused by SharePoint synchronization, it tries to fetch the data from the cloud URL instead of the local file. Manually creating the reference forces Excel to use a local path.
Select the destination cell where you want the linked data to appear and type an equal sign (=).
Navigate to the target worksheet within the same workbook and click on the specific cell you want to reference.
Press the Enter key. Excel will create a clean, local worksheet reference (e.g., =Sheet2!A1) without generating a SharePoint URL path.

Test Across Platforms and Recreate the Workbook
Determine if the issue is isolated to a specific corrupted workbook or a specific Excel platform (web vs. desktop).
Experience Error-Free Spreadsheet Linking with WPS Office
Tired of troubleshooting frustrating SharePoint and Excel sync bugs? Switch to WPS Office. It provides a highly compatible, stable, and lightweight environment for managing all your spreadsheets without complex pathing errors.
- 1. Download and Install: Get the free WPS Office suite from the official website and install it on your computer.
- 2. Open your Excel files: Launch WPS Spreadsheets and open your existing .xlsx workbooks directly.
- 3. Link cells seamlessly: Use the standard copy and paste link features without worrying about SharePoint cloud path conflicts.

Frequently Asked Questions
Why does Excel Paste Link generate a SharePoint URL instead of a local reference?
When files are synced or hosted on SharePoint, Excel's clipboard can sometimes misinterpret the source file's location. Instead of recognizing it as the currently open local file, it inserts the absolute web URL from SharePoint, which breaks when evaluated and results in a #REF error.
Can clearing the Office cache fix the Paste Link #REF error?
Yes, in some cases, clearing the Office Document Cache can force Excel to re-sync with SharePoint and correctly identify the file paths. You can do this by going to File > Options > Save, and under 'Cache Settings', clicking 'Delete cached files'.
Does this #REF error happen in all versions of Excel?
No, this behavior often varies depending on your specific Excel version, update channel, or whether you are using the desktop application versus Excel for the web. Keeping your Microsoft Office client updated to the latest build can frequently resolve unexpected cloud sync and pathing bugs.




