Fix Excel 2013 Not Opening from Run or Command Line
Question details
The user is unable to launch Microsoft Excel 2013 using the Windows Run dialog or the Command Prompt.

- 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.
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.
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.
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.
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.
Under the 'System variables' section, scroll down to find the variable named 'Path'. Select it and click the 'Edit' button.
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.
Restart your Windows computer. Once logged back in, press Win + R, type 'excel', and hit Enter to confirm the application launches successfully.

Run an Online Repair for Office 2013
If updating the PATH variable does not work, the Office installation might have missing registry keys or broken file associations. Running a built-in repair will automatically fix these system configurations.
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. Download WPS Office: Visit the official WPS website and download the free installer package for Windows.
- 2. Install the software: Run the downloaded installer to set up the complete WPS Office suite in just a few clicks.
- 3. Open your spreadsheets: Launch WPS Spreadsheet to create new workbooks or seamlessly open and edit your existing Microsoft Excel files.

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.




