Excel File Locked for Editing? Try These Fixes
Fix an Excel file that’s locked for editing by you or another user: close it on your devices, ask for access, set up co-authoring and remove features that cause the lock.
Quick Answer
If the message names you, close the file on all your devices and wait a few minutes for the server to release the lock. If the app says you already have the file open after a crash, close the app and restart your computer. If it names someone else, wait until they close it, view it as read-only, or ask them to close it, check it in or give you edit permissions. To edit together, everyone needs the Microsoft 365 subscription version of Excel or Excel for the web.
Common causes
- The file is still open on another of your devices, or the previous instance didn’t close properly
- A crash left the app thinking the file is still in use
- Another person has the file open from a shared location in their desktop version of Office
- Someone has checked out the file from a SharePoint library
- The file is saved where co-authoring isn’t supported, such as a server path
- Someone opened the file in a version of Excel that doesn’t support co-authoring
- The file uses a format or feature that co-authoring doesn’t support
Step-by-Step Solutions
Start with the step that matches your message, then work down the list.
Step 1: If the message names you, close the file everywhere
If the lock is in your own name, close the file on all your devices, and after a crash, close the app and restart your computer.The “another user” in the message is sometimes you. Microsoft says that can mean the file is open on a different device, or the previous instance of the file didn’t close properly.
Make sure the file is closed on all your devices. If the error still occurs, wait a few minutes for the server to release the lock on the file. Sometimes the server thinks you have the file open and just needs to catch up.
If your computer stopped working while the file was open, the app may mistakenly think the file is still in use and lock it temporarily. If the app tells you that you can’t edit the file because you already have it open, close the app, then restart your computer. Microsoft says this should release the lock and let you open the file for editing again.
Good to knowWhat this rules out: the file still being open on one of your other devices, a previous instance that didn’t close properly, or a lock left behind by a crash.
Step 2: If the message names someone else, wait or ask them
If another person has the file open, you can wait for them to close it, view it as read-only, or ask them to close it, check it in or give you edit permissions.If someone else is already working on a workbook from a shared location in their desktop version of Office, you can view the last saved version, but you can’t edit it until they close it. This prevents two or more people from making conflicting changes in the file.
You can wait until the other person is done and has closed the file, or choose to view it as read-only. You can also ask them to close the file, check it in, or give you edit permissions.
If they opened the file in a previous version of Office, such as Excel 2010, co-authoring isn’t available. Ask them to save and close the file as soon as they’re finished so it unlocks for you.
Good to knowWhat this rules out: another person having the file open in their desktop version of Office.
Step 3: Ask the owner for edit access if you can only view
If you have view-only permission on the file, you can request more access from inside Excel.Select Viewing in the upper right-hand corner, then select Request more access.
Choose the permission level you need, Ask to edit or Ask to review. You can add a note to the file owner, then send the request. The owner gets an email with options to grant or decline access.
Without edit permission for the file, co-authoring isn’t available, so the owner needs to grant you edit permissions.
Good to knowWhat this rules out: missing edit permission as the reason you can’t edit.
Step 4: Save your own copy if you can’t wait
To make changes right away, use Save As to create a new copy of the file and work in that copy.Use File, then Save As to create a new copy of the file, and make your changes in your copy.
You’ll then need to reconcile your changes with those made by others in their copies.
Good to knowIf the file is in an older format, Microsoft says the easiest solution may be to save a new copy of the file in the modern format and work from that new copy.
Step 5: In SharePoint, check whether the file is checked out
If someone has checked out the file from a SharePoint library, other people can’t work in it until it’s checked back in.Normally, more than one person can work on a file on a SharePoint site at the same time. But if someone checks out the file, other authors can’t work in it until it’s checked in. If required check-out is turned on for the library, co-authoring isn’t available.
In your web browser, go to the SharePoint document library where the file is stored and find the file. A small check-out icon to the right of the file name means it’s checked out. Point at the file name to open a small window with details about the file, including who has it checked out, so you can contact them.
Ask that person to check the file in. In the desktop version of Excel for Windows, they can do it from the app with File, then Info, then Check in. The check-out icon disappears when the file is checked back in.
Only as a last resort, if you can’t reach that person and you have permission, you can check in a file that someone else checked out. Keep in mind that changes made to a checked-out file aren’t available to others until it’s checked back in. Select the file in the library and check it in. You’ll get a warning that it’s checked out to another person; select OK only if you want to override their check-out.
Good to knowWhat this rules out: a SharePoint check-out as the reason the file is locked.
Step 6: Check whether the file is on a network share
Server paths like \\server\folder and smb://server/folder don’t support co-authoring, so you can’t edit while someone else has the file open.Look at where the file is saved. Microsoft lists these locations as not supporting co-authoring:
These locations don’t support co-authoring, so people get the “locked” error. If the file is on a server that doesn’t support co-authoring and somebody else has it open, you won’t be able to edit until they close it. Your organization’s policy administrator may also have turned off co-authoring on the server or on your computer.
To co-author with others, put the file on OneDrive, OneDrive for Business or SharePoint in Microsoft 365. If you have an on-premises SharePoint site and Excel for Microsoft 365, try using Excel Online to co-author instead. If you aren’t sure which kind of SharePoint site you’re using, ask the person in charge of your site or your IT department.
- Server paths like \\server\folder and smb://server/folder
- Cloud locations like Dropbox, Box and Google Drive
- Local folders on your Windows or Mac computer
- Libraries on SharePoint On-Premises sites
Good to knowWhat this rules out: a storage location that can’t be co-authored. For a file on a Windows file server, the last step covers what an administrator can check.
Step 8: Check the file format and the OneDrive sync app
For co-authoring, the file needs to be in .xlsx, .xlsm or .xlsb format, and the OneDrive sync app for Windows shouldn’t be paused.Check the file name and make sure the file is in .xlsx, .xlsm or .xlsb format. If it isn’t, in Windows go to File, then Save As, then Browse, then Save as type, and choose one of those formats. On a Mac, go to File, then Save As, and choose one of them.
Co-authoring doesn’t support the Strict Open XML Spreadsheet format.
If you use the OneDrive sync app for Windows, make sure you have the latest version and that the sync app isn’t paused.
Good to knowWhat this rules out: a file format co-authoring can’t use, and an out-of-date or paused OneDrive sync app for Windows.
Step 9: Remove features co-authoring doesn’t support
When you co-author, the “locked” error can occur if the file uses a feature co-authoring doesn’t support.Ask the person who has the file open to try these. First, turn off the Shared Workbook feature. If you’re opening a snapshot from SharePoint, open the workbook itself instead. If those two don’t work, try one or more of the following.
Co-authoring also isn’t available if the workbook is marked as final or includes Information Rights Management or Digital Rights Management, encryption or ActiveX controls.
On a Mac, if possible, remove a password from the Review tab: if Protect Workbook is highlighted, click it to turn off protection and enter the password if prompted. If possible, remove restricted access with File, then Restrict Permissions, then No Restrictions. Refresh data when opening file is under the Table tab, then Refresh, then Connection Properties, and add-ins are under Tools, then Excel Add-ins.
In Excel for Windows:
- If possible, remove password encryption or restricted access: go to File, then Info, then Protect Workbook, and remove any passwords or restricted access settings.
- Turn off Refresh data when opening file on all tables and PivotTables: select the table or PivotTable, go to Table Tools Design, then Refresh, then Connection Properties, and uncheck Refresh data when opening file.
- Inactivate an add-in that’s causing the lock: select File, then Options, then Add-Ins, then Excel Add-ins, then Go, and clear the check box for the add-in.
Good to knowWhat this rules out: a feature in the workbook that co-authoring doesn’t support.
Step 10: For file-server administrators: list the open files
On a Windows file server, an administrator can use the openfiles command to query and display the files that are open.This step is for administrators. The openfiles command enables an administrator to query and display files and directories that have been opened on a system.
Run openfiles /query to query and display all open files. To query a remote system, add /s followed by its name or IP address, without backslashes; without /s, the command runs on the local computer. For a list with detailed information, use openfiles /query /fo list /v.
Microsoft documents openfiles for Windows Server 2025, 2022, 2019 and 2016, Windows 11 and Windows 10.
Still locked for editing?
If you only have view-only permission, use Request more access to ask the file owner for edit access. Your organization’s policy administrator may have turned off co-authoring on the server or on your computer, and if you aren’t sure whether your file is in a SharePoint Online library or on a SharePoint On-Premises site, ask the person in charge of your site or your IT department.
Before you work in a copy: If you make your changes in a copy made with Save As, you’ll need to reconcile them with the changes others make in their copies.
Frequently Asked Questions
Why does Excel say the file is locked by me?
The file may still be open on another of your devices, or the previous instance of the file didn’t close properly. After a crash, the app may also mistakenly think the file is still in use.
Can I still read a workbook someone else has open?
Yes. If someone else is already working on it from a shared location in their desktop version of Office, you can view the last saved version or open it as read-only, but you can’t edit it until they close it.
How do I see who has a SharePoint file checked out?
Open the SharePoint document library in your web browser and point at the file name. A small window shows details about the file, including who has it checked out.
Can two people edit a workbook on a network drive at the same time?
Not with co-authoring. Microsoft lists server paths like \\server\folder and smb://server/folder among the locations that don’t support it, so you can’t edit while someone else has the file open. To co-author, put the file on OneDrive, OneDrive for Business or SharePoint in Microsoft 365.
Do Excel 2016, 2019 and 2021 LTSC support co-authoring?
No. If just one person opens the file in a version without co-authoring, everyone else gets the “locked” error.
Related guides
Sources & review
This guide was checked against Microsoft’s official support instructions on October 13, 2026. Device options can change with software updates.
- Microsoft Support: Excel file is locked for editing (opens in a new tab)
- Microsoft Support: File is locked by another user and commands are grayed out (opens in a new tab)
- Microsoft Support: Why can’t I edit this file? (opens in a new tab)
- Microsoft Support: Check out, check in, or discard changes to files in a SharePoint library (opens in a new tab)
- Microsoft Support: Collaborate on Excel workbooks at the same time with co-authoring (opens in a new tab)
- Microsoft Learn: openfiles (opens in a new tab)