Excel Won’t Close? How to Fix It on Windows and Mac

You click the X in the corner of Excel and nothing happens, or the window closes but Excel is still listed in Task Manager. Usually Excel is waiting on something: a hidden Save prompt, a cell you’re still editing, an open dialog box or a busy add-in. Clear that first so you keep your work. If Excel is truly frozen, end it in Task Manager on Windows or use Force Quit on a Mac, then fix the add-in or install problem behind it.

Check What Excel Is Waiting For

A force quit throws away anything you haven’t saved, so spend a minute on these checks before you reach for Task Manager. They apply to Excel for Microsoft 365 and recent standalone versions on Windows and Mac.

  1. Look for a hidden Save prompt. The “Do you want to save your changes?” box can end up behind another window or on a second monitor. On Windows, press Alt + Tab and look for a small Excel window; on a Mac, click the Excel icon in the Dock.
  2. Get out of cell edit mode. If a cell still shows a blinking cursor, Excel may ignore the close command until you finish the edit. Press Enter to keep what you typed or Esc to cancel it, then try again.
  3. Close open dialog boxes. Format Cells, Find and Replace, a macro prompt or an add-in’s window can hold up the close command until you dismiss it.
  4. Watch the status bar. Microsoft says that if Excel is in use by another process, the status bar at the bottom of the window shows it. A large recalculation, a print job or a running macro can take a while, so let it finish.
  5. Close one workbook at a time. Use File > Close (or Ctrl + W) on each workbook. If one workbook refuses to close, you’ve found the file causing the trouble.

If any workbook is still responding, save it now under a new name with File > Save As. That copy is your safety net if the next step goes badly.

End Excel in Task Manager on Windows

Ending the task closes Excel immediately and discards unsaved changes in every open workbook, not only the stuck one.

  1. Press Ctrl + Shift + Esc to open Task Manager. You can also press Ctrl + Alt + Delete and choose Task Manager; other routes are covered in how to open Task Manager in Windows 11.
  2. On the Processes page, find Microsoft Excel under Apps. If it’s not there, check the Background processes list as well.
  3. Select it and choose End task.
Ending Microsoft Excel in Windows 11 Task Manager
End task closes every open workbook without saving. (Recreated interface)
  1. Repeat for any other Excel entry still listed, then wait a few seconds before reopening Excel.

An Excel entry that stays in Task Manager after the window closes is usually a background process held open by an add-in or by another program that opened Excel in the background. Ending it is safe once your files are saved. For more ways to close a frozen program, including the taskbar’s End task option, see how to force close a window on Windows 11.

Force Quit Excel on a Mac

Apple’s force quit instructions for Mac give two ways to close an app that won’t respond.

  1. Press Option + Command + Esc together, or choose Force Quit from the Apple menu.
  2. Select Microsoft Excel in the Force Quit window.
  3. Click Force Quit.

If even that fails, Apple suggests choosing Restart from the Apple menu. If the Mac doesn’t respond at all, press and hold the power button for up to 10 seconds until it turns off, then turn it back on.

Get Your Unsaved Work Back

When you reopen Excel after a forced close, look for the Document Recovery pane. It lists the files Excel could rescue. Open the newest one, check it, and save it right away with File > Save As.

Excel Document Recovery pane listing recovered workbooks
Open the newest version and save it right away. (Recreated interface)
  • Files on OneDrive or SharePoint: with AutoSave on, Excel for Microsoft 365 saves your changes every few seconds, so you’ll usually lose very little. You can also open older copies through version history.
  • Files saved on your PC: AutoRecover still applies even when AutoSave is off, but it only saves on a timer, so you can lose the minutes since the last snapshot.
  • On a Mac: Microsoft says Office for Mac recovers files automatically the next time you open the app. Save a recovered file immediately, because choosing Don’t Save deletes its AutoRecover copy.

Word uses the same recovery system, and the methods in recovering an unsaved Word document carry over closely if the recovery pane doesn’t appear.

Save More Often Without Thinking About It

Microsoft’s page on protecting your files in case of a crash recommends a shorter AutoRecover interval. On Windows:

  1. In Excel, select File > Options > Save.
  2. Make sure Save AutoRecover information every is checked and set it to 5 or 10 minutes.
  3. Check Keep the last autorecovered version if I close without saving, then select OK.

Excel for Mac also uses AutoRecover, but Microsoft notes that in Excel you can only turn it on or off there, not change how often it saves. Storing workbooks in OneDrive and leaving AutoSave on gives the best protection on both platforms; if you’ve switched it off, these AutoSave settings show where it lives.

Stop Excel From Hanging Again

If Excel refuses to close more than once, an add-in or a damaged install is the usual cause. Microsoft’s guide to Excel not responding, hanging or freezing works through these in order. Add-ins are a common cause, and resetting Excel to default settings covers Safe Mode and turning add-ins off one at a time.

Test Excel in Safe Mode

Safe mode starts Excel without your customizations, Excel add-ins, most COM add-ins or files in startup folders. Hold Ctrl while you double-click the Excel shortcut and choose Yes when asked, or press Windows key + R, type excel /safe and select OK. If Excel opens and closes normally in safe mode, the problem is something it skipped.

Prompt to start Excel in safe mode
Hold Ctrl while opening Excel to get this prompt. (Recreated interface)

Turn Off COM Add-ins

  1. Open Excel normally and select File > Options > Add-ins.
  2. At the bottom, pick COM Add-ins in the Manage box and select Go.
  3. Clear every checkbox, select OK, and restart Excel.
COM Add-ins dialog in Excel with add-ins turned off
Clear all add-ins, then re-enable them one at a time. (Recreated interface)
  1. If Excel now closes properly, turn the add-ins back on one at a time, restarting each time, until the problem returns. That last one is the culprit; update it or leave it off.

Excel add-ins are listed separately: choose Excel Add-ins in the same Manage box, select Go, and clear them the same way.

Suppose Elena’s Excel started hanging on exit after she installed a PDF tool. She clears all COM add-ins, Excel closes cleanly, and re-enabling them one by one shows the PDF add-in is to blame. She checks the maker’s site for an update before turning it back on.

Update and Repair Office

Install the latest updates from File > Account > Update Options > Update Now (choose Enable Updates first if Update Now isn’t listed). If that doesn’t help, repair Office on Windows 11: open Settings > Apps > Installed apps, select the More icon (three dots) next to your Microsoft 365 or Office entry, and choose Modify if it’s offered. If you don’t see it, open Control Panel > Programs and Features, right-click the Office entry and select Change. Microsoft describes Quick Repair as faster because it only detects and replaces corrupted files, and recommends Online Repair to make sure everything gets fixed. Save your work and close Office apps before you start, and restart the PC if Windows asks.

Rule Out Other Software

Microsoft also points to antivirus programs that integrate with Excel and to other startup programs. A selective (clean) startup, which loads Windows with only Microsoft services, helps you tell whether another program is interfering. As a last resort, restart the PC; that clears a stuck process but never brings back unsaved work.

Questions About Excel Not Closing

Why do my add-ins look disabled after a crash?

Office can disable an add-in that it thinks caused a problem. To turn it back on, go to File > Options > Add-ins, choose Disabled Items in the Manage box, select Go, pick the item and select Enable.

Can I change settings while in safe mode?

Not permanently. Microsoft notes that preferences can’t be saved in safe mode, so use it for testing and make your fixes after a normal restart.

Does this happen in Excel for the web?

Excel for the web runs in a browser tab, so closing the tab is all it takes. Workbooks there are stored in OneDrive or SharePoint and save as you go.

If a forced close cost you a sheet you’d built, check whether you can restore the worksheet from version history before rebuilding it by hand.