Fix Excel Cannot Open a File Beginning with ~$: Temporary Lock File Error
Question details
The user is trying to open an Excel file whose name starts with ~$ and receives an error that the format or extension is invalid.
- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to open an Excel file directly from a local folder, shared network drive, or cloud storage directory.
- Observed behavior
- Excel fails to open the file and displays an invalid format or extension error, because the selected file is a temporary owner lock file, not the actual spreadsheet data.
Ensure you have 'Show hidden files' enabled in your operating system's file explorer so you can distinguish between hidden system lock files and your actual Excel workbooks.
Open the Original Workbook Instead of the Lock File
Bypass the ~$ file and locate the actual .xlsx or .xls file to access your data.
A filename beginning with ~$ indicates a temporary owner or lock file created by Excel to manage read/write access. It does not contain any of your spreadsheet data. You must open the original file instead.
Look at the name of the file you are trying to open. If it is named `~$MyReport.xlsx`, the actual workbook is named `MyReport.xlsx`.
Browse the same folder or directory for the file without the `~$` prefix.
Double-click the normal workbook file to open it in Excel safely.
Recover the Workbook if the Original is Missing
If you can only see the ~$ file and the original workbook is missing, try recovering it through Excel's built-in features or cloud backups.
Seamlessly Manage and Edit Spreadsheets with WPS Office
WPS Office offers a robust, lightweight, and highly compatible alternative to Microsoft Office. It flawlessly handles .xlsx, .xls, and .csv files while providing an intuitive file management system that minimizes confusing temporary file errors.
- 1. Download WPS Office: Visit the official WPS website and download the free installer for your operating system.
- 2. Install the software: Run the setup file and follow the quick on-screen instructions to install the suite.
- 3. Open your files directly: Launch WPS Spreadsheets and open your .xlsx files instantly without format compatibility errors.

Frequently Asked Questions
What is a file that starts with ~$ in Excel?
A file beginning with ~$ is a hidden temporary lock file (or owner file) created by Excel when a workbook is opened. It stores the login name of the person editing the file to prevent other users from making conflicting changes.
Can I safely delete the ~$ temporary lock file?
If the corresponding Excel workbook is currently open, you should not delete the lock file. However, if the workbook is fully closed and the lock file remains behind (usually due to a software crash), it is safe to delete it.
How do I recover my data from a ~$ file?
You cannot recover spreadsheet data directly from a ~$ file because it is typically less than 1KB in size and only contains locking metadata, not your actual content. You must find the original workbook or use AutoRecover to restore your data.
Why can I suddenly see these temporary lock files in my folder?
Lock files are marked as hidden system files by default. You can see them because your computer's folder view settings have been changed to 'Show hidden files, folders, and drives'.




