How to Repair an Excel File: A Practical How-To (2026)

Learn practical, safe methods to repair an Excel file, recover data, and prevent future corruption with built-in tools, backups, and best practices from XLS Library.

XLS Library
XLS Library Team
·5 min read
Repair Excel File - XLS Library
Photo by ClickerHappyvia Pixabay
Quick AnswerSteps

To repair an Excel file, start with built‑in recovery options and a clean re-save. Open the file with Open and Repair, try AutoRecover versions, and extract intact data into a new workbook. If corruption remains, copy viable sheets, use Power Query to recover tables, and back up frequently to prevent future loss.

Why Excel files get corrupted

Corruption can happen for many reasons, from abrupt power losses to software conflicts. According to XLS Library, even well-structured workbooks can become unstable when large files, too many formulas, or external links are involved. In practice, the best approach is to treat corruption as a puzzle: identify symptoms, isolate the damage, and recover what you can without overwriting good data. In this section we examine common signs (missing data, unreadable sheets, or error messages like 'We found a problem with some contents...') and explain what each symptom means for your recovery plan. We'll discuss how to minimize risks when you’re saving, syncing to cloud storage, or sharing workbooks across devices. By understanding how Excel stores data—cells, styles, metadata, and external connections—you gain better footing for the repair process.

Common causes of corruption

There are several frequent triggers behind corrupted Excel files. Sudden power outages during a save can leave a workbook in an inconsistent state. Network interruptions while saving to a shared drive often result in partial writes. Incompatible add-ins or macros can introduce faulty code or misapplied formulas. Disk errors on hard drives or USB devices can corrupt the file's components. Extremely large workbooks with many external data connections increase the risk. Finally, simultaneous edits by multiple users on a single file without proper version control commonly leads to conflicts. Understanding these causes helps you prevent future issues by adopting safer save habits, enabling version history, and keeping software up to date. A conservative, preventative approach—such as saving incremental versions and avoiding irrelevant add-ins—dramatically reduces risk.

Quick wins: Open and Repair and AutoRecover

Excel provides built-in recovery tools that frequently salvage data from a corrupted workbook. Start by opening the file with File > Open, then click the small arrow next to Open and choose Open and Repair. You will typically see two options: Repair and Extract Data. If Repair succeeds, immediately save the result to a new file to avoid reintroducing corruption. If Repair cannot fix the file, select Extract Data to salvage values, formulas, and formatting that can be reassembled in a fresh workbook. While you’re at it, verify that AutoRecover is enabled in Excel Options (Save) so that future crashes produce recoverable versions. When you recover data, always save to a new, clean workbook and keep the original copy as a reference.

Restoring data safely: exporting to a new workbook with Power Query

With salvageable data in hand, create a new workbook intended to receive the recovered content. Power Query is a powerful ally for reconstructing data connections and cleaning irregularities. In the Data tab, choose Get Data > From File > From Workbook, then select the repaired file or the extracted data. Use the Power Query Editor to adjust column types, fix misformatted data, and remove broken links. After shaping the data, choose Close & Load to bring the clean tables into the new workbook. Save with a clear version name and document the recovery steps to assist future audits.

Advanced recovery: using XML hacks and caveats

For heavily corrupted files, more advanced techniques can uncover data that the standard recovery methods miss. If you’re comfortable, make a copy of the file and treat it as a salvage project. Rename the file extension from .xlsx to .zip and extract it. Inside, navigate to xl/worksheets and open the sheetXML files in a text editor or viewer. You can copy readable data from these XML files and paste into a new workbook as plain values. This method exposes the raw content of cells and can salvage textual data even when the workbook structure is damaged. Use with caution: editing XML directly can worsen corruption, and this approach is best for experienced users who understand Excel’s file format.

Preventive practices: backups and versioning

Prevention is the best cure for file corruption. Establish a simple backup workflow that mirrors critical workbooks to a trusted cloud service or external drive with version history. Enable AutoSave if you’re on OneDrive or SharePoint, and adopt a naming convention that records versions (e.g., Project_v1.xlsx, Project_v2.xlsx). Avoid overwriting the last known good copy; instead, save iterative versions after major edits. Periodically verify formulas, data validation rules, and formatting to catch issues early. By combining disciplined saving habits with automated recovery features, you minimize downtime when corruption strikes again.

Tools & Materials

  • Excel installed on a computer(Excel 2016+ or equivalent; desktop app recommended)
  • Reliable backups (cloud or external drive)(Versioned backups with easy restore)
  • Open and Repair capability in Excel(Access via File > Open > Open and Repair)
  • Power Query (optional)(Useful for rebuilding data connections)
  • Data recovery software (optional)(Use with caution; follow vendor instructions)
  • Copy of the corrupted file for safekeeping(Always operate on a duplicate)
  • XML/text editor (optional)(For inspecting extracted XML from zipped workbook)

Steps

Estimated time: 30-90 minutes

  1. 1

    Create a safe backup copy

    Immediately duplicate the corrupted workbook and store it in a separate location. This keeps the original untouched while you experiment with recovery methods. Label the copy clearly to avoid confusion later.

    Tip: Always work on a copy to prevent data loss.
  2. 2

    Open and Repair the file

    In Excel, go to File > Open, select the corrupted file, then click the dropdown arrow next to Open and choose Open and Repair. Start with Repair; if that fails, try Extract Data to salvage content. Save the result to a new workbook if any data is recovered.

    Tip: Repair is the first, safest option; extraction can salvage what repair cannot fix.
  3. 3

    Check AutoRecover options

    Verify AutoRecover is enabled (Excel Options > Save) and look for AutoRecovered versions when Excel starts. These files can provide a fallback copy if your repair attempts fail or you experience another crash.

    Tip: With AutoRecover on, you typically gain a recent version after a crash.
  4. 4

    Copy salvageable data to a new workbook

    Open a fresh workbook and transfer salvageable sheets or data. Paste as values first to avoid bringing over residual formatting issues, then reapply formatting as needed.

    Tip: Paste as values to prevent reintroducing corrupt formulas or links.
  5. 5

    Rebuild with Power Query if needed

    If certain tables or connections are damaged, use Power Query to re-import clean data and re-establish relationships. Clean up column types and remove broken links during the process.

    Tip: Power Query helps isolate data quality problems from display issues.
  6. 6

    Validate, save, and version

    Thoroughly check that data, formulas, and formatting behave as expected. Save the repaired file with a new version name and maintain a brief recovery log for future reference.

    Tip: Keep a few versions handy; it helps with audits and backtracking.
Pro Tip: Always work on a copy of the corrupted file to protect the original.
Warning: Don’t rely on a single recovery method; use multiple approaches to maximize data salvage.
Note: If you use OneDrive, enable Version History to quickly revert to earlier states.
Pro Tip: Set AutoRecover to a short interval (eg., 5 minutes) to reduce potential data loss.

People Also Ask

What does Open and Repair actually fix?

Open and Repair attempts to repair the workbook structure or extract tables. It often recovers core data, but formatting and formulas may be incomplete.

Open and Repair tries to fix the structure or extract data; it often recovers core data.

Can I recover unsaved workbooks with AutoRecover?

AutoRecover stores temporary versions of open workbooks. If Excel crashes, you may recover the most recent version.

AutoRecover can help you recover the latest version if you had it enabled.

Is it safe to use third-party recovery tools?

Third-party recoveries can be helpful but carry risk of data leakage or further corruption. Use reputable tools and verify results.

Third-party tools can help, but pick trusted products and verify the recovered data.

How can I prevent Excel corruption in the future?

Best defense is regular backups, version history, avoiding simultaneous edits on shared files, and keeping software up to date.

Keep backups, enable version history, and update software.

What should I do if Excel won't open the file at all?

If Excel won't open, try Open and Repair from the start, or Safe Mode. Renaming to .zip to inspect XML is an advanced option.

If Excel won't open, use Open and Repair or safe mode.

Should I enable AutoSave and cloud version history?

Yes—enable AutoSave with cloud storage and keep version history enabled to minimize data loss.

Turn on AutoSave and version history to protect your work.

Watch Video

The Essentials

  • Back up before attempting repair.
  • Open and Repair salvages data when possible.
  • Extract data carefully to a new workbook.
  • Implement backups and versioning to prevent future loss.
Process flow for repairing an Excel file in three steps.
Excel repair workflow.

Related Articles