Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Linking Excel Workbooks in SharePoint: A Complete Guide

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Linking Excel workbooks in SharePoint allows you to create a dynamic relationship between two or more files, where data entered in a source workbook automatically updates in a destination workbook. This eliminates the need to manually copy and paste data between spreadsheets, reducing human error and ensuring that all stakeholders are viewing the most current information. To achieve this, you must use the Excel Desktop App, as the web-based version of Excel has limited capabilities regarding the creation and management of external links.

What You'll Need

  • A Microsoft 365 subscription with access to SharePoint Online.
  • The Excel Desktop Application installed on your computer (linking cannot be fully managed in the browser).
  • Both the source workbook (where the data lives) and the destination workbook (where the data will be displayed) uploaded to a SharePoint document library.
  • Appropriate permissions to edit both files within the SharePoint environment.
  • A stable internet connection to ensure the cloud paths are correctly mapped.

Step-by-Step

  1. Open Both Workbooks in the Desktop App: Navigate to your SharePoint library in your web browser. Click on the source workbook to open it, then select "Open in Desktop App" from the top menu. Repeat this process for the destination workbook. Opening both files simultaneously ensures that Excel can easily map the relationship between them without requiring you to manually browse through complex URL paths. Note that menu labels may differ slightly depending on your version of Office or regional settings.
  2. Select the Source Data: In the source workbook, highlight the cell, range, or table that you wish to link. Right-click the selection and choose "Copy" (or press Ctrl+C).
  3. Create the Link in the Destination Workbook: Switch to the destination workbook and select the cell where you want the linked data to appear. Instead of a standard paste, right-click the cell and select "Paste Special..." from the context menu.
  4. Establish the Connection: In the Paste Special dialog box, click the "Paste Link" button located at the bottom left of the window. This tells Excel not to copy the value, but to create a formula that references the specific cell address in the source file. The resulting formula will look like a long file path starting with "https://" followed by the SharePoint site address and the workbook name.
  5. Verify the Formula: Look at the formula bar in the destination workbook. You should see a reference that looks similar to ='https://yourcompany.sharepoint.com/sites/Project/Shared Documents/[SourceWorkbook.xlsx]Sheet1'!$A$1. If you see a local C: drive path instead of an HTTPS link, the file was not opened via SharePoint, and the link may break when other users try to access it.
  6. Save and Sync: Save both workbooks. Because they are stored in SharePoint, the "AutoSave" feature should be enabled. This ensures that the link is registered in the cloud metadata, allowing other users with access to the files to update the links when they open the destination workbook.
  7. Test the Link: Go back to the source workbook and change a value in the linked cell. Save the file. Switch to the destination workbook; you should see the value update automatically. If it does not, you may need to click "Enable Content" in the yellow security warning bar that often appears at the top of the screen.

Common Mistakes

One of the most frequent errors is attempting to create links while working entirely within Excel for the Web. While you can view linked data in the browser, creating new links or managing complex external references often requires the desktop application to ensure the HTTPS paths are correctly formatted. If you create a link in a file saved locally and then upload it to SharePoint, the link will still point to your local hard drive (e.g., C:\Users\Name\Documents), meaning no one else in your organization will be able to update the data.

Another common mistake is renaming the source workbook or moving it to a different folder within SharePoint after the link has been established. Excel links are path-dependent. If the file name changes from "Sales_2023.xlsx" to "Sales_Final_2023.xlsx", the destination workbook will no longer be able to find the source, resulting in a #REF! error. Always finalize your file naming conventions and folder structures before linking workbooks.

Users also frequently forget to grant permissions to the people who will be using the destination workbook. If a colleague opens the destination file but does not have "Read" access to the source file in SharePoint, they will be unable to refresh the data and may see an error or an outdated value. The link does not grant permission to the source file; the user must have independent access to both locations.

Tips

To make your linked workbooks more robust, use Excel Tables (Ctrl+T) in your source file. When you link to a named table or a specific column within a table, Excel can often handle the addition of new rows more gracefully than if you link to a fixed range like A1:B10. This prevents you from having to manually update the link every time you add a new piece of data to the bottom of your source list.

For those managing a large number of links, use the "Edit Links" tool. Go to the Data tab on the ribbon and select "Edit Links." This menu allows you to see every external source connected to your current workbook. From here, you can manually update the source if a file has been moved, or you can "Break Link" to convert the dynamic formulas into static values, which is useful when archiving a report at the end of a quarter.

Consider creating a "Summary" sheet in your destination workbook that acts as a dashboard. Instead of scattering links throughout various tabs, centralize all external data pulls on one sheet and then use internal references (links within the same workbook) to distribute that data to other tabs. This makes it much easier to troubleshoot broken links because you only have one place to check for #REF! errors.

Troubleshooting

If your links are not updating or are showing errors, start with the simplest check: ensure you have clicked "Enable Content" in the yellow message bar at the top of the workbook. Excel disables external links by default for security reasons to prevent malicious code from running. Until you explicitly trust the document, the data will remain static.

If you see a #REF! error, it usually means the source cell was deleted or the file path has changed. Check if the source workbook was renamed or moved to a different SharePoint folder. If it was, go to Data > Edit Links, select the broken source, and click "Change Source..." to navigate to the new location of the file. This will update all instances of that link throughout the workbook simultaneously.

If the link works for you but not for a teammate, verify their SharePoint permissions. The teammate must have at least "View" access to the source workbook. If they are prompted for credentials when opening the file, it means their account is not recognized as having access to the source directory.

In cases where the link is simply "stuck" and won't refresh, try forcing a manual update. Go to the Data tab, click "Refresh All." If that fails, close both workbooks entirely, clear your Office cache (via File > Options > Save > Cache Settings), and reopen the files from SharePoint using the "Open in Desktop App" method again.

Frequently Asked Questions

Can I link workbooks if they are in different SharePoint sites?

Yes, you can link workbooks across different SharePoint sites, provided you have the necessary permissions for both sites. The process is the same, but the HTTPS path in the formula will reflect the different site URLs.

Do the source files need to be open for the destination file to update?

No, the source file does not need to be open. However, when you open the destination file, Excel will ask if you want to "Update Links." If you select yes, Excel will reach out to the SharePoint server and pull the latest values without requiring you to manually open the source workbook.

Will these links work in the Excel mobile app?

Linking is primarily a desktop feature. While you can view the results of a link in the mobile app, you cannot create new links or manage the "Edit Links" menu on iOS or Android devices.

Is there a limit to how many workbooks I can link together?

While there is no hard numerical limit, having dozens of external links to SharePoint files can significantly slow down the opening and saving process of your workbook, as Excel must authenticate and ping multiple cloud locations.

What happens if the source file is deleted?

The destination workbook will retain the last known value it successfully pulled, but any attempt to refresh the data will result in a #REF! error because the underlying path no longer exists.