Office Apps Not Opening

Fix Excel 2013 Not Opening from Run or Command Line

Kushani NimanthikaKushani Nimanthika Nov 2, 2026 868 views

Question details

The user is unable to launch Microsoft Excel 2013 using the Windows Run dialog or the Command Prompt.

Fix Excel 2013 Not Opening from Run or Command Line
Product
Microsoft Excel 2013
Device & OS
Windows
Scenario
Attempting to launch Excel quickly using the Win+R Run dialog or via the command line after removing Microsoft 365 from the PC.
Observed behavior
Windows returns an error stating that it cannot find the file, because the Excel installation path was removed from the system's environment variables during the Microsoft 365 uninstallation.
Before you start

Ensure you have administrator privileges on your computer, as modifying system environment variables requires an admin account. Find and verify your exact Microsoft Office 2013 installation folder path (usually located at C:\Program Files\Microsoft Office\Office15) before proceeding.

Solution 1Recommended

Add Office Installation Path to System Environment Variables

Manually adding the Excel 2013 directory to your system's PATH variable allows Windows to correctly locate the executable file when triggered from the Run dialog or Command Prompt.

When Microsoft 365 is uninstalled, it often accidentally clears the shared environment variables used by older Office versions. Restoring this path tells Windows exactly where to look when you type the 'excel' command.

1
Locate the Excel.exe folder

Open File Explorer and navigate to your Office 2013 installation folder. This is typically located at 'C:\Program Files\Microsoft Office\Office15' or 'C:\Program Files (x86)\Microsoft Office\Office15'. Highlight the address bar and copy this folder path.

2
Open Environment Variables settings

Press the Windows key, type 'Environment Variables' in the search bar, and click on 'Edit the system environment variables'. In the System Properties window that opens, click the 'Environment Variables' button at the bottom.

3
Edit the PATH variable

Under the 'System variables' section, scroll down to find the variable named 'Path'. Select it and click the 'Edit' button.

4
Add the copied installation path

Click the 'New' button and paste the folder path you copied earlier into the text field. Click 'OK' on all three open windows to apply and save your changes.

5
Restart and verify

Restart your Windows computer. Once logged back in, press Win + R, type 'excel', and hit Enter to confirm the application launches successfully.

Add Office Installation Path to System Environment Variables
Path Restored: Adding the path not only fixes Excel but often restores command-line functionality for Word (winword) and PowerPoint (powerpnt) if they are in the same directory.
Free Microsoft Office alternative

Switch to WPS Office for a Hassle-Free Experience

If Microsoft Office installation errors, broken registry paths, and version conflicts are slowing down your workflow, consider switching to WPS Office. It provides a lightweight, unified desktop application that avoids complex system configuration errors, offering a familiar interface to get you back to work instantly without the hefty price tag.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installer package for Windows.
  2. 2. Install the software: Run the downloaded installer to set up the complete WPS Office suite in just a few clicks.
  3. 3. Open your spreadsheets: Launch WPS Spreadsheet to create new workbooks or seamlessly open and edit your existing Microsoft Excel files.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Free to use with built-in Writer, Spreadsheet, and Presentation tools.Lightweight installation footprint that prevents system registry conflicts.Familiar user interface that requires no learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why did removing Microsoft 365 break my Excel 2013?

Uninstalling Microsoft 365 often removes shared Office registry keys and system environment variables. Because both versions share certain system configurations, the uninstaller inadvertently removes the pointers Windows uses to locate older Office executables like Excel 2013.

What is the exact Run command to open Microsoft Excel?

To open Excel via the Run dialog, press the Windows key + R, type the word 'excel' (without quotes), and press Enter. This requires the system PATH variable to be properly configured.

Can I run Excel from the command line with a specific file?

Yes. Once the environment variable PATH is correctly configured, you can open the Command Prompt and type 'excel "C:\path\to\your\file.xlsx"' to launch a specific workbook directly.

Do I need to restart my computer after changing environment variables?

While some applications and the Run dialog may detect PATH changes immediately, restarting your computer is highly recommended to ensure all background processes, services, and command-line tools recognize the newly added variables.