Excel errors

#UNKNOWN! error in Excel: causes and how to fix it

Why Excel shows #UNKNOWN!: data types, Python in Excel or newer rich values that this version or platform cannot read. How to update, convert or share safely.

#UNKNOWN! means "this version of Excel does not know this kind of data". Modern Excel can store more than numbers and text in a cell: linked data types such as Stocks and Geography, organisation data types from Power BI, Python objects and other rich values. A workbook created in an up-to-date Microsoft 365 can contain a value type that an older or differently licensed Excel has never heard of. When that Excel opens the file, it cannot display or calculate the value, and shows #UNKNOWN! instead. The data is usually not lost; it is just not readable here. For the overview of errors see Formula errors: what each one means and how to fix it.

What #UNKNOWN! means

Every cell value has a type. Each new type is added to Excel through updates, and Excel only understands types it knows about. When it meets an unrecognised one, it keeps the stored value but displays #UNKNOWN!, and formulas that refer to the cell inherit the error. The fix is therefore almost never in the formula: it is in the version, the licence or the platform of the Excel that opens the file, or in converting the rich value to plain data before sharing.

Cause 1: Python in Excel opened where Python is not supported

PY formulas need a version of Microsoft 365 that supports Python in Excel. Opened in an Excel build that does not, for example on a platform or update channel without Python, the cell shows #UNKNOWN!.

D2fx=PY("xl('A1:B4', headers=True)['Sales'].sum()", 0)
ABCD
1RegionSales
2East5200#UNKNOWN!
3West3100
4North3900

Opened in an Excel version that does not support Python in Excel. In a supported version the same cell shows 12200.

Result: #UNKNOWN!

Fix. Update Excel (File › Account › Update Options › Update Now) and check that your plan and channel include Python in Excel, or open the file in Excel for the web. Python in Excel is not available on iPad, iPhone or Android. If the recipients cannot run Python, set the cell's output to Excel value, then copy and Paste Special › Values a version of the results for them.

Cause 2: linked data types in a version without them

Stocks, Geography and organisation data types need a Microsoft 365 subscription, a sign-in and a version that supports them. Opened in a perpetual version such as Excel 2019 or 2021, in an old Microsoft 365 build, or without being signed in, the records may appear as #UNKNOWN!, as plain text, or as their last displayed value, depending on the version. Formulas that read their fields then fail too, often with #UNKNOWN! or #NAME?.

Fix. Sign in with the Microsoft 365 account and update Excel, or open the workbook in Excel for the web. Before sending a workbook to people on older versions, convert the records: select them and choose Data › Data Types › Convert to Text (or right-click › Data Type › Convert to Text), and paste field formulas as values. The recipient then sees the names and numbers as ordinary data.

C2fx=B2/1000000
ABC
1CityPopulation (as value)
2Paris21026502.1

After converting to text and pasting values, the population is an ordinary number that every Excel version can use (here in millions, shown to one decimal; the figure is an example).

Result: 2.1

Cause 3: a newer value type from a recent update

Microsoft keeps adding rich value types (new data providers, image values in cells, results from AI or Python features). A file saved by a colleague on a fast update channel can contain one that your slower channel (for example Semi-Annual Enterprise Channel) does not support yet. The cells show #UNKNOWN! until your Excel receives the update. Fix: update, wait for your channel to catch up, or ask the sender for a values-only copy.

Cause 4: unsupported platforms and apps

  • Excel on iPad, iPhone and Android supports fewer rich features than Windows, Mac and the web; Python results in particular are not available there.
  • Third-party programs and previewers (Google Sheets, LibreOffice, Numbers, file preview panes) do not understand Excel's rich value types and show errors, blanks or the last plain value.
  • Exporting to CSV keeps only the displayed text; the rich data is lost. Export values deliberately if others need them.

How to find every #UNKNOWN!

  1. Go To Special. Press F5 or Ctrl+G, click Special, choose Formulas with only Errors ticked. Every formula showing an error is selected, including this one.
  2. Find All. Ctrl+F (Cmd+F), search for #UNKNOWN! with Look in: Values and Within: Workbook, then Find All to get a clickable list.
  3. 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.
  4. 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.
  5. Check the version first. Open File › Account to see the Excel version, build and update channel; compare with the person who created the file. If theirs is newer, Causes 1 to 3 are likely.

When you should NOT hide #UNKNOWN!

Do not wrap formulas in IFERROR to make #UNKNOWN! go away. The underlying value exists; your Excel simply cannot read it, so whatever you substitute is a guess. Totals built over such cells would silently exclude them. Open the file in a version that supports the data, or ask for a copy with plain values.

Version notes

  • #UNKNOWN! itself is shown only by Microsoft 365 builds that know about rich values; very old versions show other errors or plain text for the same cells.
  • Linked data types and Python in Excel require a Microsoft 365 subscription; perpetual versions (Excel 2019, 2021, 2024) do not include them.
  • Excel for the web always runs the newest build, which makes it the simplest way to read a file that shows #UNKNOWN! on your desktop.

More excel errors