Fix it now
Excel opened the container but could not load every part inside it, and is offering to salvage what it can. Sometimes the workbook really is damaged; sometimes it is intact and simply is not the format its extension claims. Work on a copy either way.
- Copy the file to a new folder and leave the original untouched. Everything below happens to the copy.
- Run Excel’s own repair: on the File tab choose Open, select the file, click the arrow next to the Open button, and click Open and Repair. Choose Repair to recover as much data as possible.
- If Repair cannot do it, run the same route again and choose Extract Data.
- If Excel says the format or extension is not valid, check what the file really is by opening it in a text editor. A file that reads as HTML or as comma-separated text is not a workbook and no repair tool will help.
- If the file came from OneDrive or SharePoint, try version history first: open the file location in a browser and restore or download an earlier version.
- If the repair produced a log listing removed records, note which sheets and parts it names. That is what you need to rebuild.
Repair rewrites the file. Never run it against your only copy, and keep the copy you started with until you are satisfied with the result.
If the repaired workbook opens with no prompt and the numbers check out, you are done. The next section covers why a workbook stops being readable and what else Microsoft documents for recovering one.
Why it happens
A modern workbook is a container holding separate parts: one for each worksheet, plus parts for shared strings, styles, defined names, the calculation chain and anything else the file uses. Excel validates each part as it loads. If a part is truncated, malformed, or refers to something that is not there, Excel cannot load it as written and offers to repair rather than failing outright.
Repair works by dropping what it cannot parse and keeping the rest, which is why the repair log is far more interesting than the message itself. The log names the parts and record types it removed, so you know whether you lost one formula on one sheet or the whole style table. A workbook that repairs with a short log is usually fine to carry on with. One with a long log should have its data extracted into a fresh file rather than being trusted.
The second family of causes has nothing to do with damage. Applications that export what they call Excel files very often write an HTML table or delimited text and give it a spreadsheet extension. Excel notices the mismatch and complains about it, and no amount of repairing will change a file that was never a workbook. Files truncated by an interrupted download, a full disk, or a security product that quarantined part of the write produce a similar complaint from a different direction: the container is short, so the parts inside it do not add up.
Microsoft documents more recovery routes than most people know about, and they are worth trying in order before reaching for anything you have to buy. Reverting to the last saved version, saving in SYLK format, setting calculation to manual before opening, and pulling the data out with external references are all published methods, and between them they cover cases where Open and Repair alone gives up.
The file was truncated on copy, download or save
You have this one if The file size is a fraction of what it should be, and the copy at the source opens perfectly.
- Compare the file size against the original and confirm the difference.
- Copy it again, preferably from a local disk or a wired connection rather than across a VPN or a flaky link.
- If it arrived by email, download the attachment again rather than reusing the saved copy.
- If it was being saved to a network share when the connection dropped, look for an autorecover copy on the machine that was saving it.
The file is not the format its extension claims
You have this one if Excel raises the extension mismatch, and a text editor shows readable HTML or delimited text.
- Rename the file to its true extension.
- Open it and check that dates, leading zeros and long numbers imported the way you intended, using the import options rather than accepting the defaults.
- Save the result as a real workbook.
- Where the file came from an export function, ask whoever provides it for a genuine workbook export if one exists.
Web application exports labelled as spreadsheets are by far the most common source. Those files are not damaged and no repair tool will help; they need opening as what they actually are.
The workbook has genuine internal damage
You have this one if Repair runs and produces a log naming removed records, worksheets or formulas.
- Run Open and Repair and choose Repair; fall back to Extract Data if repair itself fails.
- Open the repaired copy and check the sheets named in the log against a known-good source.
- If the workbook is open but misbehaving, revert to the last saved version by reopening it from the File tab and confirming you want to discard changes.
- Rebuild anything the log says was removed, working from the last good version rather than from memory.
The workbook will not open at all
You have this one if Excel refuses before it gets as far as offering to repair.
- Open a blank workbook, set calculation to Manual under File, Options, Formulas, then try opening the damaged file.
- If that fails, create a new workbook and pull the data across with an external reference of the form
=FileName!A1, then copy and paste the results as values. - For chart data specifically, Microsoft publishes a macro that extracts the underlying values into a new worksheet.
- Check version history in OneDrive or SharePoint before spending long on any of this.
Full reference
Which problem you have
| What you see | What it is |
|---|---|
| A repair prompt with a log of removed records | Genuine internal damage; read the log |
| A complaint about the format or extension | The file is not a workbook, or its header is unrecognised |
| A file a fraction of the expected size | Truncated in transit or on save |
| Opens on a colleague’s machine but not yours | A different copy, usually one that was not truncated |
| Excel refuses before offering to repair | Use the manual-calculation or external-reference routes |
Microsoft’s documented recovery routes
| Situation | Route |
|---|---|
| The file opens but is damaged | Open and Repair, choosing Repair then Extract Data |
| The workbook is open and has gone wrong | Revert to the last saved version by reopening it |
| Repair keeps failing | Save As, choosing SYLK (Symbolic Link), then reopen and save as a workbook |
| The workbook will not open | Set calculation to Manual in a blank workbook first |
| Still will not open | External references into a new workbook, then paste as values |
| Chart values are what matter | The published macro that writes chart values to a new sheet |
Reading the repair log
The log Excel writes after a repair names each part it dropped and what kind of record it was. A line naming a formula from one worksheet part tells you one sheet lost calculation and everything else survived. A line naming shared strings or styles is more serious, because those are shared across the whole workbook. Check the named sheets against a known-good source before you rely on the file for anything, and if the log runs to more than a handful of lines, extract the data into a fresh workbook rather than continuing with the repaired one.
The messages themselves
None of the message strings in this article has a documented meaning published by Microsoft. That does not make them meaningless – they are Excel telling you what it did – but it does mean there is no vendor page to check a particular wording against, so read them as descriptions of the action offered rather than as codes to look up.
Preventing the next one
- Keep working files in OneDrive or SharePoint so version history exists. It is the single fastest recovery route and it costs nothing extra on a licence you already have.
- Avoid editing workbooks directly over an unreliable network link; save locally and copy up.
- Close Excel properly rather than powering off, which is where most truncated saves come from.
- Treat exports from other systems as imports to be checked rather than as workbooks to be trusted.
- Where a workbook is business-critical and large, keep a periodic copy outside the live location, because version history helps only if the file is where version history is kept.
Every code this article covers
| Code | What it points at | Source |
|---|---|---|
Excel found unreadable content |
Excel loaded the container but not every part inside it, and is offering to salvage what it can; the string itself is not published with a documented cause | not published by the vendor |
We found a problem with some content |
The same offer of repair for a workbook whose parts do not validate; not published with a documented cause | not published by the vendor |
Excel cannot open the file because the file format or file extension is not valid |
The file’s real format does not match its extension, or the container header is not recognised; not published with a documented cause | not published by the vendor |
Removed Records: Formula from /xl/worksheets/sheet1.xml part |
A line from Excel’s repair log naming what was dropped and from which worksheet part; the log format is not published | not published by the vendor |
Confirm the fix worked
- The repaired workbook opens with no prompt and no repair offer.
- A full recalculation produces no unexpected errors in cells that previously held values.
- Every sheet named in the repair log has been checked against a known-good source or an earlier version.
- Saved as a new file, closed and reopened, it is stable rather than repairing itself each time.
- The original copy you set aside can be discarded, which is the point at which the job is finished.
Questions people ask about this
Should I buy recovery software?
Try the documented routes first, because most cases cost nothing. Version history, Open and Repair, the SYLK route, manual calculation and external references between them cover the majority. Third-party recovery tools have a place for genuinely damaged files where nothing else worked, but they are a last resort.
Will repair change my formulas?
It removes what it cannot parse, which can include formulas, and it tells you what it removed. Read the log rather than assuming, then check the named sheets against a known-good copy before relying on the repaired file.
Why can my colleague open the file when I cannot?
Usually because they have a different copy, one that was not truncated in transit. Occasionally it is a version or format difference. Compare file sizes first; it settles the question faster than comparing Excel versions.
What is the SYLK trick for?
Saving a damaged but open workbook in SYLK format writes out the data through a different code path, filtering out some corrupt elements. Reopen the resulting file and save it as a workbook again under a new name. It is a documented Microsoft method, not folklore.
How do I stop this happening again?
Keep working files where version history exists, avoid editing over unreliable links, close Excel properly, and treat exports from other systems as imports to be checked.
