When an Excel workbook will not open and displays messages like “We found a problem with some content” or “Excel cannot open the file because the file format or extension is not valid,” automated recovery tools often fail. Because modern .xlsx and .xlsm workbooks are actually standard zip containers of interconnected XML files, you can manually access the archive, repair or remove the damaged XML component, and recover your underlying tabular data.
Quick Answer
Make a copy of your broken file, change the file extension from
.xlsxto.zip, and extract the archive into a folder. Open thexlsubfolder to retrieve your raw data directly fromsharedStrings.xmland individual worksheet files (likesheet1.xml), or delete corrupt components likecalcChain.xmland recompress the folder.
Step 1: Create a Safe Workspace and Change Extension
Never attempt recovery on your original, production file. Always work on an isolated copy:
- Locate your corrupt file in Windows File Explorer.
- Press
Ctrl + CandCtrl + Vto create a duplicate copy. - Ensure file extensions are visible: In File Explorer, click View > Show > File name extensions.
- Right-click the duplicate file, click Rename, and change the extension from
.xlsx(or.xlsm) to.zip. - Press Enter. Windows will display a warning: “If you change a file name extension, the file might become unstable.” Click Yes.
Step 2: Extract the File Architecture
Modern Office files use the Open Packaging Conventions (OPC) standard. Changing the extension allows standard archiving software to unpack the internal file structure:
- Right-click the newly renamed
.zipfile and select Extract All…. - Choose a destination folder (e.g.,
Desktop\Excel_Extracted) and click Extract. - Open the extracted folder. You will see the standard internal architecture of an Excel workbook:
[Content_Types].xml(Describes all parts inside the package)_rels/(Folder containing package relationship definitions)xl/(Folder containing the core spreadsheet contents)docProps/(Metadata, author details, creation dates)
If Windows reports that the zip archive is “Invalid” or “Corrupted” before extraction can begin, the file’s binary header is severed. In that case, attempt recovery from temp files first as outlined in Troubleshooting AutoRecover failures: Where to find unsaved temp files.
Step 3: Remove Known Corruption Culprits
Most non-opening errors are caused by corrupt calculation dependency chains, broken drawing layers, or corrupted custom cell style tables—not the actual row and column data.
- Open the extracted
xlfolder. - Delete
calcChain.xml: This file contains the precompiled dependency tree of your formulas. If a thread crashed during a save, this file often contains truncated, unclosed XML tags. Excel does not need this file to open; if missing, it simply recalculates all formulas from scratch on launch. - Inspect the
drawings/folder: If present insidexl/, move this folder to your desktop. Corrupted vector shapes and broken image links are leading causes of unreadable content errors. - Return to the root folder where you extracted the files, select all files and folders together, right-click, and choose Compress to ZIP file.
- Rename the new zip file’s extension back to
.xlsxand attempt to open it in Excel.
If the file opens successfully, you can rebuild formula dependencies and formatting safely. If Excel still throws errors, see “We found a problem with some content in ‘filename.xlsx'”: Using the Open and Repair tool.
Step 4: Extract Raw Text from sharedStrings.xml and Worksheets
If the workbook structure is too badly damaged to reassemble as a functional spreadsheet, extract the raw table values manually to prevent total data loss.
In the Excel architecture:
xl/sharedStrings.xmlcontains every unique text string typed into the workbook.xl/worksheets/sheet1.xmlcontains the cell coordinates and numeric values. Text cells insheet1.xmlrefer to numerical index keys that point directly to entries insharedStrings.xml.
Option A: Open Worksheets in a Text or Code Editor
- Navigate to
xl/worksheets/. - Right-click
sheet1.xmland open it with Notepad, VS Code, or any clean text editor. - Look for the
<sheetData>XML block. - Each cell is wrapped in a
<c>element:- Numeric values appear inside value tags:
<c r="A1"><v>1250</v></c> - Text references appear with an attribute
t="s":<c r="B1" t="s"><v>0</v></c>(where0corresponds to the first string insharedStrings.xml).
- Numeric values appear inside value tags:
- If you only need to recover numeric tables, inventory values, or critical figures, copy the text between the
<sheetData>tags.
Option B: Import Raw Worksheet XML Using Power Query
You do not need to manually parse XML text by hand. You can import the isolated worksheet XML file into a healthy Excel session:
- Open a blank, healthy Excel workbook.
- Go to Data > Get Data > From File > From XML.
- In the file browser, navigate to your extracted folder and select
xl/worksheets/sheet1.xml. - Click Import.
- Power Query will parse the raw XML schema and present a structured table displaying row numbers, column references, and raw values.
- Click Load to output the recovered raw dataset into your clean workbook grid.
Step 5: Fixing Broken XML Tags with a Validation Parser
If you need to fix the workbook so it opens normally with its original formatting:
- Open
xl/worksheets/sheet1.xml(or whichever sheet is failing) in a web browser like Microsoft Edge or Google Chrome. - Web browsers have strict XML rendering engines. If the XML contains an unclosed tag or illegal character, the browser will refuse to display the page and print the exact error location:
- Example: XML Parsing Error: mismatched tag. Line 1420, Column 45.
- Open the XML file in a code editor like Notepad++, navigate to the reported line and column, and inspect the issue.
- Common issues include truncated tags (e.g.,
<v>100missing its closing</v>) or invalid non-printable control characters. - Fix the tag, save the XML file, re-compress the package into a
.ziparchive, rename it back to.xlsx, and open the repaired file in Excel.