How to Repair a Corrupted XLSX File Using Reddit’s Recovery Checklist

November 17, 2026 · XLSX.now Editorial · Reddit Guides

An evidence-led XLSX guide distilling genuine Reddit experiences, technical limits, privacy checks, and a reproducible workflow.

Outline for How to Repair a Corrupted XLSX File Using Reddit’s Recovery Checklist

  • The ZIP architecture reality: XLSX as a compressed package and why that matters for repair
  • Diagnosis first: The ZIP test and what the two outcomes mean
  • Path A — XML-level repair: Validating, isolating, and surgically removing corrupted parts
  • Path B — Archive-level salvage: LibreOffice and programmatic extraction when the ZIP itself is damaged
  • Handling formulas, cached values, and the recalculation trap
  • Hard limits: What no checklist can recover and why
  • Privacy constraint: The offline-only rule

You have a file that Excel refuses to open, and the error message tells you nothing useful. The file extension is .xlsx, which means it follows the Office Open XML standard defined in ECMA-376 and documented in the Microsoft Open XML specification. Under that extension is a ZIP archive containing a structured set of XML parts. Corruption can strike the ZIP wrapper, the XML payloads, or both. Which one failed determines every repair step that follows.

The process below is a decision tree, not a guarantee. It preserves as much data as the surviving file structure allows and makes explicit what you will lose at each branch.


1. Diagnose with the ZIP test

Work on a copy. Never touch the original file.

Rename the extension from .xlsx to .zip. Use your operating system’s built-in extraction or 7-Zip to unpack it.

Outcome A — Extraction succeeds. You see folders: _rels/, xl/, and a file named [Content_Types].xml. The ZIP wrapper is intact. Corruption lives inside one or more XML parts. Proceed to Section 2.

Outcome B — Extraction fails. The error may read “unexpected end of archive,” “CRC failed,” or the tool may refuse to open it entirely. The ZIP central directory or a local file header is damaged. You cannot repair XML you cannot reach. Skip to Section 3.


2. Path A: Surgical repair when the archive opens

The XML parts most frequently reported as failure points are xl/sharedStrings.xml (stores all unique cell text) and xl/styles.xml. A single malformed tag, an unescaped ampersand, or a truncated close-tag will prevent Excel from parsing the entire workbook.

Validate each XML file. Open the contents of xl/ in an editor that supports XML syntax highlighting (Notepad++ or VS Code). Look for:

  • Missing closing tags
  • Unescaped characters: & must appear as &amp;, < as &lt;
  • Truncation at the end of the file, often a sign of an interrupted write

Isolate the broken part. If xl/sharedStrings.xml is corrupted beyond repair, you can delete it. Re-zip the remaining folder structure — select all files and folders inside the extracted root, not the root folder itself — and rename the archive back to .xlsx. Excel will regenerate an empty shared string table on open, but every string value in the workbook will be blank. Use this only when cell text is secondary or recoverable from another source.

Remove a single corrupted worksheet. If the fault is confined to xl/worksheets/sheet2.xml, delete that file from the extracted set, re-zip, and rename. That worksheet is gone. The remaining sheets, with their formulas and formatting, stay intact.

What survives: Workbook structure, sheet-level formulas, cached formula results, cell styles, and named ranges that do not reference the removed parts.

What does not: Any data in the deleted XML file. Formulas that pointed to removed sheets will display #REF!. Corrupted shared-string pointers will leave cells empty.


3. Path B: Salvage when the ZIP is broken

If extraction failed, manual XML editing is impossible. You need software that tolerates structural archive damage.

First fallback: LibreOffice Calc. Open the .xlsx file directly — no renaming required. LibreOffice’s ZIP handler is more forgiving of minor central-directory corruption. If it succeeds, save the result as a new XLSX and verify in Excel. This step recovers what the parser can still locate and skips unreachable parts silently.

Second fallback: Python with openpyxl. When LibreOffice also fails, you can attempt a raw data scrape. The openpyxl library reads workbooks even when some internal XML is malformed, provided the ZIP directory is still parsable. A minimal extraction script:

from openpyxl import load_workbook

wb = load_workbook("corrupted.xlsx", data_only=True)
for sheet_name in wb.sheetnames:
    ws = wb[sheet_name]
    for row in ws.iter_rows(values_only=True):
        print(row)

The data_only=True parameter returns cached cell values, not formulas. You lose all formula logic, formatting, merged cells, and charts. What you get is a row-by-row dump of the last computed values — a data-first, structure-last recovery.


4. Formulas, cached values, and the recalculation trap

A workbook that opens after repair may look complete but will not recalculate reliably. The formula chain can break silently. What you see are cached values — the results Excel stored the last time the file was saved in a healthy state.

To test formula integrity, open the recovered file and set Formulas > Calculation Options > Manual. Press F9. If formulas are intact, values update. If not, the cached numbers remain static.

To lock in recovered data, copy each sheet and paste Values Only into a new workbook. You discard the formula logic but keep the numbers.


5. Hard limits

Some damage no checklist can reverse:

  • Missing [Content_Types].xml. This file is the manifest that tells Excel which parts exist. Without it, the application sees an empty container and will not open the workbook.
  • Sector-level corruption. If the file was saved over a failing drive, bytes inside the XML may be randomly substituted. The ZIP structure can appear valid while the payload is nonsense.
  • VBA macros and external connections. Macros reside in xl/vbaProject.bin, a binary part inside the archive. External query definitions live in xl/connections.xml. Both are fragile and rarely survive structural repair. Assume they are lost.

6. The offline constraint

A corrupted XLSX can contain cached values, formula fragments, and metadata the file owner has never seen rendered. Uploading it to a browser-based repair service exposes that data to a third party. The repair paths above — manual XML editing, LibreOffice, and openpyxl — all run locally. If the file contains financial figures, payroll data, or confidential text, offline-only is not a preference; it is the only safe route.

Workflow discussions reviewed

These discussions are used as reports of real user problems, not as technical specifications: