Microsoft 365 Version Requirements for Excel STOCKHISTORY Function
Question details
The user needs to know the specific Microsoft 365 subscription requirements to use the STOCKHISTORY function and calculate stock percentage changes.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to retrieve historical stock prices and calculate a five-day percentage change in Excel for the web.
- Observed behavior
- The STOCKHISTORY function is blocked or unavailable because the user is operating on a free or unsupported Microsoft 365 plan.
Verify your current Microsoft account status by logging into your account portal to check if you have an active, paid Microsoft 365 subscription.
Upgrade to a Qualifying Microsoft 365 Subscription
The STOCKHISTORY function is a premium data type feature that requires an eligible paid Microsoft 365 subscription to work.
Microsoft restricts certain advanced financial and data type functions to premium subscribers. If you are using a free tier or a basic version of Excel for the web without an attached subscription, STOCKHISTORY will return a #BLOCKED! error.
Go to the official Microsoft 365 website and log in with the account you use for Excel.
Choose an eligible paid plan, such as Microsoft 365 Personal, Family, or a Business/Enterprise tier, and complete the upgrade process.
Close your current Excel session and reopen it. Make sure you are signed in with the newly upgraded account to activate premium data types like STOCKHISTORY.

Calculate the Five-Day Percentage Change Using STOCKHISTORY
Once you have access to the STOCKHISTORY function, you can extract the necessary prices to calculate your desired stock variance.
Manage Complex Spreadsheets with WPS Office
If you are frustrated by premium paywalls for essential spreadsheet features, consider trying WPS Office. It is a powerful, lightweight alternative to Microsoft Office that provides comprehensive formula support and seamless format compatibility without the confusing subscription tiers.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the quick on-screen instructions to set up WPS Office on your device.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing Excel workbooks to seamlessly continue your financial data analysis.

Frequently Asked Questions
Why does the STOCKHISTORY function show a #BLOCKED! error?
This error typically occurs when your Microsoft account does not have an active, eligible Microsoft 365 paid subscription. It can also happen if connected experiences are disabled in your Excel Trust Center settings.
Is the STOCKHISTORY function available in Excel 2019 or Excel 2021?
No, STOCKHISTORY is a dynamic array function and a premium data type exclusively available to Microsoft 365 subscribers. It is not included in perpetual license versions like Office 2019 or Office 2021.
Do I need the desktop app to use the STOCKHISTORY function?
No, the STOCKHISTORY function works in Excel for the web as well, provided that you are signed in with an account that has a paid Microsoft 365 subscription attached to it.




