Cannot Open Excel Files by Clicking Icon? Fix It
In this article
If clicking an Excel file icon opens a blank window, shows an error, or does nothing at all, the fix usually involves repairing file associations, checking file permissions, or resetting Excel options. This article explains the common causes and step-by-step solutions for Windows and Mac.
Why Clicking an Excel File Icon Fails
When you double-click an .xlsx or .xls file, Windows or macOS uses the file association to decide which program should open it. If that association is broken, or if Excel itself is misconfigured, the file may not open as expected. Common symptoms include:
- Excel opens but shows a blank gray window
- An error like "Excel cannot open the file because the file format or file extension is not valid"
- Nothing happens at all
- Another program (like Notepad) opens the file
The cause is often a corrupted Office installation, a recent update that changed settings, or a file that is actually not a valid Excel file (e.g., a renamed text file).
Quick Fixes to Try First
- Restart Excel and your computer – Temporary glitches often clear with a reboot.
- Open Excel first, then use File > Open – If that works, the file itself is fine; the issue is with the association.
- Check if the file is blocked – Right-click the file, select Properties, and if there is an "Unblock" checkbox, tick it and click OK.
- Try a different file – If only one file fails, it may be corrupted or saved in an incompatible format.
Repairing File Associations in Windows
Windows 10 and 11 let you reset which app opens a file type. Here's how:
- Right-click the Excel file and choose Open with > Choose another app.
- Select Excel from the list. If it's not there, click More apps and scroll to find it.
- Check the box Always use this app to open .xlsx files.
- Click OK.
If Excel doesn't appear, you may need to browse to the Excel executable (usually C:\Program Files\Microsoft Office\root\OfficeXX\EXCEL.EXE). The exact folder depends on your Office version.
Resetting Excel Options and Add-ins
Sometimes Excel itself is the problem. A corrupted add-in or a changed setting can prevent files from opening normally.
- Disable add-ins: Go to File > Options > Add-ins. At the bottom, select "COM Add-ins" and click Go. Uncheck all add-ins, restart Excel, and test. If files open, re-enable add-ins one by one to find the culprit.
- Repair Office: In Windows, go to Settings > Apps > Installed apps (or Apps & features). Find Microsoft Office, click the three-dot menu, and choose Modify. Select Quick Repair first, then Online Repair if needed.
- Clear Excel's cache: Close Excel, then delete the contents of
%AppData%\Microsoft\Excel\XLSTART(if you have no custom startup files) and%AppData%\Microsoft\Excel\Excel15.xlb(the toolbar settings file). Excel will recreate these on next launch.
Mac-Specific Solutions
On macOS, the issue is usually the file association in Finder or a permissions problem.
- Right-click the file and select Get Info (or press Cmd+I).
- Under Open with, choose Microsoft Excel.
- Click Change All... to apply to all files of that type.
- If that doesn't work, check the file's permissions: in Get Info, expand Sharing & Permissions and ensure your user has Read & Write access.
Also, make sure Excel is fully updated: open Excel, go to Help > Check for Updates.
When the File Itself Is the Problem
If the file opens in another program or shows garbled text, it may not be a real Excel file. For example, a CSV file with a .xlsx extension will not open correctly. To check:
- Rename the file extension to .csv and open it in Notepad – if you see plain text with commas, it's a CSV.
- If the file is corrupted, try Excel's built-in repair: File > Open > Browse, select the file, click the arrow next to Open, and choose Open and Repair.
- If the file is from an older Excel version, try opening it in Google Sheets or LibreOffice to see if it's recoverable.
Preventing Future Issues
- Keep Office updated – Microsoft regularly fixes bugs related to file opening.
- Avoid renaming file extensions – always use "Save As" to change formats.
- If you use a cloud sync tool (OneDrive, SharePoint), make sure the file is fully downloaded before opening.
- Regularly run Office's built-in repair tool to catch problems early.
Frequently Asked Questions
Why does Excel open a blank gray window when I double-click a file?
This usually happens because the file association is set to open Excel but the file itself is empty or Excel is trying to open a template. Try opening Excel first, then use File > Open to locate the file. If that works, reset the file association as described above.
How do I reset Excel file associations to default?
In Windows, go to Settings > Apps > Default apps. Scroll to find Excel or search for .xlsx. Click the current default and choose Excel from the list. On Mac, use Get Info as described in the Mac section.
Can a corrupted add-in prevent files from opening?
Yes, a faulty COM add-in can cause Excel to crash or fail to load files. Disable all add-ins, restart Excel, and re-enable them one by one to identify the problematic one.
What if the file is password-protected and won't open?
Excel will prompt for a password when you double-click. If it doesn't, try opening Excel first, then File > Open and select the file – the password prompt should appear. If you've forgotten the password, there is no official way to recover it.
Why does Excel say the file format is invalid?
This error usually means the file extension doesn't match the actual content. For example, a file saved as .xlsx but actually containing HTML or plain text. Use "Open and Repair" or change the extension to .csv to see if the data is readable.
Does reinstalling Office fix the problem?
Often yes, but try a quick repair first (Settings > Apps > Microsoft Office > Modify > Quick Repair). If that doesn't work, a full uninstall and reinstall will reset all settings and file associations.