Repairing Microsoft Excel means restoring its core functionality when it crashes, fails to open files, or behaves unexpectedly. This is achieved by using Excel’s built-in Safe Mode, built-in repair tools, or reinstalling the Office suite—all without losing your data. You’ll need administrator rights on your PC and about 10–20 minutes of uninterrupted time. No external tools are required, and no files need to be backed up unless you’re reinstalling Office entirely.

What You'll Need

  • A Windows PC with Microsoft Excel installed (Excel 2016, 2019, 2021, or Microsoft 365)
  • Administrator access to the computer
  • A stable internet connection (for updates or online repair)
  • A working backup of critical Excel files (optional but recommended before major repairs)

Step-by-Step

  1. Close all Office applications: Press Ctrl + Shift + Esc to open Task Manager, find all instances of Excel, Word, Outlook, or other Office apps in the Processes tab, right-click each, and select End task. This ensures no background processes interfere with repairs.
  2. Launch Excel in Safe Mode: Press Windows + R to open the Run dialog, type excel /safe, and press Enter. Safe Mode loads Excel with minimal add-ins and settings—useful to determine if the issue is caused by third-party add-ins or customizations. If Excel opens normally in Safe Mode, the problem likely lies in add-ins or startup files.
  3. Disable add-ins manually: In Safe Mode, go to File > Options > Add-ins. At the bottom, next to Manage, select COM Add-ins and click Go. Uncheck all entries, then click OK. Repeat for Excel Add-ins and Templates. Restart Excel normally (not Safe Mode) and test. If Excel works, re-enable add-ins one by one to identify the problematic one.
  4. Clear Excel’s startup folder: Navigate to the startup folder by opening File Explorer and pasting this path into the address bar: %appdata%\Microsoft\Excel\XLSTART. Delete or move any files in this folder (like .xla, .xlam, or .xlsm files). Restart Excel and check if the issue resolves.
  5. Use Excel’s built-in Open and Repair tool: If a specific file is corrupted, open Excel, go to File > Open, browse to the file, click the arrow next to the Open button, and select Open and Repair. Choose either Restore or Extract. This often recovers data from damaged workbooks.
  6. Run the built-in Repair tool in Windows Settings: Open Settings > Apps > Installed apps. Search for "Microsoft Excel" or "Microsoft Office", click the three dots (…), and select Advanced options. Scroll down and click Repair. Wait for the process to finish—this may take several minutes and will not delete your files or settings.
  7. Perform an Online Repair if Quick Repair fails: In the same Advanced options menu, if Quick Repair didn’t resolve the issue, click Online Repair. This downloads and replaces all Office program files, which may take longer (15–30 minutes depending on internet speed). You’ll be prompted to save any unsaved work before it starts.
  8. Reset Excel’s settings via registry (advanced users only): Close all Office apps. Press Windows + R, type regedit, and press Enter. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options (for Excel 2016/2019/365). Right-click the Options folder, select Export to create a backup, then delete the entire Options folder. Restart Excel to rebuild default settings. ⚠️ Warning: Editing the registry can cause system issues—only proceed if you understand the risks.

Common Mistakes

  • Skipping Safe Mode testing and jumping straight to reinstalling—this often overlooks simple add-in or startup issues.
  • Ignoring file-level corruption: trying to repair Excel itself when the problem is only with a specific workbook (always try Open and Repair first on the file).
  • Running repair tools without closing all Office processes—background services can block repair operations.
  • Deleting the entire Office installation without first trying Quick Repair—Online Repair or Quick Repair preserves your documents, licenses, and personal settings.
  • Editing the registry without backing it up—mistakes can require a Windows reinstall to fix.

Tips

  • Before major repairs, save a copy of your Excel options and add-ins: go to %appdata%\Microsoft\Excel, copy the XLSTART and XLSTART folders, and store them externally.
  • Use the "Trust Center" settings (File > Options > Trust Center > Trust Center Settings) to disable macro warnings temporarily for testing—but never enable macros from untrusted sources long-term.
  • Enable AutoRecover: go to File > Options > Save, ensure "Save AutoRecover information every X minutes" is checked (set to 5–10 minutes), and verify the AutoRecover file location path.
  • Keep Office updated: go to File > Account > Office Update > Update Now. Many stability issues are resolved in recent patches.
  • Test with a new blank workbook—if the issue only happens with one file, focus on file repair, not Excel repair.

Troubleshooting

If Excel still won’t open or keeps crashing after following all steps:

  • Excel opens but crashes immediately: Try creating a new Windows user profile. Sometimes corrupted user profiles cause Office instability. Log in as a new local user, launch Excel, and test.
  • Repair fails with error 30088 or 30015: Run the Microsoft Support and Recovery Assistant (SaRA) from the official Microsoft download page. It’s a free, automated tool that detects and fixes deeper installation issues.
  • Excel opens but shows a blank window or freezes on startup: Rename or delete the Excel15.xlb file (hidden ribbon settings): close Excel, go to %appdata%\Microsoft\Excel, rename Excel15.xlb to Excel15_old.xlb, then restart Excel.
  • Online Repair finishes but Excel still misbehaves: As a last resort, uninstall Office completely via Settings > Apps > Installed apps > Microsoft Office > Uninstall. Then reinstall from your Microsoft Account (account.microsoft.com/services), using your original license. Your OneDrive documents and files remain unaffected, but local customizations (like custom ribbons) will reset.

Frequently Asked Questions

Does repairing Excel delete my workbooks or data?

No—built-in repairs (Safe Mode, Open and Repair, Quick Repair, Online Repair) preserve all your files, spreadsheets, and personal settings. Only a full uninstall and reinstall may reset customizations, but your documents stored locally or in OneDrive remain intact.

Why does Excel crash only when I open certain files?

This usually indicates file corruption, not Excel itself. Use File > Open > Open and Repair for that specific workbook. If that fails, try opening the file in Google Sheets or LibreOffice and re-saving it as an .xlsx file to strip out corrupted elements.

Can I repair Excel on a Mac?

No—the steps above are for Windows only. On Mac, go to Excel > About Excel, then Help > Check for Updates. For deeper issues, use Word/Excel > Reset preferences from the menu bar, or reinstall Office for Mac via the Microsoft Account portal.

Is Safe Mode safe to use regularly?

Yes—Safe Mode is designed for diagnostics and troubleshooting. It disables add-ins and custom UI elements but doesn’t harm Excel. Use it to isolate issues, but don’t run it daily as you’ll lose productivity features like custom ribbons and macros.

What if Excel opens but shows error messages like "File format is not valid"?

Try the Open and Repair tool (File > Open > arrow > Open and Repair). If the file is saved in an older format (.xls), open it in Excel, then Save As > Excel Workbook (.xlsx). Also check if the file extension matches the actual format—sometimes renaming a .txt to .xlsx causes this error.

How do I know if a third-party add-in is causing the problem?

Launch Excel in Safe Mode (excel /safe). If Excel works normally there but crashes in regular mode, add-ins are likely the culprit. Disable them one-by-one in File > Options > Add-ins to isolate the offender.