Fix Excel STOCKHISTORY Subscription and Sign-In Errors
Question details
The user needs to resolve a STOCKHISTORY error that requests sign-in or a subscription even though Microsoft 365 is installed.

- Product
- Microsoft Excel for Microsoft 365
- Device & OS
- not provided
- Scenario
- Using the STOCKHISTORY function in an Excel workbook with a Microsoft 365 subscription.
- Observed behavior
- Excel asks the user to sign out and sign in with an account that has a subscription.
Make sure your device is connected to the internet and identify the Microsoft account or work account associated with your Microsoft 365 subscription. Installing Microsoft 365 alone does not confirm that Excel is signed in with a licensed account.
Sign in to Excel with the licensed Microsoft 365 account
Refresh Excel's account session and confirm that the account has an eligible subscription.
In Excel, open File > Account and check the signed-in account and product information. On a Mac, check the account shown in Excel's account or profile menu.
Use Sign out in the account or profile menu, close Excel, and reopen it. Select Sign in and use the account associated with your Microsoft 365 subscription.
Open the Microsoft account Services & subscriptions page, or ask your organization's Microsoft 365 administrator to confirm that the account has an eligible license assigned.
Open the workbook and recalculate the STOCKHISTORY formula. Check whether the sign-in or subscription message has cleared.

Update Excel and check connected service access
Use this if signing in again does not resolve the error.
Work with Excel Files in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easy to bring existing workbooks into WPS. It does not resolve Microsoft 365 account errors or guarantee STOCKHISTORY compatibility.

Frequently Asked Questions
Do I need another subscription to use STOCKHISTORY?
Not necessarily. Check File > Account in Excel and confirm that you are signed in with an account that has an eligible Microsoft 365 subscription.
How do I update Excel if STOCKHISTORY still shows an error?
In Excel for Windows, select File > Account > Update Options > Update Now. On a Mac, select Help > Check for Updates.
Can my organization block STOCKHISTORY?
Organizational policies can restrict connected experiences. Ask your Microsoft 365 administrator to check your assigned license and relevant service policies.
Why does STOCKHISTORY need an internet connection?
STOCKHISTORY retrieves historical financial data through a connected service. Connect to the internet and recalculate the formula after confirming that your account and Excel version are supported.
Can WPS Office fix the Microsoft 365 sign-in error?
No. Resolve the account or subscription issue in Excel or with your Microsoft 365 administrator. WPS Office can open common Excel file formats, but STOCKHISTORY compatibility is not guaranteed.




