logo
search
Excel Error Codes

How to Fix Excel STOCKHISTORY #BLOCKED Error

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

Question details

The user needs to understand why the STOCKHISTORY function is returning an error and determine which Microsoft Office licenses support retrieving historical stock data.

Product
Microsoft Excel
Device & OS
not provided
Scenario
Attempting to retrieve historical stock data using the STOCKHISTORY function in Microsoft Excel.
Observed behavior
The STOCKHISTORY function fails and returns a #BLOCKED error instead of populating the spreadsheet with financial data.
Before you start

Before troubleshooting, verify the exact version of Microsoft Office you are currently using, as the STOCKHISTORY function is heavily dependent on specific subscription licenses.

Solution 1Recommended

Verify Your Microsoft 365 Subscription Status

Check if you have an active Microsoft 365 subscription, as STOCKHISTORY is not supported on perpetual licenses like Office 2024 or Office 2021.

The STOCKHISTORY function is exclusively available to Microsoft 365 subscribers. If you recently purchased a perpetual license such as Microsoft Office Home 2024, this feature is restricted by design and will display a #BLOCKED error.

1
Open Account Settings

Launch Microsoft Excel, click on the "File" tab in the top-left corner, and select "Account" from the bottom of the left-hand menu.

2
Check Product Information

Look under the "Product Information" section. Confirm whether your license is listed as "Subscription Product Microsoft 365".

3
Evaluate Licensing Limitations

If the product is listed as Office 2024 or another perpetual year-based version, the STOCKHISTORY function cannot be used on your current license.

Licensing Requirement: Cloud-connected data types in Excel are premium features restricted to Microsoft 365 plans to ensure real-time data connectivity.
Free Microsoft Office alternative

Use WPS Office as a Lightweight Alternative

If you are tired of dealing with expensive Microsoft 365 subscriptions just to avoid #BLOCKED errors, try WPS Office. It is a powerful, free, and highly compatible alternative for your daily spreadsheet, document, and presentation needs.

  1. 1. Visit the Official Website: Go to the official WPS Office website using your web browser.
  2. 2. Download the Installer: Click the 'Free Download' button to get the correct version for your Windows, Mac, or Linux operating system.
  3. 3. Install and Run: Open the downloaded file and follow the quick installation prompts to start using your new Office suite immediately.
Free to use without mandatory recurring subscription fees.Highly compatible with Microsoft Excel (.xlsx) and other Office formats.Lightweight installation and extremely fast startup times.Familiar user interface makes switching completely seamless and easy.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Office 2024 not support the STOCKHISTORY function?

Microsoft restricts certain cloud-connected data types, including STOCKHISTORY, exclusively to Microsoft 365 subscription plans. Perpetual, one-time purchase licenses like Office 2024, 2021, or 2019 do not include these premium cloud features.

Can I fix the #BLOCKED error without a Microsoft 365 subscription?

No, if the error is caused by your license type, the only way to resolve it and use STOCKHISTORY natively is to upgrade to a qualifying Microsoft 365 subscription. As an alternative, you can manually export stock data from financial websites into CSV format.

What other errors might occur with the STOCKHISTORY function?

You might encounter #BUSY! if the data is still loading from the server, #VALUE! if the date parameters you entered are invalid, or #CONNECT! if you have lost your internet connection while Excel is trying to fetch the stock data.