A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Run the Microsoft 365 Sign-in troubleshooter first, because the prompt is coming from the Excel desktop application’s Office authentication session rather than from Microsoft Edge.
1. Run the automated sign-in repair
- Close Excel and all other Office applications.
- Open the Microsoft 365 sign-in troubleshooter.
- Follow the prompts for the account that Excel is displaying.
- Apply any recommended repair, restart Windows, and then open Excel → File → Account → Sign in.
The troubleshooter performs automated tests and recovery actions for Office sign-in problems on Windows 10 or later.^1^
2. Determine whether the account or this PC is affected
In a browser, sign in at the Microsoft 365 portal using the same email address:
- Browser sign-in succeeds: The account works, so continue with the local Windows/Office repairs below.
- Browser sign-in fails: Recover the personal Microsoft account, or contact the organization’s Microsoft 365 administrator if it is a work or school account.
- A choice appears between personal and work/school accounts: Select the account that owns the Excel or Microsoft 365 license.
Microsoft’s non-browser authentication guidance recommends comparing the affected computer with browser or other-computer sign-in results to distinguish a local client problem from an account problem.^2^
3. Remove a conflicting Windows account only if one is listed
If Windows contains an old or unused work/school identity:
- Open Start → Settings → Accounts → Access work or school.
- Select only the obsolete or incorrect account.
- Select Disconnect.
- Restart Windows and sign in to Excel with the account that owns the license.
Do not disconnect an account currently required to manage the PC. Removing an obsolete account reference can stop Office from repeatedly attempting authentication with the wrong identity.^3^
4. Repair Windows authentication packages if the troubleshooter fails
Use this only on Windows 10 version 1703 or later with Microsoft 365 version 1807 or later, because that is the documented scope of this repair. Open Windows PowerShell as Administrator, then run the command matching the account type.^4^
# Work or school account
if (-not (Get-AppxPackage Microsoft.AAD.BrokerPlugin)) {
Add-AppxPackage -Register "$env:windir\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\Appxmanifest.xml" `
-DisableDevelopmentMode -ForceApplicationShutdown
}
Get-AppxPackage Microsoft.AAD.BrokerPlugin
For a personal account such as Outlook.com or Hotmail:
if (-not (Get-AppxPackage Microsoft.Windows.CloudExperienceHost)) {
Add-AppxPackage -Register "$env:windir\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\Appxmanifest.xml" `
-DisableDevelopmentMode -ForceApplicationShutdown
}
Get-AppxPackage Microsoft.Windows.CloudExperienceHost
Restart Windows afterward and retry Excel → File → Account → Sign in. If the problem remains, note the account type, Windows version, Office version, and any error code shown; those details determine the next repair path.
References