#BLOCKED! error in Excel: causes and how to fix it
Fix #BLOCKED! in Excel 365: linked data types blocked by privacy settings, Python in Excel licence and calculation mode, untrusted links, IMAGE, XLM and DDE.
#BLOCKED! means "a setting, policy or licence is stopping me". The formula is fine and the resource exists, but Excel is not allowed to use it: linked data types are switched off in the privacy settings, Python in Excel is not enabled for your account or calculation mode, links to other workbooks have not been trusted, or your organisation blocks a feature. Unlike #CONNECT! error in Excel: causes and how to fix it, where Excel tried and failed to reach a service, #BLOCKED! means it did not even try. The fix is nearly always a setting rather than a formula change, so it is worth knowing where those settings live. For the classic errors see Formula errors: what each one means and how to fix it.
What #BLOCKED! means
Select the cell and click the warning icon: Excel names the specific reason, such as Privacy settings, License required, Not signed in, Linked Data Types blocked, Calculation mode not supported or Python functions disabled. Each of those maps to one of the causes below. If the file comes from someone else, remember that settings that look restrictive may be protecting you; enable features only for workbooks you trust.
Cause 1: linked data types are blocked by privacy settings
Stocks, Geography and other linked data types fetch information from online services. If your privacy or Trust Center settings do not allow that, every field formula returns #BLOCKED!.
| A | B | |
|---|---|---|
| 1 | City | Population |
| 2 | Paris | #BLOCKED! |
A2 is a Geography record, but the settings on this computer do not allow linked data types.
Result: #BLOCKED!
Fix. In Excel for Windows go to File › Options › Trust Center › Trust Center Settings and, under the security settings for linked data types, choose Prompt user about linked data types (recommended) rather than blocking them. Also check that Microsoft 365 connected experiences are allowed: File › Account › Account Privacy › Manage Settings. On a work computer these options may be greyed out because IT controls them; in that case ask your administrator.
Cause 2: Python in Excel is not available for this account or mode
Python formulas created with PY are blocked in several situations: connected experiences are switched off; the workbook's content has not been enabled; you are signed in with an account type that does not support Python; your licence or Excel version does not meet the requirements; you have used up a daily or monthly compute quota; too many workbooks with Python are open at once; or calculation is set to manual or partial, which needs the paid Python add-on licence.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Region | Sales | ||
| 2 | East | 5200 | #BLOCKED! | |
| 3 | West | 3100 | ||
| 4 | North | 3900 |
Calculation is set to Manual. In the cell you type only the Python code.
Result: #BLOCKED!
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Region | Sales | ||
| 2 | East | 5200 | 12200 | |
| 3 | West | 3100 | ||
| 4 | North | 3900 |
After switching to Automatic calculation: 5,200 + 3,100 + 3,900 = 12,200.
Result: 12200
Fix, depending on the reason shown: switch to Formulas › Calculation Options › Automatic; click Enable Content on the yellow bar for files from others; allow connected experiences as in Cause 1; close other workbooks that contain Python; sign in with a supported work, school or personal Microsoft 365 account; or wait for the quota to reset. If the message says the compute resource was recycled, Formulas › Python › Reset runtime (Ctrl+Alt+Shift+F9) helps. Python in Excel is not available on iPad, iPhone or Android.
Cause 3: links to other workbooks have not been trusted
When you open a file that links to other workbooks, Excel shows a security warning and does not update the links until you allow it. In Microsoft 365 the affected formulas can show #BLOCKED!.
='[Budget 2026.xlsx]Summary'!B12Fix. If you trust the file, click Enable Content on the security bar, or check the external content settings under File › Options › Trust Center › Trust Center Settings › External Content. Also confirm you have permission to the linked file; Data › Workbook Links shows each source and its status.
Cause 4: IMAGE pictures that settings will not load
IMAGE downloads pictures from the web, which your settings or your organisation's policy may forbid. A picture that is too large, or a workbook whose images together exceed the size limit, is also refused. Use an https address (addresses without it are refused, depending on the version with #BLOCKED! or #VALUE!), use smaller images, and check the privacy settings described in Cause 1.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Photo URL | Photo |
| 2 | Desk lamp | https://example.com/lamp.png | #BLOCKED! |
On a computer where downloading external images is turned off by policy.
Result: #BLOCKED!
Cause 5: other blocked features
- Excel 4.0 (XLM) macros. Old macro sheets and names that use XLM functions are blocked when XLM macros are disabled in the Trust Center, which is the default in current versions for security reasons. Only enable them for files you trust, and consider rewriting the logic in VBA or formulas.
- Dynamic Data Exchange (DDE). Formulas that pull live data from another program through DDE are blocked if DDE is disabled in the Trust Center.
- Licence or region. Some data types and functions need a particular Microsoft 365 plan or are not offered in every country; the warning names this, and the only fix is a different plan or source.
- Not signed in. Features tied to your account show #BLOCKED! until you sign in at File › Account.
How to find every #BLOCKED!
- Go To Special. Press
F5orCtrl+G, click Special, choose Formulas with only Errors ticked. Every formula showing an error is selected, including this one. - Find All.
Ctrl+F(Cmd+F), search for#BLOCKED!with Look in: Values and Within: Workbook, then Find All to get a clickable list. - Error Checking. Formulas › Error Checking steps through each error cell; the warning icon beside a cell also shows Excel's short explanation of the specific reason, which for the newer errors is often more precise than the code itself.
- Trace Error (in the Error Checking drop-down) draws arrows back to the cell where the error first appeared, which matters because every formula that refers to the cell shows the same error.
- Read the reason once. Usually every #BLOCKED! in a workbook has the same cause, so fixing the setting for one cell and recalculating (
Ctrl+Alt+F9) clears them all.
When you should NOT hide #BLOCKED!
Never replace #BLOCKED! with a number. The data was not retrieved, so any substitute is invented. Also think twice before simply unblocking: a workbook from an unknown sender that wants linked content, old XLM macros or DDE may be trying to do something you do not want. Enable features for files you trust, and leave the protections on for everything else.
Version notes
- #BLOCKED! appears only in Microsoft 365 and Excel for the web, together with linked data types, Python in Excel and the newer handling of external content.
- Older versions show a security warning bar, #REF! or #NAME?, or simply the last saved values, depending on the feature.
- Administrators can control many of these settings through group policy, so the same file can calculate at home and show #BLOCKED! at work.