To close Excel when it is running in the background, first try File > Exit inside any open Excel window, or right-click the Excel icon on the Windows taskbar and choose Close window. If no Excel window is visible, open Task Manager (Ctrl+Shift+Esc), find every Microsoft Excel entry under Processes, select each one and click End task. The reason a hidden Excel keeps running is usually that a workbook was closed while a dialog box, macro or COM automation script still held it open, so the process survives with no visible window.

Labels and wording differ slightly between Windows versions, Office versions and Mac, so treat the exact menu names below as a guide rather than gospel.

What You'll Need

  • A Windows PC with Excel installed (the Task Manager steps are Windows-only; the Mac alternative is in step 5).
  • Permission to end processes on the PC, or an administrator account if you are not the main user.
  • Unsaved work saved or consciously abandoned before you force anything closed.
  • Optionally, the Excel file location and name if you need to recover an autosaved copy afterwards.

Step-by-Step

  1. Save your work first. Switch to each open Excel window and press Ctrl+S. If a dialog offers to save, save. Ending a background process discards anything that was not on disk, and Excel's AutoRecover only covers certain files and intervals, so do not rely on it.
  2. Try the polite exit. With an Excel window active, go to File > Close, then File > Exit. File > Exit closes all workbooks and ends the application. If Excel asks whether to save, answer carefully rather than clicking Don't Save blindly.
  3. Check the taskbar. Right-click the Excel icon in the Windows taskbar, then right-click the Excel document thumbnail and choose Close window. If several windows are stacked, close each one this way.
  4. Look for a hidden window. Press Alt+Tab and hold it to see every running window, including one dragged off-screen or shrunk to nothing. If Excel appears, select it, then use File > Exit.
  5. Use Task Manager. Press Ctrl+Shift+Esc to open Task Manager. On the Processes tab, scroll to the Microsoft Excel entries. Select one and click End task; repeat for every Microsoft Excel line, including any labelled with a document name. If you see several, end them all.
  6. End it from the Details tab if it persists. In Task Manager, open the Details tab, find EXCEL.EXE, right-click it and choose End task. This catches processes that the Processes tab groups away. A warning that you will lose unsaved data may appear, which is expected.
  7. Mac alternative. On macOS, press Option+Command+Esc to open Force Quit, select Microsoft Excel and click Force Quit. Or open Activity Monitor, find Microsoft Excel and click the stop button. Both do the same thing as Task Manager.
  8. Reopen and confirm. Launch Excel normally. If it opens cleanly and no second EXCEL.EXE remains in Task Manager, the background instance is gone. If you are prompted to open a recovered file, that is AutoRecover offering the last saved state, and you can accept or dismiss it.
  9. If it keeps returning, find the cause. Close Excel-linked add-ins you can identify in the app's options, disconnect any running automation or macro that talks to Excel, and check whether a sync client or a third-party tool is holding the file. Unsynced OneDrive or SharePoint files can keep a process alive while it tries to upload.

Common Mistakes

  • Clicking the X and assuming it closed. The window button can leave the app running if a dialog, macro or background process is active. Confirm in Task Manager rather than trusting the desktop.
  • Ending only one process. Several EXCEL.EXE entries can be listed, especially after automation scripts or crashed sessions. End each one, not just the first.
  • Force-closing before saving. Ending a task is abrupt. Save first, and understand that any unsaved changes are lost.
  • Confusing Excel with a document preview. A thumbnail in the taskbar is not a running process. Open Task Manager to check what is actually live.
  • Blaming Excel for a stuck file. A workbook on a network drive or syncing cloud folder can look like a background Excel when the real delay is the file share or sync client.
  • Restarting the PC as the first move. A reboot works, but it shuts down everything else. Task Manager is faster and does not interrupt other apps.

Tips

  • Keep Task Manager sorted by name so EXCEL.EXE is easy to find next time.
  • If you use macros or scripts that open Excel invisibly, close your automation tool before closing Excel. That is the cleanest way to prevent orphaned processes.
  • Save important workbooks to a location you can find again, so recovery after a force close is simple.
  • Restart the PC occasionally if Excel processes accumulate over days of use. A fresh session clears stuck instances.
  • Check for Office updates in the app's account or update settings. If crashes are frequent, updates often address stability issues, though the exact wording differs by version.

Troubleshooting

Task Manager will not end the process. Try End task again, then use the Details tab with EXCEL.EXE. If it refuses, sign out of Windows and sign back in, which clears your session's processes. Signing out closes your other open apps too, so save first.

Excel restarts itself immediately. Something is launching it: a startup add-in, a scheduled macro, or an automation tool. Close the tool, then end the process once more.

You cannot see the Excel window but Task Manager shows it. Use Alt+Tab to look for a hidden window, or right-click the taskbar icon and close the window from the thumbnail list. If nothing appears, ending the task is the reliable fallback.

The file is locked after closing. A leftover process usually causes this. End every EXCEL.EXE entry, then try opening the file again. If it is on a synced cloud folder, wait for the sync to finish or pause syncing briefly.

Work disappeared after a force close. Reopen Excel and look for a recovered file prompt or check the recovery pane the app offers when it detects an unexpected shutdown. Recovery may still miss recent edits, so save frequently.

An error mentions a dialog or modal window. A hidden dialog can block a normal exit. Alt+Tab to find it, answer or dismiss it, and then use File > Exit again.

Frequently Asked Questions

Why does Excel stay in the background after I close it?

Usually a dialog, macro, add-in or automation script is still holding the app open. Closing the window does not always end the process, so the Excel instance remains with no visible window.

Is it safe to end the Excel task in Task Manager?

It is safe for the system, but any unsaved changes in that session are lost. Save open workbooks first, then end the task.

How do I know Excel is really closed?

Open Task Manager and check the Processes or Details tab. If no Microsoft Excel or EXCEL.EXE entry is listed, it is fully closed.

Does this work on a Mac?

Yes, through a different tool. Use Force Quit (Option+Command+Esc) or Activity Monitor to quit Microsoft Excel, since macOS has no Task Manager.

Will I lose my file if I force close Excel?

You lose unsaved edits. The saved file on disk stays intact, and Excel may offer a recovered version from its AutoRecover data when you reopen it.

Why do I see several Excel processes at once?

Each window, automation instance or crashed session can create its own process. Multiple entries are normal in those cases; end all of them to fully close Excel.