How to Fix Excel File Opening in SharePoint but Not Locally via OneDrive
Question details
The user needs to fix a specific Excel workbook that functions normally in the SharePoint Online web viewer but fails to open from a local, synchronized OneDrive or SharePoint folder.

- Product
- Microsoft Excel, OneDrive, SharePoint Online
- Device & OS
- not provided
- Scenario
- Accessing and opening a synchronized Excel workbook locally from a computer after it has been synced via OneDrive or SharePoint.
- Observed behavior
- The Excel file successfully opens in the web browser through SharePoint Online, but attempting to open the locally synced copy from the OneDrive folder fails, indicating local file corruption or cache issues.
Ensure your OneDrive sync client is up to date and check if other Excel files in the same folder open normally to confirm the issue is isolated to a specific workbook.
Recreate the Workbook from the Online Version
Since the local file might be corrupted, copying its contents from the working web version into a brand-new workbook bypasses the local corruption.
When an Excel file becomes corrupted during synchronization, the server often retains a healthy version that is accessible via the web. Transferring this clean data to a new file can restore local functionality.
Navigate to SharePoint Online in your web browser and open the problematic Excel file in the Excel web viewer.
Open the desktop Excel application and create a completely blank workbook.
Copy the data, formulas, and formatting from the online browser view and paste them into your new local workbook.
Save the new workbook to your synchronized SharePoint or OneDrive folder using a slightly different name.
Close the file and attempt to open it again from your local synced folder to verify it works correctly.

Download a Fresh Copy Manually
Downloading the file manually forces a clean transfer from the server, bypassing localized sync errors in the OneDrive client.
Use WPS Office to Open Your Spreadsheets Seamlessly
If Microsoft Excel is repeatedly failing to open your synchronized files due to complex cache or sync issues, consider trying WPS Office. It provides a lightweight, highly compatible alternative that handles standard spreadsheet formats flawlessly.
- 1. Download and Install WPS Office: Get the free WPS Office installer from the official website and install it on your device.
- 2. Locate the Synced File: Navigate to your local OneDrive or SharePoint folder where the problematic file is stored.
- 3. Open with WPS Spreadsheet: Right-click the Excel file, select 'Open with', and choose WPS Spreadsheets to bypass Office-specific errors.

Frequently Asked Questions
Why does my Excel file work online but not locally on my computer?
This typically happens when the local copy of the file becomes corrupted during the OneDrive synchronization process, or if there is a conflict within the Office Document Cache. The web version works because it accesses the healthy file directly from the SharePoint server.
How can I tell if my OneDrive sync is causing the problem?
If other Excel files in the exact same synced folder open perfectly, the issue is likely isolated to that specific workbook's local copy. If none of the synchronized files can be opened, your OneDrive client may need to be restarted or reset.
Will I lose my macros when copying data to a new workbook from the browser?
Yes. If you copy data using the SharePoint web browser viewer, VBA macros will not be transferred. To preserve macros, you must download a fresh local copy of the file first, or manually export and import the VBA modules using the desktop application.




