An Excel error at startup is usually caused by a damaged add-in, a corrupted Office profile, or an outdated installation — and you can fix it without reinstalling Windows. Start by opening Excel in safe mode: press and hold Ctrl while double-clicking the Excel icon, or press Windows key + R, type excel /safe, and press Enter. If Excel opens cleanly in safe mode, the problem is almost certainly an add-in or a startup file, and the steps below walk you through isolating and removing it. If safe mode also fails, skip ahead to the repair and reinstall steps. The exact wording of menus and buttons can differ slightly between Excel versions, Microsoft 365 builds, and regions, so treat the labels below as a guide rather than a script.
What You'll Need
- Your Windows PC or Mac with Excel installed (these steps are written for Windows; Mac differences are noted where they matter).
- Administrator rights on the PC, because repairing or reinstalling Office requires elevation.
- A stable internet connection if you need to download the Office installer or run an online repair.
- Your Microsoft account sign-in details, in case you need to sign out and back in.
- A note of any third-party add-ins you rely on (accounting, analysis, or industry tools) so you can re-enable them one at a time later.
Step-by-Step
- Confirm the error and note the exact message. Write down the full text of the error, including any code. This tells you whether you are dealing with a licensing problem, a file-corruption problem, or a general crash. If the message mentions a specific file, note its name and location.
- Open Excel in safe mode. Hold Ctrl while double-clicking the Excel shortcut, or use
excel /safefrom the Run dialog. Safe mode loads Excel without add-ins, templates, and most customisations. If Excel opens normally, the fault is in one of those extras. - Disable add-ins one at a time. In Excel, go to File > Options > Add-ins. At the bottom of the window, set the Manage dropdown to COM Add-ins and click Go. Clear the checkbox next to each add-in you do not strictly need, click OK, and restart Excel normally. If the error disappears, re-enable them one by one, restarting after each, until the error returns — the last one you enabled is the culprit. Repeat the same process for Excel Add-ins in the same Manage dropdown.
- Clear the startup folder. Close Excel. Press Windows key + R and type
%appdata%\Microsoft\Excel\XLSTART, then press Enter. Move any files you find there to a backup folder on your desktop rather than deleting them. Also check the Office installation's XLSTART folder if you know its location. Restart Excel and see whether the error is gone. - Reset the Office profile. Close Excel. In the Run dialog, type
%appdata%\Microsoft\Exceland press Enter. Rename the fileExcel15.xlb(or the similarly named.xlbfile you see) toExcel15.xlb.old. This forces Excel to rebuild its toolbar and menu customisations on next launch. Do not delete the file — renaming lets you restore it if needed. - Sign out and sign back in. In Excel, go to File > Account and sign out, then sign in again with the same Microsoft account. This refreshes the licence token and resolves many startup errors that mention activation or licensing.
- Run a quick repair of Office. Open Windows Settings > Apps > Installed apps (or Apps & features on older builds), find Microsoft 365 or your Office edition, choose Modify, and select Quick Repair. This replaces damaged program files without touching your documents or settings. Restart the PC afterwards.
- Run an online repair if quick repair fails. Repeat the previous step but choose Online Repair. This is a fuller rebuild and takes longer; it also requires an internet connection. Your documents, spreadsheets, and most settings are preserved, but any custom templates stored inside the Office program folders may be removed.
- Reinstall Office as a last resort. Uninstall Office from Settings > Apps > Installed apps, restart the PC, then sign in to your Microsoft account at account.microsoft.com and reinstall from the Services & subscriptions page. Use only the official installer — avoid third-party download sites.
- Check for Windows and Office updates. Install pending Windows updates and, in Excel, go to File > Account > Update Options > Update Now. Outdated builds occasionally fail at launch until patched.
Common Mistakes
- Deleting add-in files instead of disabling them. Disabling through File > Options > Add-ins is reversible; deleting files from disk is not. Always disable first and only remove files once you have confirmed the culprit.
- Skipping safe mode. Without it you cannot tell whether the problem is Excel itself or something loaded into it, and you end up reinstalling Office unnecessarily.
- Renaming the .xlb file and then panicking. The file is a customisation cache, not your data. Renaming it is safe; your spreadsheets are untouched.
- Running online repair on a metered connection. It downloads a large package and can fail halfway, leaving Office in a worse state. Use a stable connection.
- Ignoring the exact error text. "Excel cannot open the file" and "Microsoft Excel has stopped working" point to completely different causes. Read the message before acting.
- Re-enabling all add-ins at once after a fix. You will not know which one caused the problem, and the error may return the next time you open Excel.
Tips
- Keep a short list of the add-ins you actually use. It makes future troubleshooting far quicker and stops you re-enabling abandoned tools.
- If Excel only fails when opening a specific file, the file — not Excel — is likely damaged. Try opening it with Excel's Open and Repair option (File > Open, select the file, then use the arrow next to Open and choose Open and Repair).
- Create a fresh Windows user profile temporarily to test. If Excel works there, the fault is in your user profile rather than the Office installation.
- On a Mac, the equivalent of safe mode is to hold Shift while opening Excel, and the add-in list lives under Tools > Excel Add-ins. The repair options are in the Microsoft 365 app's Help menu rather than Windows Settings.
- Note the date and time the error started. If it began right after an update or a new add-in install, that is your strongest clue.
Troubleshooting
If Excel still fails after safe mode and disabling add-ins, work through these in order. First, check whether the error mentions activation or licensing: sign out and back in via File > Account, and confirm your subscription is active at account.microsoft.com. Second, if the error appears only when opening a particular workbook, move that file to a different folder and try again — a damaged file or a blocked network location can trigger startup errors. Third, if Excel crashes before the window appears at all, run the Quick Repair again and then the Online Repair. Fourth, if repairs fail with their own error, uninstall Office completely, restart, and reinstall from your Microsoft account. Fifth, if the problem persists across a new Windows user profile, the Windows installation itself may need attention — run the built-in System File Checker by opening Command Prompt as administrator and typing sfc /scannow. Finally, if none of this works, contact Microsoft support with the exact error text and the steps you have already tried; that record speeds up their diagnosis considerably.
Frequently Asked Questions
Does safe mode delete my add-ins?
No. Safe mode only prevents them from loading for that session. Your add-ins remain installed and will load again the next time you open Excel normally.
Will repairing Office remove my spreadsheets?
No. Quick Repair and Online Repair replace program files, not your documents. Files stored in your normal folders are unaffected, though custom templates kept inside Office program folders may be removed during an online repair.
Why does Excel open in safe mode but not normally?
That pattern almost always means an add-in, a startup file in XLSTART, or a corrupted toolbar customisation file is causing the crash. Disabling add-ins and clearing XLSTART isolates it.
Can I fix this on a Mac the same way?
The logic is the same but the menus differ. Hold Shift while opening Excel for safe mode, manage add-ins under Tools > Excel Add-ins, and use the repair options in the Microsoft 365 app's Help menu.
Is it safe to rename the .xlb file?
Yes. It is a cache of toolbar and menu customisations. Renaming it forces Excel to rebuild it, and you can restore the original by renaming it back if you prefer.
Do I need to reinstall Windows to fix this?
Almost never. Office repair, a fresh user profile, or a clean Office reinstall resolves the overwhelming majority of startup errors. Reinstalling Windows is a last resort after everything else has failed.