How to Fix ‘The File Is Corrupt and Cannot Be Opened’ in Excel

Opening an essential workbook in Microsoft Excel only to be blocked by the error dialogue The file is corrupt and cannot be opened is a distressing roadblock for accountants, data analysts, and Office users. This issue commonly occurs in Excel for Microsoft 365, Excel 2021, and Excel 2019 running on Windows 11 and Windows 10. While the warning suggests catastrophic workbook destruction, in the vast majority of cases the file itself remains completely intact. Instead, the error is triggered by overly aggressive Microsoft 365 Trust Center security barriers, invalid file extension mappings, corrupt temporary Office caches, or strict Protected View rules applied to files downloaded from the internet or received via email.

What Causes ‘The File Is Corrupt and Cannot Be Opened’ in Excel?

Microsoft Excel includes rigorous security safeguards designed to prevent malicious macro scripts and embedded exploits from executing automatically. When opening files from external origins, these checks can misinterpret normal workbook headers as threats:

  • Protected View Security Mismatches: Excel failing to open files originating from web downloads, SharePoint links, or Outlook attachments within its isolated sandbox container.
  • Component Services Security Restrictions: Windows DCOM machine-wide default security settings configured too strictly, preventing Excel from launching workbook subprocesses.
  • File Extension Inconsistencies: A legacy .xls workbook being renamed to .xlsx (or vice versa) without performing a genuine format conversion.
  • Damaged XML Internal Structure: Real workbook corruption caused by unexpected power loss or dropped network connections while saving large spreadsheets.

Step 1: Unblock the File in Windows Properties

When an Excel spreadsheet is downloaded from a web browser, email client, or cloud drive, Windows tags the file with a security flag known as Mark of the Web (MotW). This flag frequently triggers corruption warnings.

  1. Close Excel completely.
  2. Open File Explorer and navigate to the folder containing the affected workbook.
  3. Right-click the Excel spreadsheet and select Properties.
  4. In the General tab, look at the bottom section labelled Security.
  5. Tick the box next to Unblock (if present) to remove the external origin restriction.
  6. Click Apply, then click OK. Double-click the file to open it in Excel.

Step 2: Adjust Excel Protected View Settings

Protected View opens internet-derived spreadsheets in a restricted sandbox. Disabling these triggers allows Excel to parse the workbook normally.

  1. Open Microsoft Excel to a blank workbook.
  2. Click File in the top-left corner and select Options at the bottom of the left sidebar.
  3. Click Trust Center in the left menu, then click the Trust Center Settings button.
  4. In the Trust Center dialogue, click Protected View on the left.
  5. Untick the following three options:
    • Enable Protected View for files originating from the Internet
    • Enable Protected View for files located in potentially unsafe locations
    • Enable Protected View for Outlook attachments
  6. Click OK twice to save your settings. Close and restart Excel, then attempt to reopen your spreadsheet.

Step 3: Modify Component Services DCOM Security Settings

If machine-level DCOM authentication settings have been altered, Excel cannot initialise the document rendering pipeline, throwing a false corruption alert.

  1. Press Windows Key + R, type dcomcnfg, and press Enter to open Component Services.
  2. In the left tree, expand Component Services > Computers.
  3. Right-click My Computer and select Properties.
  4. Switch to the Default Properties tab.
  5. Ensure that Default Authentication Level is set to Connect.
  6. Ensure that Default Impersonation Level is set to Identify.
  7. Click Apply and OK, then test your spreadsheet in Excel.

Step 4: Use Excel’s Native ‘Open and Repair’ Tool

If the workbook is genuinely damaged due to an incomplete save or crashed macro, Excel’s built-in repair utility can strip broken XML markup and recover all underlying formulas, text, and tables.

  1. Open Microsoft Excel.
  2. Click File > Open > Browse.
  3. Navigate to the folder containing your damaged workbook and click on the file once to highlight it.
  4. Instead of clicking the Open button directly, click the small arrow next to the Open button in the bottom-right corner.
  5. Select Open and Repair… from the drop-down menu.
  6. Click Repair to recover the maximum amount of data. If that fails on a subsequent attempt, choose Extract Data to salvage cell values and formulas into a clean workbook.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.