Excel File Locked for Editing by Another User: How to Unlock It
"Budget.xlsx is locked for editing by another user." Excel then offers to open the file read-only or to notify you when it becomes free. Most of the time the "other user" really is a coworker who has the workbook open. Surprisingly often, though, it is you: a copy still open on your laptop, an Excel window that crashed and left a process running, or a small hidden file that Excel forgot to delete.
Which of those you are dealing with decides the fix, so the first thing to look at is the name in the message and where the file is stored. Menu names below are from Excel for Microsoft 365 on Windows 11 (24H2 and 25H2) and the current Excel apps for iPhone and Android. Excel 2016, 2019 and 2021 show the same message.

Find the row that matches the name and place in your message, then jump to the section below with the same situation.
What "locked for editing" means in Excel
It means Excel believes someone already has write access to the workbook, so it will only give you a read-only view until that lock is released. The lock exists to stop two people from saving conflicting changes over each other.
For files on your PC or a network drive, the lock is a real file. While a workbook is open, Excel creates a temporary "owner file" in the same folder, with the same name plus ~$ at the start (for example ~$Budget.xlsx). It is hidden, and Excel normally deletes it when you close the workbook. If Excel closes unexpectedly, the owner file can stay behind, and Microsoft's "File in Use" article confirms that Excel then treats the real file as locked for everyone.
The message box itself gives you two useful buttons:
- Read Only opens the last saved version. You can look and copy, but you cannot save over the original.
- Notify asks Excel to tell you as soon as the other person closes the file. It does not remove the lock; it just saves you from checking again and again.
Excel file locked for editing by me
If the message shows your own name, there is almost always a second copy of the workbook open somewhere, either on another device or in a background Excel process you cannot see.
- Close the workbook on every device where you might have opened it: work PC, home laptop, the Excel app on your phone, a browser tab with Excel for the web.
- Wait a few minutes and try again. When the file is on OneDrive or SharePoint, Microsoft notes that the server sometimes still thinks you have it open and simply needs time to catch up.
- Press Ctrl+Shift+Esc to open Task Manager. On the Processes tab, look under Background processes for Microsoft Excel. Select it and choose End task. Save anything you have open in other Excel windows first, because this closes them.
- If you clicked the file in File Explorer before opening it, turn off the Preview pane by pressing Alt+P (or View and clear Preview pane). The preview opens the file in the background and can hold it locked.
Still locked after that? The owner file was probably left behind. That is the next section.
Excel locked for editing but no one has it open
When nobody, including you, has the workbook open and the message keeps coming back, delete the leftover ~$ owner file. This only applies to files on your own drive or a network share, not to files you open from OneDrive or SharePoint in the browser.
File saved on your PC
- Open File Explorer and go to the folder that holds the workbook.
- Select View > Show > Hidden items so hidden files appear.
- Look for a file with the same name as your workbook but starting with ~$.
- Select it and press Delete. Open the workbook again.
File saved on a network drive
On a network share the owner file may be marked as a protected system file, so turning on hidden items is not enough.
- In File Explorer, select See more (the three dots) > Options, then the View tab.
- Under Advanced settings, clear Hide protected operating system files (Recommended), answer Yes to the warning, and select OK.
- Go to the network folder, delete the ~$ file with the workbook's name, and reopen the workbook.
- Go back to the same Options screen and select Hide protected operating system files (Recommended) again.
Check with the named person before deleting a shared owner file
On a network drive, the owner file may belong to a colleague who really is editing. If you delete it while they work, you can both end up saving over each other. Ask the person named in the message first, and only delete it when they confirm the workbook is closed on their side.
Excel file locked for editing by another user
If the name is a real coworker and the file sits on a shared drive, they have it open in desktop Excel, and you can only view the last saved version until they close it. That is by design, not a fault.
Your options, from least to most disruptive:
- Choose Notify and keep working on something else. Excel alerts you when the file is free.
- Ask them to close the workbook, or, if it lives in a SharePoint library with check-out turned on, to check it back in.
- If you need to work right now, open it read-only and use File > Save As to save your own copy. You will have to merge your changes into the original by hand later, so keep track of what you edit.
If the workbook opens but the top-right corner says Viewing, the problem is permission rather than a lock. In Excel for Microsoft 365, select Viewing > Request more access, choose Ask to edit, and add a note if you like. The owner gets an email with the option to grant or decline.
The same lock also applies to Word and PowerPoint files on a shared drive; Microsoft covers it in file is locked by another user and commands are grayed out.
Excel file locked for editing on SharePoint or OneDrive
A workbook stored in OneDrive or SharePoint in Microsoft 365 should let several people edit at once. When it shows a lock instead, something is blocking co-authoring, and one person's setup is enough to lock everyone else out.
Everyone needs a version that co-authors
Co-authoring works in Excel for Microsoft 365 (Windows and Mac, signed in with the subscription account), Excel for the web, and the Excel apps for Android and iOS. Excel 2016, 2019 and 2021 LTSC do not co-author. Microsoft's locked for editing article spells out the catch: if one person opens the file in a version without co-authoring, everyone else gets the "locked" error. When nobody is sure which version they have, ask everyone to open the file in Excel for the web from a browser.
The file has to be in a supported place and format
- Location: OneDrive, OneDrive for Business, or SharePoint in Microsoft 365. Network paths such as \\server\folder, Dropbox, Box, Google Drive, local folders and SharePoint on-premises libraries do not support co-authoring.
- Format: .xlsx, .xlsm or .xlsb. For an older .xls or a .csv, use File > Save As > Browse, pick one of those under Save as type, and share the new file. The Strict Open XML Spreadsheet format is not supported either.
- Sync app: if you open the file through the OneDrive folder on your PC, make sure the OneDrive sync app is up to date and not paused. Clicking the OneDrive cloud icon in the taskbar shows any sync errors or conflicts. If the sync itself is stuck, the steps in OneDrive not syncing on Windows 11 help.
Features inside the workbook that block co-authoring
Ask whoever has the file open to check these on Windows, starting with the first:
- Turn off the legacy Shared Workbook feature if it is on.
- Remove the password or restricted access under File > Info > Protect Workbook, if your situation allows it.
- For each table or PivotTable connected to outside data, select it, open the Table Design tab (Table Tools Design in older versions), go to Refresh > Connection Properties, and clear Refresh data when opening file.
- Turn off an add-in that might hold the file: File > Options > Add-ins, choose Excel Add-ins next to Manage, select Go, and clear its check box.
Checked out in a SharePoint library
If the library uses check-out, the person who checked the file out can open the library in a browser, select the file's ... menu and choose Check in. When that person is away, a site owner can override it from Library Settings > Manage files which have no checked in version.
Excel file locked for editing on iPhone or Android
On a phone or tablet, the lock usually means one of three things: someone else is editing the shared file, the Excel app still has the file open in the background, or the author marked the workbook as Final. A password-protected file will not open at all without the password, and there is no way around that.
- Background app: close Excel completely from the app switcher (swipe it away on iPhone or Android) and open the file again. On Android, if the app will not close, go to Settings > Apps > Excel and tap Force stop.
- Someone else editing, or marked as Final: make a copy and edit that instead. On Android, tap File > Save As, choose a location and name, and tap Save. On iPad, tap the file icon and then Duplicate or Name. Mark as Final can only be turned off in Excel on a computer, not from a phone.
Microsoft's page on unlocking a file on a mobile device has the same steps for Word and PowerPoint.
When the lock still will not clear
A few less obvious things can hold a workbook open on Windows: antivirus scanners, real-time backup tools, and Windows Search indexing can all keep a file busy while they process it. Restarting the PC closes every program and releases every file handle, so it is a fair last step before you escalate. If the file is on a company network share or SharePoint site and it is still locked after a restart, the person who can release it is your IT team or the site owner, since they can see who holds the lock and override a check-out you cannot.
Comments
Post a Comment