Fix Excel Worksheet Error and SharePoint File Lock Issue
Question details
The user encounters a worksheet-specific error combined with a SharePoint file lock, which prevents them from accessing, copying, or restoring the Excel file.

- Product
- Microsoft Excel and SharePoint
- Device & OS
- not provided
- Scenario
- Attempting to open, restore a previous version, or copy a specific Excel worksheet hosted on SharePoint.
- Observed behavior
- The file is locked and throws an error when attempting to access a specific worksheet, even when the user is the file owner and the only person with access.
Ensure that no other devices or browser tabs currently have the file open, and check that your internet connection to Microsoft 365 services is stable.
Clear Excel Cache and Browser Data
Clearing your local caches can resolve conflicts where a stale session incorrectly triggers a SharePoint file lock.
Often, an Excel worksheet error or file lock occurs because the browser or Excel desktop app retains cached data from an improperly closed previous session.
Close all active Excel windows on your computer and sign out of your Microsoft 365 account in your web browser.
Open your browser settings, navigate to the privacy or history section, and clear your cache and cookies for all SharePoint and Microsoft domains.
Open the Excel desktop application, go to 'File' > 'Options' > 'Save', scroll down to the 'Cache Settings' section, and click 'Delete cached files'.
Restart your browser and Excel, log back into SharePoint, and try to open or copy the affected file again.

Contact Your Microsoft 365 Administrator
If clearing the cache fails, the server-side lock must be manually removed by an administrator.
Edit Spreadsheets Seamlessly with WPS Office
Tired of dealing with frustrating server locks and syncing errors? WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office. Enjoy smooth local and cloud-based spreadsheet editing without the hassle of unexpected file locks.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite on your device.
- 2. Open your spreadsheet: Launch WPS Spreadsheets and click 'Open' to select your local or downloaded Excel file.
- 3. Edit and save: Make your changes using familiar tools and save directly as a standard Excel format without file lock interruptions.

Frequently Asked Questions
Why does SharePoint say my Excel file is locked when I am the only user?
SharePoint may retain a 'ghost' lock if your previous editing session was closed unexpectedly, such as during a network drop or a browser crash. The server still believes the file is actively being edited.
Can I restore a previous version of a locked Excel file in SharePoint?
Generally, an active file lock prevents you from restoring a previous version. You must either wait for the lock to automatically expire or have an administrator release the lock before version history can be restored.
How do I force unlock an Excel file in SharePoint?
Standard users and file owners cannot manually force unlock a file stuck on the server. You must wait for the system to drop the session (which can take a few hours) or ask a Microsoft 365 administrator to clear the session via the admin center.




