Fix Excel Stock Data Type Subscription and Sign-In Errors
Question details
The user needs to resolve an account error when using Excel's Stocks data type.

- Product
- Microsoft Excel and Microsoft 365
- Device & OS
- MacBook Air, macOS
- Scenario
- Use the Stocks data type or STOCKHISTORY in an Excel workbook with an eligible Microsoft 365 account.
- Observed behavior
- Excel reports an account error when the user attempts to use the stock feature.
Identify the Microsoft account associated with your Microsoft 365 subscription and make sure your Mac is connected to the internet. Save and close any open Excel workbooks before signing out.
Sign out of Excel and sign back in with the subscribed account
Use this Mac workaround to refresh Excel's account session and reconnect it to the correct Microsoft 365 subscription.
Open a blank workbook, then select Excel > Sign Out from the menu bar.
Choose Excel > Quit Excel, then reopen Excel and open a blank workbook.
Select File > New from Template, then select Sign In on the toolbar.
Sign in with the account linked to your eligible Microsoft 365 subscription. Reopen your workbook and try Data > Stocks or your STOCKHISTORY formula again.

Check the Microsoft 365 subscription linked to your account
Use this check if signing in again does not resolve the error or you are unsure which account has the subscription.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing spreadsheets. Its Microsoft Office format compatibility makes it easy to move existing files into WPS, but it does not fix Excel's Microsoft 365 sign-in or subscription errors.

Frequently Asked Questions
Where can I check which Microsoft 365 subscription I have?
Sign in at account.microsoft.com and open Services & subscriptions. For a work or school account, check your licenses at myaccount.microsoft.com or contact your administrator.
How do I sign out of Excel on a Mac?
In Excel, select Excel > Sign Out from the menu bar. Quit and reopen Excel before signing in again with the account linked to your subscription.
Are Stocks and STOCKHISTORY the same feature?
No. Stocks is a linked data type you can apply through Data > Stocks, while STOCKHISTORY is a formula for retrieving historical data. Their availability may depend on your subscription, platform, and region.
Can WPS Office fix an Excel subscription error?
No. The Excel account error must be resolved through Microsoft sign-in and licensing. WPS Office is an alternative for opening and editing compatible Excel files; it does not repair Microsoft's stock-data service.




