Run an Online Repair of the entire Microsoft 365/Office installation, because the screenshot shows an Office application startup failure and offers to repair the installation.
Close Excel, Publisher, and all other Office applications first.
Windows 11
- Right-click Start and select Installed apps.
- Find Microsoft 365 or Microsoft Office.
- Select the three dots next to it, then Modify.
- Choose Online Repair → Repair.
- Follow the prompts, restart Windows, and test Excel again.
Windows 10
- Right-click Start and select Apps and Features.
- Select Microsoft 365 or Microsoft Office.
- Select Modify.
- Choose Online Repair → Repair.
- Restart Windows and test Excel.
Online Repair repairs the complete Office suite, even when only Excel or Publisher is failing. It is more comprehensive than Quick Repair.^1^
2. Correct the visible licensing problem
The screenshot also shows “Unlicensed Product.” After the repair, open Excel and sign in with the Microsoft account used to purchase, redeem, or subscribe to Office.
If it remains unlicensed:
- Open the Microsoft account Services & subscriptions page.
- Sign in with the account used to obtain Office.
- Confirm that the Office product or Microsoft 365 subscription is listed and active.
- Check Control Panel → Programs → Programs and Features for multiple Office installations. If several versions are installed, uninstall versions no longer used, restart Windows, and open Excel again.
- For Microsoft 365 on Windows 10 or later, run the Microsoft 365 activation troubleshooter offered on Microsoft’s activation-support page.^2^
If this is a newly purchased product key that has not yet been redeemed, redeeming it is a one-time process that associates Office with the Microsoft account; afterward, install Office from that account.^3^
3. If Online Repair does not resolve the startup error
Uninstall and reinstall Office:
- Use Microsoft’s uninstall troubleshooter on the affected computer.
- Restart when prompted.
- Reinstall the Office version shown under the correct Microsoft account.
- Open Excel and sign in to activate it.
The uninstall troubleshooter requires Windows 10 or later and currently cannot remove Office 2024.[^4^](https://support.microsoft.com/office/-something-went-wrong-error-when-you-try-to-start-a-microsoft-365-app-4b4471dd-cf86-4a37-910d-35a01a6c7d17#windows-10 """Something went wrong" error when you try to start a Microsoft 365 app")
The supplied screenshot does not display error 30015-1; it shows Publisher’s startup-repair message and an unlicensed state. If the code reappears after repair and activation, record the complete error text and whether it occurs while installing Office or opening Excel, because those are separate troubleshooting paths.
References
- Repair an Office application | Microsoft Support
- Unlicensed Product and activation errors in Office | Microsoft Support
- Activate Office for Windows | Microsoft Support
- "Something went wrong" error when you try to start a Microsoft 365 app