License & Subscription Issues

Fix Excel STOCKHISTORY Subscription and Sign-In Errors

Algirdas JasaitisAlgirdas Jasaitis Dec 2, 2026 869 views

Question details

The user needs to resolve a STOCKHISTORY error that requests sign-in or a subscription even though Microsoft 365 is installed.

Fix Excel STOCKHISTORY Subscription and Sign-In Errors
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.
Before you start

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.

Solution 1Recommended

Sign in to Excel with the licensed Microsoft 365 account

Refresh Excel's account session and confirm that the account has an eligible subscription.

1
Check the account

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.

2
Sign out and sign in again

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.

3
Verify the 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.

4
Test the formula

Open the workbook and recalculate the STOCKHISTORY formula. Check whether the sign-in or subscription message has cleared.

Sign in to Excel with the licensed Microsoft 365 account
You may not need another subscription: An existing eligible subscription may be sufficient. First confirm that Excel is signed in with the account that owns or has been assigned the license.
Free Microsoft Office alternative

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.

Open and edit common Excel files, including XLSX and XLS formatsWork with spreadsheet data in a familiar interfaceUse a free, lightweight office suite for everyday workbook tasksMove existing Excel workbooks into WPS Office without starting from scratch
microsoft office alternative - wps office

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.