Sign in through Microsoft 365 on the web first; if that succeeds, the account and verification code are working and the next step is to repair Excel’s local sign-in process rather than repeat the password or code.
1. Test the account in a browser
- Close Excel.
- Open a private or InPrivate browser window.
- Go to https://www.office.com/signin.
- Enter the same email address, password, and a newly requested verification code.
- Try opening Excel from the Microsoft 365 web page.
Do not repeatedly request codes, because excessive requests can trigger a temporary verification block.^1^
2. If browser sign-in works but desktop Excel fails
On Windows 10 or later, run Microsoft’s dedicated Microsoft 365 sign-in troubleshooter:
- Open Start → Get Help.
- Search for sign in to Microsoft Office.
- Run the suggested troubleshooter and apply its fixes.
- Restart Excel and sign in again.
The troubleshooter performs checks specifically for Microsoft 365 sign-in failures.^2^
If that does not resolve it, note the complete error shown in Excel—including any number such as 1001, 657rx, or a correlation ID—and use Excel on the web temporarily. Different numbered errors have different repair procedures, so avoid deleting credentials or identity folders until the exact error and operating system are known.
3. If browser sign-in also fails after the code
At the verification screen:
- Select Sign in another way or Try another verification method, if offered.
- Choose an existing authenticator, phone, or alternate-email method.
- If no alternate method is available, switch between Wi-Fi and mobile data and try once.
- If Microsoft indicates a temporary block, stop retrying for at least 24 hours. Repeated attempts may extend the block.^1^
For a work or school account, contact the organization’s Microsoft 365 administrator if another verification method is unavailable. Microsoft’s work-account guidance notes that an organization may restrict self-service recovery.^3^
For a personal Microsoft account, use Microsoft’s sign-in helper. If it cannot resolve the issue, choose Get Help → Contact Support; support cannot manually provide verification codes or change protected account details.^4^
When requesting further help, provide:
- Windows or macOS and its version
- Whether browser sign-in succeeds
- Whether the account is personal or work/school
- The complete Excel error text and error number
- A screenshot with the email address and other personal information covered
References
- Troubleshoot Microsoft verification code issues | Microsoft Support
- Microsoft 365 troubleshooters | Microsoft Support
- Troubleshoot verification code issues for work or school accounts | Microsoft Support
- Contact Microsoft customer support | Microsoft Support