logo
search
License & Subscription Issues

Microsoft 365 Version Requirements for Excel STOCKHISTORY Function

Algirdas JasaitisAlgirdas Jasaitis Oct 9, 2026 869 views

Question details

The user needs to know the specific Microsoft 365 subscription requirements to use the STOCKHISTORY function and calculate stock percentage changes.

Microsoft 365 Subscription Requirements for the Excel STOCKHISTORY Function
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.
Before you start

Verify your current Microsoft account status by logging into your account portal to check if you have an active, paid Microsoft 365 subscription.

Solution 1Recommended

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.

1
Navigate to Microsoft Subscriptions

Go to the official Microsoft 365 website and log in with the account you use for Excel.

2
Select a Premium Plan

Choose an eligible paid plan, such as Microsoft 365 Personal, Family, or a Business/Enterprise tier, and complete the upgrade process.

3
Refresh Your Excel Application

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.

Upgrade to a Qualifying Microsoft 365 Subscription
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install the Software: Run the installer and follow the quick on-screen instructions to set up WPS Office on your device.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing Excel workbooks to seamlessly continue your financial data analysis.
Free to use with robust data analysis and spreadsheet capabilities.Highly compatible with Microsoft Excel (.xlsx) files and standard formulas.Lightweight software that ensures quick startup on almost any device.Familiar user interface for a smooth and seamless migration.
microsoft office alternative - wps office

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.