The we're sorry but Excel has run into an error message is an Excel crash, not a workbook warning. This guide explains why Repair Now may close Excel without fixing anything, how to separate an app-wide crash from one damaged file, and which documented repair path fits each case, with limits noted.
When we're sorry, but Excel has run into an error appears, Excel is reporting an application crash, not a problem with a single spreadsheet. The dialog offers Repair Now, but in reported cases, that button has closed the program without solving the cause, and the message returned on the next launch. Start by testing scope: open Excel with a blank workbook. If it crashes before any file loads, repair the Office installation or its startup environment. If only one .xlsx or .xls file triggers the message, repair that workbook instead.
The distinction matters more than the exact wording. Microsoft Q&A threads use the phrasing Excel ran into an error and " Office 365: We’re sorry, but Excel has run into an error that is preventing it from working correctly for the same crash family. The steps below follow the order support staff actually recommend: one controlled try of the on-screen button, then repair from Windows, then add-in and startup-file isolation, then workbook-level recovery.
Excel has run into an error that is preventing it from working correctly. Excel will need to be closed as a result. Would you like to repair now?
When I open an Excel spreadsheet that I have used every day for months, a box pops up that says We're sorry, but Excel has run into an error that is preventing it from working correctly. Excel will need to be closed as a result. Would you like to repair now? I click Repair. It closes, and nothing I entered was saved.
- Question from learn.microsoft.com
If you are stuck with the same problem, don’t worry. We have checked the solutions from the thread’s answer: Moderators suggested checking updates, testing Excel/safe, and running Quick Repair before Online Repair; a separate answer advised skipping the in-app button and running Online Repair from Windows. And a related case where a moderator traced the same crash to startup files and an .xlb toolbar file. We will explain more details for you in the following.
Four causes account for most reported cases.
Microsoft's guidance on Excel freezes also lists calculation mode, network file locations, default printers, and video drivers as environmental factors worth testing.
Use a blank workbook as the dividing line. Launch Excel and create a new file. If the error appears before you open anything, or if Word shows the same dialog, the fault sits in the Office installation, a loaded add-in, a startup file, or a system driver.
If Excel opens normally and the crash returns only when you open one workbook, that file is likely corrupted. Microsoft support staff ask this exact question first, because the two repair paths do not overlap.
Repair Now is an in-application recovery prompt. It closes the crashed Excel process and attempts a quick local correction, but it does not rebuild Office components.
Microsoft's own repair documentation draws a clearer line: Quick Repair detects and replaces corrupted files, while Online Repair rebuilds the installation and needs an internet connection. When the prompt keeps returning, run the wider repair from Windows rather than repeating the dialog button.
1. Close Excel, Word, Outlook, and every other Office application so no process holds a file lock.
2. Open Settings, then Apps. On Windows 11, choose Installed apps; on Windows 10, choose Apps and features.
3. Find Microsoft 365 or Microsoft Office, select the three-dot menu, and choose Modify.
4. For a Click-to-Run installation, select Online Repair and then Repair. If the installer shows an MSI screen instead, select Repair and then Continue.
5. Let the repair finish, restart Windows, then open Excel with a blank workbook before opening any saved file.
If Online Repair does not stop the crash, check whether a load-on-start component is responsible.
1. Press Windows + R, type excel /safe, and press Enter.
2. Confirm the title bar reads Microsoft Excel (Safe Mode).
3. Open File > Options > Add-ins, set Manage to COM Add-ins, and select Go.
4. Clear the add-in checkboxes, select OK, close Excel, and reopen it normally.
5. If normal startup works, enable add-ins one at a time, restarting Excel after each one until the crash returns.
1. Press Windows + R, enter %appdata%\Microsoft\Excel\XLSTART, and press Enter.
2. Move every file in that folder to the Desktop so Excel can no longer load it automatically.
3. In %appdata%\Microsoft\Excel, rename any .xlb toolbar file by appending .old.
4. Restart Excel and open a blank workbook to confirm startup succeeds.
5. Return moved files one at a time only if you need them, restarting Excel after each one.
Microsoft documents Open and Repair as the manual route when File Recovery mode does not start on its own. Use it only after the blank-workbook test shows Excel itself is healthy.
1. Copy the affected .xlsx or .xls file to a local drive first, especially if it came from a network share or SharePoint.
2. In Excel, choose File > Open and browse to the copied file.
3. Select the file, then click the arrow next to Open and choose Open and Repair.
4. Choose Repair to recover as much of the workbook as possible.
5. If Repair cannot restore the data, repeat the process and choose Extract Data to pull out values and formulas.
Recover Values Without Rewriting the Original
1. Create a blank workbook and go to File > Options > Formulas.
2. Under Calculation options, select Manual and confirm.
3. Open the damaged workbook without saving it.
4. Copy the cells you need into the blank workbook.
5. Paste values rather than formulas when the source sheet is unstable.
When the message appears in Microsoft 365 and both Excel and Word fail, treat it as a suite-level problem rather than an Excel-only setting.
1. Open Word if it will launch and check File > Account for the installed version and update channel.
2. Choose Update Options > Update Now, then install pending Windows updates, including printer and video drivers.
3. Open the Get Help app, search for Excel check, and run the troubleshooter on the affected PC.
4. Sign in at account.microsoft.com/services and confirm the Microsoft 365 or Office license shows as active; sign out and back in inside Office if it does not.
5. If both apps still crash, run the Microsoft 365 uninstall troubleshooter, restart, and reinstall Office with the same licensed account.
1. Open Event Viewer, expand Windows Logs, and select Application.
2. Find the Error entry for EXCEL.EXE after a crash.
3. Copy the Faulting Module Name and the event time.
4. Note your Windows version, Office version, and whether Word opens normally.
5. State whether the crash happens at launch or only with one workbook.
None of the Excel repair options can bring back a workbook that was deleted, Shift-deleted, or emptied from the Recycle Bin. If the file is gone rather than damaged, a Windows data recovery tool, MyRecover, that recovers deleted Excel documents is a separate fallback. It scans the drive for deleted files; it does not repair Excel or a corrupted workbook in place, so use it only after the steps above have made the application stable.
1. Stop using the drive that held the workbook, since new saves can overwrite the deleted file.
2. Install MyRecover on a different drive from the one you are scanning, then launch it.
3. Tap Deleted Files Recovery, select the drive that held the .xlsx file, and hit Scan.
4. After Quick Scan, use Filter to narrow results by file type, path, or date, preview the workbook, select it, and press Recover. Switch to Deep Scan if the file is not listed.
5. Save the file to a different drive or partition from the original location, then open that copy in Excel.
The "We're sorry, but Excel has run into an error" message is a crash report, and Repair Now is only a first attempt. Decide whether Excel fails at launch or on one file; run Online Repair from Windows for the first case, use Open and Repair for the second, and keep a copy of the workbook before any operation that writes to it.