365 Spreadsheet locked for editing

Abstract: Resolve Excel 365 locked for editing errors by clearing residual temporary files or verifying sharing status in OneDrive and SharePoint.

Created: 2026-08-01 by
The "locked for editing" message in Microsoft Excel 365 typically indicates that another user is actively working on the file via OneDrive or SharePoint, or that a previous session did not close properly. You can resolve this by checking the sharing status, locating and deleting residual temporary files, or forcing an exclusive lock if you are certain no one else is using it.

Understanding Why Excel Locks Files

When you attempt to open a spreadsheet stored in a cloud location like OneDrive for Business or SharePoint Online, Excel employs a concurrency control mechanism. This feature prevents data corruption that could occur if two people edited the same cell simultaneously. The application places a read/write lock on the file while it is open. If you see a notification stating that the file is locked, it means the system believes the file is currently in use. There are two primary scenarios where this occurs. First, a colleague may have the workbook open in their browser or desktop app. Second, and more commonly for individual users, a background process such as an Excel crash, a sudden power loss, or a network interruption may have left a "ghost" lock on the file. In these cases, the file appears locked even though no human is actively typing in it. Understanding this distinction is crucial because the solution differs depending on whether the lock is intentional (shared work) or accidental (stale session).

Step-by-Step: Unlocking the Spreadsheet

Before attempting aggressive fixes, you should verify the current state of the file through the web interface. This is the safest method because it provides real-time visibility into who has access. First, navigate to your OneDrive or SharePoint folder in a web browser. Locate the specific spreadsheet file. Right-click the file and select Manage Access or look for the Sharing icon. Here, you will see a list of users who currently have the file open. If you see yourself listed under "People with access," check if there is a green indicator showing you are currently editing. If you do not see anyone else, but the file still locks you out locally, proceed to the next step. If the file is shared with others and you need to edit it exclusively, you must ask those users to save and close their copies. Alternatively, you can request them to grant you "Edit" permissions if they only have "View" rights, although this rarely causes the specific "locked for editing" prompt unless they are actively viewing it. For detailed guidance on managing user permissions, you might find our article on Can/will anyone help me with a Formula useful, as it touches on collaborative editing environments.

Clearing Residual Temporary Files

If no other users are accessing the file, the lock is likely caused by a hidden temporary file left behind after a crash. Excel creates backup files with names starting with an asterisk (*) or containing "~$" when a document is opened. These files hold the lock. To remove them, you must locate the directory where the original file is stored. Navigate to the folder in Windows Explorer. Ensure that "Hidden items" are visible in the View tab of the ribbon. Look for files that match the name of your spreadsheet but start with ~$. For example, if your file is Report.xlsx, you might see ~$Report.xlsx. Delete these temporary files. Once deleted, try opening the main file again. This action removes the stale lock held by the operating system's file handle. It is important to note that you cannot delete these files if they are still in use. If you receive a permission error when trying to delete them, restart your computer. This clears all file handles and releases any zombie locks held by background processes. After rebooting, delete the temp files and reopen your spreadsheet.

Forcing Exclusive Access via Safe Mode

In rare cases where the standard unlock methods fail, you may need to force Excel to take exclusive control of the file. This involves opening Excel in Safe Mode, which disables add-ins and startup routines that might be interfering with the file lock. Hold down the Ctrl key while launching Excel. Continue holding it until you see the prompt asking if you want to start in Safe Mode. Confirm the action. Once Excel opens, go to File > Open and browse to your locked spreadsheet. By bypassing normal startup procedures, you often gain immediate access to the file. Save your changes immediately. This process effectively breaks the lock by establishing a new, clean session. If you frequently encounter issues with column widths or formatting after unlocking, you might want to review our guide on Excel VBA Code Autofit - How to Automatically Adjust Column Width in Microsoft Excel to ensure your layout remains intact after the restoration process.

Preventing Future Lock Issues

To minimize the occurrence of locked files, always save your work frequently using Ctrl + S. Enable AutoSave in the top-left corner of the Excel window if you are working on OneDrive or SharePoint. This feature saves changes continuously to the cloud, reducing the risk of large unsaved blocks that can cause prolonged locking during crashes. Additionally, avoid keeping files open unnecessarily. Close workbooks when you are done for the day to release the lock for colleagues. Familiarize yourself with the sharing settings in your organization. If you work in a team, establish a protocol for notifying others before making major structural changes to a shared workbook. This reduces the frequency of conflicts and ensures smoother collaboration across your department.

Frequently Asked Questions

Why does my file show as locked even though I am the only user?

This usually happens due to a crashed Excel session that failed to release the file handle. A temporary file remains in the folder, signaling to the system that the document is still open. Deleting the ~$ prefixed file in the source folder resolves this issue.

Can I edit a file that is locked by another user?

No, you cannot edit the live version while another user has write access. You can view the file, but any changes you make will not sync until the owner closes it. Some versions allow you to create a copy to edit independently, but this does not update the original file.

What should I do if I cannot delete the temporary lock file?

If Windows prevents you from deleting the file, it means a process is still holding it open. Restart your computer to clear all active file handles. After the reboot, the lock should be released, allowing you to delete the temporary file and open your spreadsheet normally.

Does turning off AutoSave help prevent locking issues?

Turning off AutoSave actually increases the risk of locking issues because changes are saved less frequently. If a crash occurs, the entire file may become corrupted or locked. Keeping AutoSave enabled ensures that small, frequent checkpoints are saved to the cloud, minimizing data loss and lock duration.

How can I check who currently has my Excel file open?

Go to the file’s location in OneDrive or SharePoint online. Right-click the file and select Manage Access. The panel will display a list of users who currently have the file open for editing. This gives you real-time visibility into who is occupying the lock.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More