The quickest way to release an Excel file locked for editing is to find whoever still has it open, close it there, and then close the file in your own copy. Excel locks a workbook with a small owner file whenever someone opens it for editing, and that lock is only released when the last person who opened it actually saves or closes it. If you know who is holding the lock, ask them to close the file. If you cannot reach them, you can usually open a read-only version, copy it, save under a new name, and work from a duplicate until the lock clears.

The steps below are written mainly for Excel on Windows, with notes where macOS differs. Menu labels can differ slightly by Excel version, device and region, so the same command may appear under a slightly different name.

What You'll Need

  • A copy of Excel and access to the network folder, SharePoint library, OneDrive location or email attachment where the file lives.
  • Permission to edit the file, if it is on a shared drive or document library.
  • Contact with whoever else might have the file open, or an admin who can check who has it open.

Step-by-Step

  1. Note the exact message. Write down the wording you see. Excel may say the file is locked for editing by another user, that it is open by you in an instance that has crashed, or that it is in use. The wording tells you which cause you are dealing with, because the fixes differ.
  2. Check your own open windows first. On Windows, look at the taskbar and the Excel window titles. The most common cause is a second Excel window you forgot about, or a workbook left open on a second monitor. Bring each window forward and close it properly with the close button, not just by hiding it.
  3. Close it from Task Manager if you cannot see the window. Press Ctrl+Shift+Esc, look through the running apps and background processes for Excel, and right-click to close it. On macOS, press Option+Command+Esc and quit Excel from there. This is safe for a file you already saved, but any unsaved changes in a crashed window are lost. Excel normally offers to recover recent versions when you reopen it.
  4. Ask the named user to close it. If the lock message names a person, message them and ask them to save and fully close the workbook. A workbook minimised or left open overnight holds its lock the whole time, so the file stays locked until they act.
  5. Open a read-only copy. When Excel offers the choice, pick Read-Only. You can then read, review and copy the contents while the other person finishes. Make your changes in a new copy with File > Save As and a different file name.
  6. Break the lock from a server or shared folder only when you are sure. On a Windows file server, open the folder in File Explorer, turn on the option to show hidden items, and look for a temporary file with the same name as your workbook whose name starts with a tilde (~). That file is the lock owner record. Close it, and the lock clears if no one really has the workbook open. This only works for ordinary network folders, not for OneDrive or SharePoint. Never do this while another person is genuinely editing, and never delete the workbook itself.
  7. For OneDrive or SharePoint, use the cloud instead. Open the file in Excel for the web. In these places, co-authoring means several people can work at once, and someone opening a file in the desktop app does not block a browser session. If the web version opens fine, use it to make your change or to save a fresh copy.
  8. Take ownership of the file when the lock is stale. For a file on a local drive, the lock is generally released once Excel has fully closed. If it persists after a restart, check with the file's owner or your IT contact, or copy the file to your own drive, delete the original lock state by saving under a new name, and confirm before replacing the shared copy.
  9. Save it under a new name if you must keep working. File > Save As, choose a new name such as workbook-v2.xlsx, and tell the team which copy is current. This avoids overwriting anyone's in-progress edits.

Common Mistakes

  • Deleting the workbook instead of the temporary lock file. Deleting the workbook deletes everyone's work, not just the lock.
  • Breaking the lock while someone is actively editing. Their save can fail or their changes can be discarded.
  • Assuming the lock is a crash. Usually it is a colleague's open window, and a two-line message to them is all it cd takes.
  • Editing a read-only copy and then saving over the original. Saving over a shared file can overwrite newer edits made by someone else.
  • Leaving the workbook open overnight. Even a minimised Excel window holds the file lock and blocks every other user.

Tips

  • Use File > Save As with a versioned name (workbook-v2, workbook-final-2) so naming never implies you have taken the master copy.
  • For files that many people touch, read-only access for reviewers prevents the problem. Folder permissions can set this.
  • If you consistently see the lock message on files you have never opened, someone else is leaving a stale session open. Ask a file owner to check who has the workbook open in the server's management tools.
  • Keep local copies of important shared files, and use OneDrive or SharePoint if possible.

Troubleshooting

If closing every Excel window does not clear the lock, work from simplest to most forceful. First fully restart the computer. That clears most stale locks left by a crashed session. Second, sign out of your Microsoft account in Excel and sign back in, which refreshes your permissions to the file. Third, check whether the file lives in a folder synced by OneDrive; a large sync backlog can leave a file showing as locked. Open the OneDrive icon and check for errors.

If the file is on SharePoint, open it in Excel for the web and use the option to check the file's open status. If the file lives on a corporate server, the folder owner or IT can see who has the file open and close their session for them. If the lock message mentions a corrupted file or unreadable content, open the file in a fresh copy and use Excel's recovery option when prompted, then save under a new name. If nothing clears the lock and you need the content, open the file read-only, copy the data to a new workbook and save it with a new name, then contact the file's owner.

Frequently Asked Questions

Why does Excel say the file is locked for editing?

Excel writes a small temporary file next to the workbook when someone opens it for editing. That file tells other users the workbook is in use. The message appears whenever that record exists, whether the other person is actively editing or their session crashed and left the record behind.

How do I get the lock without breaking anything?

Open the file read-only, save your own copy under a new name, and ask the other person to close their session. Only remove a temporary lock file from a network folder when you are certain no one is editing.

Does opening in Excel for the web avoid the lock?

Usually yes on OneDrive and SharePoint, because co-authoring lets several people work at once. A browser session generally is not blocked by someone else's desktop copy.

What if the person holding the lock has left the company?

Ask the folder owner or IT to close their session, or have the file's owner reset permissions. Do not delete temporary files on a shared server unless you have confirmed no one is editing.

Can I tell who has the file open?

On OneDrive, SharePoint and many corporate servers, the file's details or management tools show who has it open. On a plain network folder, the lock message may name the user, and the folder owner can check open sessions.

Will closing my laptop release the lock?

Closing the lid does not close Excel. The workbook stays open in memory if it is merely put to sleep, so the lock remains. Use Save then File > Close, or quit Excel completely.