Fixing an xlsx file that fails to open usually involves checking file extensions, repairing the workbook, or updating the Excel application itself. You can also try opening the file in a web browser or a different spreadsheet program as an alternative method.
What You'll Need
- A computer running Windows or macOS with Microsoft Excel installed (or an alternative spreadsheet program like LibreOffice Calc).
- The corrupted or problematic .xlsx file you are trying to access.
- An active internet connection is required to download Excel updates or use the online web version of Excel.
- A secondary storage medium, such as an external hard drive or USB flash drive, is useful for backing up a copy of the file before attempting repair operations.
Step-by-Step
- Verify the File Extension. Ensure the file is truly an .xlsx file. Sometimes files are renamed to .txt or .bak to hide them, and double-clicking a non-Excel file will not open it in the correct application. Right-click the file and select "Open With." If Excel is not in the list, click "Choose another app" and look for Microsoft Excel. If you see "Excel Binary Workbook (.xlsb)" listed, it may be the wrong file type.
- Attempt to Open via the File Menu. Sometimes double-clicking fails while the File > Open menu succeeds. Launch Excel, go to the "File" tab, and select "Open." Browse to the folder containing the file, select it, and click "Open." If this works, the issue was likely a file association glitch rather than a corrupted file.
- Use the "Open and Repair" Feature. This is the most direct way to fix a damaged workbook. In the "Open" dialog box, select the problematic file and do not click "Open" directly. Instead, click the small arrow next to the "Open" button and select "Open and Repair." Follow the on-screen prompts. Excel will attempt to extract the data from the file. If the first attempt fails, choose the "Repair" option to attempt to fix any corrupt data without extracting it, or the "Extract Data" option to salvage as much information as possible.
- Check for Excel Updates. Outdated software can sometimes fail to read newer file formats or corrupted data structures. Go to "File" > "Account" > "Update Options" > "Update Now." Ensure your version of Excel is the latest available for your subscription or license type.
- Try Opening in a Web Browser. If the file is not heavily formatted (e.g., it contains mostly raw data and simple formulas), it may display correctly in Chrome, Edge, or Safari. Drag and drop the file into the browser window. If the data appears readable, you can copy and paste it into a new Excel file to save your work.
- Use a Different Spreadsheet Program. If Excel cannot read the file, other programs like LibreOffice Calc (free) or Google Sheets may be able to. Download and install a trial version of LibreOffice, open the file in Calc, and save it as an .xlsx file. This process can often strip out the corruption that is preventing the original file from opening.
- Check for File Size and Corruption. If the file is extremely large (several gigabytes) or appears to be empty, it may be corrupted or incomplete. Try opening a known good file of similar size to see if Excel is functioning correctly. If other files fail, the issue is likely with the application itself, not the specific file.
Common Mistakes
One common mistake is assuming a file is corrupted simply because it is named .xlsx. Sometimes a file is actually a .zip archive containing XML data, and if that archive is damaged, Excel cannot parse it. Another frequent error is attempting to open a file that is locked by another user or is currently being saved by a different process. Always verify that the file is not read-only or locked before troubleshooting corruption.
Tips
Always keep a backup copy of your important files in two separate locations, such as on your computer and in the cloud. When saving a repaired file, give the new version a distinct name to avoid overwriting the original corrupted file. If you are working with sensitive data, be aware that online web versions of Excel may have different privacy policies regarding where data is processed.
Troubleshooting
If the file still fails to open after trying the "Open and Repair" feature, the file may be beyond repair. In this case, your best option is to use data recovery software designed for spreadsheet files. These tools scan the file for recoverable text and tables. Be cautious when using third-party recovery software and ensure it comes from a reputable developer to avoid installing malware. If the file is part of a shared network drive, contact your IT administrator to check if the drive permissions have changed or if the file is locked by a server-side process.
Frequently Asked Questions
Why does an Excel file show a "File is corrupt and cannot be opened" error?
This error usually indicates that the file structure has been damaged, possibly due to a sudden power loss while the file was being saved, a computer crash, or a virus infection. The "Open and Repair" tool in Excel is the primary method to attempt to fix this.
Can I open an .xlsx file without Microsoft Excel?
Yes, you can open .xlsx files using Google Sheets (in a web browser), LibreOffice Calc (free software), or Numbers (for Mac). These programs are often able to read the file even if Excel cannot.
What does it mean if Excel says the file format and extension don't match?
This means the file has been renamed from its original extension (like .xls or .xlsx) to something else (like .txt or .zip). Rename the file back to its original extension to ensure Excel recognizes it correctly.
Is it safe to email a large Excel file?
Email providers often limit the size of attachments. If the file is larger than the limit, you should use a file compression service to zip the file first, or upload it to a cloud storage service and share the link instead.
Why does the file open in read-only mode?
A file opens in read-only mode if it is saved on a network drive with restricted permissions, if the file was opened from an email attachment, or if Excel detects that another user already has the file open. You can usually save a copy of the file locally to edit it.
How do I recover data from a file that won't open?
Use the "Open and Repair" function in Excel. If that fails, try opening the file in Google Sheets or LibreOffice Calc. If those fail, specialized data recovery software is your next option, though it may not recover 100% of the data, especially if the file was heavily corrupted.