To repair a corrupted Excel file, use the built-in Open and Repair feature: in Excel, go to File > Open > Browse, select the file, click the arrow next to Open, and choose Open and Repair. If that fails, try recovering unsaved workbooks, using the Recover Unsaved Workbooks option, or extracting data with a macro or third-party tool. This guide covers every practical method, from simple built-in tools to manual data recovery, with step-by-step instructions for Excel 365 on Windows.
Why Excel Files Get Corrupted
Corruption happens when the file’s internal structure is damaged, making it unreadable. Common causes include:
- Unexpected power loss or system crash while saving
- Network or cloud sync errors (e.g., OneDrive not syncing properly)
- Storage media issues (bad sectors on a USB drive or hard disk)
- File transfer interruptions (copying over an unstable connection)
- Large files with complex formulas or macros that trigger bugs
- Virus or malware infection that alters file content
Understanding the cause helps you choose the right repair method. For example, if the file won’t open at all, Open and Repair is your first shot; if it opens but shows errors, you might need to copy data to a new workbook.
Method 1: Use Open and Repair (Built-in Tool)
This is the most straightforward approach and works for most minor corruptions.
- Open Excel (a blank workbook is fine).
- Go to File > Open > Browse (or press Ctrl+O on Windows, Cmd+O on Mac).
- Navigate to the corrupted file, but don’t double-click it. Instead, click once to select it.
- Click the small dropdown arrow next to the Open button.
- Choose Open and Repair.
- Excel will prompt you to either Repair or Extract Data.
Select Repair first. If that fails, run Open and Repair again and choose Extract Data, which pulls values and formulas without formatting. Note: Open and Repair also exists in older Excel versions (2010, 2013, 2016, 2019) and Excel for the web, but the web version only offers a basic repair without extraction.
Method 2: Recover Unsaved Workbooks
If the file was never saved but you had autosave on, or if Excel crashed, you might find a temporary copy.
- In Excel, go to File > Info > Manage Workbook (or Manage Document on Mac).
- Click Recover Unsaved Workbooks.
- A dialog box opens showing any unsaved files. Look for a file with a name like
YourWorkbook.xlsxfollowed by a timestamp. - Open it and immediately save it with File > Save As.
This works only if the file was created in Excel and you have the AutoRecover feature enabled (default). To check settings, go to File > Options > Save and ensure Save AutoRecover information every X minutes is checked.
Method 3: Use the XML-Based File Structure
Modern Excel files (.xlsx) are ZIP archives containing XML files. If the file opens with a warning but not fully, you can manually extract data.
- Make a copy of the corrupted file and change its extension from
.xlsxto.zip. - Right-click the ZIP file and choose Extract All.
- Look inside the extracted folder: you’ll see folders like
xl,docProps, and_rels. - Inside
xl, findworksheetsand opensheet1.xmlin a text editor (like Notepad). - You’ll see raw XML with cell references. You can copy the text and use Excel’s Data > From Text/CSV to import it, or use a script to parse it.
This method is technical but can recover data when Excel won’t even open the file. Be aware that formulas and formatting are lost.
Method 4: Use a Third-Party Recovery Tool
When built-in methods fail, specialized software can often salvage data. Popular options include:
- Stellar Repair for Excel – recovers tables, charts, and formulas
- DataNumen Excel Repair – handles severely corrupted files
- SysTools Excel Recovery – batch recovery and preview
These tools typically cost between $50 and $100 for a license. Free trials often let you preview recovered data but not save it. Before paying, try the free methods above—they solve most cases. If you use a third-party tool, always save the repaired file to a different location to avoid overwriting the original.
Preventing Future Corruption
Once you’ve repaired your file, take steps to avoid a repeat:
- Enable AutoSave (File > Options > Save) and set it to every 5 minutes.
- Use File > Save As to create backups regularly, especially before major edits.
- Store files on a reliable drive; avoid saving directly to USB sticks or network shares that disconnect.
- Keep Excel updated—Microsoft releases fixes for known corruption bugs.
- If you use macros, save a backup copy before running any VBA code, as macros cannot be undone with Ctrl+Z.
Frequently Asked Questions
Can I repair an Excel file that won’t open at all?
Yes, try Open and Repair first. If it fails, use the ZIP method or a third-party tool. Sometimes the file is not corrupted but the file association is broken—try opening Excel first, then File > Open and navigate to the file.
What’s the difference between Repair and Extract Data?
Repair attempts to fix the file structure and keep as much original formatting and formulas as possible. Extract Data pulls only the values and formulas into a new workbook, discarding formatting, images, and charts. Use Extract if Repair fails or if you only need the raw numbers.
Will I lose my formulas and formatting after repair?
It depends on the method. Open and Repair usually preserves both if successful. The ZIP method and third-party tools may lose formatting. Always check the repaired file carefully and compare with any backup you have.
How do I recover a file that was never saved?
Use File > Info > Manage Workbook > Recover Unsaved Workbooks. This shows files from the AutoRecover folder. If you don’t see it, search your system for files ending in .asd (AutoRecover files) or check C:\Users\[YourName]\AppData\Roaming\Microsoft\Excel\.
Can I repair a corrupted .xls file (old format)?
Yes, Open and Repair works with .xls files too. The ZIP method does not apply to .xls (binary format), but you can try opening it in Excel and using File > Save As to convert to .xlsx, which may resolve some issues.
Is it safe to use online Excel repair services?
Be cautious. Uploading a sensitive file to an online service poses a privacy risk. If you must, use a reputable service and ensure the file contains no confidential data. For most users, local methods are safer and sufficient.
Conclusion
Repairing an Excel file is often possible with the built-in tools. Start with Open and Repair, then try Recover Unsaved Workbooks, and only then consider manual XML extraction or third-party software. Always keep backups to minimize the impact of future corruption. If you’re stuck, the Excel community forums are a helpful resource—many users have shared solutions for specific error messages.
Related
- Basic Data Entry Jobs: What They Really Involve
- Generate Random Number in SAS: 4 Easy Ways
- Data Entry Qualification: Skills, Training & Certifications
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Files List: Common Formats, Extensions, and UsesThe main Excel file types are .xlsx, .xlsm, .xlsb, and the older .xls format; Excel also uses templates…
- Online Computer Skills Courses for Data EntryYes, there are many reputable online courses that teach the computer skills needed for data entry, ranging from…
- Insert Paste Row Shortcut in Excel: Keyboard GuideIn Excel for Microsoft 365 on Windows, copy the row, select the row number where it should go,…
- Excel Export to CSV: Does It Keep Cell Formatting?No. Exporting an Excel worksheet as a CSV file does not preserve cell formatting such as fonts, colors,…
- Excel Insert Row Shortcut: Windows, Mac, and More ExplainedIn Excel for Microsoft 365 on Windows, select the row where you want a new row, then press…
- Cameras on Traffic Lights: How They Work & What They CatchYes, many traffic lights are equipped with cameras, but they are not all the same: most are used…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.