Technical Anshu
Tutorials Blog
🔒 File Locking

Excel File Locked for Editing Why the Second User Gets Read Only

One clerk opens the billing workbook. The second clerk gets a cold message: locked for editing, open read-only or wait to be notified. Nothing is broken and nobody did anything wrong. This page explains the lock, the invisible file that holds it, and how to work with it instead of against it.

✍️ Technical Anshu🪟 Windows 10 / 11⏱️ 7 minute read
🎥 Watch the full video — offline Excel collaboration set up step by step on a local network

A normal Excel file on a shared folder follows an old, strict rule of Windows networking: the first person to open it owns it, and everyone after them is a spectator until it closes. That is not a bug or a permissions mistake — it is how the SMB file-sharing protocol protects a file from two programs writing over each other at the same time. Understanding the lock takes five minutes and ends years of office confusion, because every part of the behaviour — the dialog, the ghost locks after a crash, the mysterious 'another user' — follows from this one design.

File in Use dialog — what Excel actually shows the second user
MessageLocked for editing by 'Ramesh'
Option 1 — Open Read-OnlyLook, but any change needs Save As
Option 2 — NotifyExcel tells you when the file frees up
Option 3 — CancelWalk away and try later
What is missing from this dialogANY EDIT TOGETHER BUTTON

This is the real wording of the classic Excel lock dialog. On an ordinary workbook these three buttons are the whole menu — simultaneous editing is simply not on it.

1

How the Lock Works — First Opener Wins

When Excel opens a file from a network share, the host PC records an exclusive lock for that session. Excel itself also drops a small hidden owner file in the same folder — for a file called Sales.xlsx the lock file is named ~$Sales.xlsx — which is how the next PC learns who holds it.

  1. The lock exists for the entire time the file stays open, even if the owner walks away for lunch
  2. A read-only opener can view and print, but saving writes nothing back to the master file
  3. If a read-only user edits anyway and presses save, Excel forces Save As — and a second, diverging copy is born
  4. The lock is released the moment the owner closes the file — that, and nothing else, frees it
2

The Three Honest Ways Past a Locked File

There is no setting that makes a normal workbook multi-writer. You choose between waiting, viewing, or changing the file's whole mode of working.

  1. Wait or ask: the owner closes the file, or clicks Notify in reverse — you get alerted when it is free. Right for quick, occasional edits
  2. Open read-only and plan: review the numbers now, note your changes, and enter them in your own turn. Right for reports and checking
  3. Convert the file to a shared workbook: the legacy Share Workbook mode changes the rules so many users hold the file open together, merging on save — this is the video's method and this page set's core guide
3

Ghost Locks — When the File Is Locked by Nobody

Sometimes the dialog blames a user who swears the file is closed, or names 'another user' with no name at all. Usually the owner's Excel or PC crashed and the lock was never released cleanly.

  1. First confirm the named person truly has Excel closed — including a frozen copy still running in the background
  2. On the host PC, open compmgmt.msc, go to Shared Folders → Open Files, find the workbook and close that open file entry
  3. Only after the session is closed everywhere, a leftover ~$ owner file in the folder can be deleted — deleting it while someone genuinely has the file open invites corruption
  4. Then open the workbook once, save it cleanly, and close it — the lock story resets
4

A Lock Is Not a Permissions Problem

Two different refusals get confused daily. A lock says someone is in the file. A permissions error says you are not allowed — 'Access denied' or a plain read-only open with no dialog. Permissions are fixed on the share and folder security settings for that user account; locks are fixed by closing files or changing how the team shares. Diagnosing which of the two you are facing takes one look at the message and saves an hour of checking the wrong thing.

🔴 Never force it with a copy. When a file is locked, the tempting shortcut — Save As, edit the copy, paste it back later — is exactly how offices end up with two wrong files and no right one. If edits cannot wait, convert the workbook to shared mode properly instead of forking it.

🎥 Watch How the Shared Workbook Removes the Lock

The video shows the shared mode switched on, after which the locked-for-editing wall simply stops appearing for the team.

▶️ Watch Full Video
❓ Common Questions (FAQ)

Why does Excel say the file is locked by me when I just opened it

Your own earlier session still holds it — usually an Excel window left open on another screen, or a crashed Excel process still running. Check for other Excel windows, look in Task Manager for a leftover EXCEL.EXE process and end only that process, then try again. On a share, the host's Open Files list in Computer Management shows the truth.

Can the second user save changes if the first user only opened it to look

Not while the first session holds the editing lock, even if that person never types a word. Excel does not downgrade an open file to viewing automatically. The practical fixes are for the first user to close it, or to open genuinely read-only files through the Open dialog's arrow menu, which offers Open Read-Only explicitly.

Does putting the file on OneDrive or Google Drive remove the lock

For the cloud services, co-authoring replaces locking when everyone edits through the web or a modern signed-in Excel — but copies synced to local folders and opened as plain files can still collide, which is why sync tools produce conflicted copies instead. On a plain office network share with desktop Excel, locking remains the rule until the file is put into shared workbook mode.

This guide follows the offline Excel collaboration method in the Technical Anshu video above • Stuck on a step? Ask in the video comments and the community will help 🙏