logo
search
Permission & Access Issues

How to Fix Excel File Locked for Editing in SharePoint or Teams

Chanuka GeekiyanageChanuka Geekiyanage Sep 30, 2026 869 views

Question details

Users are unable to edit an Excel file synchronized from SharePoint or Teams because it opens in read-only mode or displays a locked for editing error on the desktop app.

How to Fix a SharePoint or Teams Excel File Locked for Editing
Product
Microsoft Excel, SharePoint, Teams
Device & OS
not provided
Scenario
Opening a shared Excel file via the desktop application for co-authoring.
Observed behavior
The file works online but appears locked or read-only on specific laptops until the user explicitly selects Edit Workbook or resolves account sync conflicts.
Before you start

Ensure your internet connection is stable and verify that the Excel file is not currently opened by a colleague using an unsupported, older version of Microsoft Office.

Solution 1Recommended

Sign In with the Correct Licensed Account

Account conflicts often cause permission issues. Ensure you are using the work account associated with your Teams or SharePoint access.

Excel files hosted on SharePoint or Teams require valid Microsoft 365 licenses and appropriate access permissions. If you are signed into Excel with a personal account or an unrelated work account, the desktop app will restrict editing and lock the file.

1
Open Excel Account Settings

Launch Microsoft Excel, click on 'File' in the top-left corner, and select 'Account' from the bottom of the left sidebar.

2
Sign Out of Unrelated Accounts

Under the 'User Information' section, click 'Sign Out' for any personal or incorrect Microsoft accounts currently logged in.

3
Sign In with Work Account

Click 'Sign In' and enter the credentials for the licensed work or school account that has explicit permission to access the SharePoint or Teams file.

Sign In with the Correct Licensed Account
Account Verified: Signing in with the correct Microsoft 365 work account restores co-authoring permissions and unlocks the file.
Free Microsoft Office alternative

Try WPS Office for Seamless Spreadsheet Editing

If Microsoft Excel continues to restrict your access with 'locked for editing' errors, consider using WPS Office. It is a lightweight, highly compatible alternative that allows you to easily edit and manage your spreadsheets without complex account conflicts.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package.
  2. 2. Install the Software: Run the installer and follow the on-screen instructions to set up WPS Office on your device.
  3. 3. Open Your Spreadsheet: Launch WPS Spreadsheet and open your .xlsx files directly to start editing without lock errors.
Fully compatible with Microsoft Excel (.xlsx, .xls, .csv) formatsLightweight installation that runs smoothly on any PCFamiliar user interface with zero learning curveFree to use for all your essential spreadsheet tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel say my file is locked for editing when nobody else is using it?

This usually happens if Excel crashed previously, leaving a hidden temporary lock file, or if OneDrive is experiencing sync delays. Ensuring Excel is fully closed via Task Manager and verifying your OneDrive sync status can resolve this.

Does co-authoring work on all versions of Microsoft Excel?

No. Co-authoring requires a Microsoft 365 subscription and a modern version of Excel. If a colleague opens the file with an older, unsupported version of Office, the file will be locked for everyone else.

How can I force unlock an Excel file in SharePoint?

If a file is permanently stuck, a SharePoint site administrator can navigate to the document library settings and use the 'Check Out' and 'Check In' features, or end the active session to forcefully release the lock.