Contact

ERRORTYPE Function (OpenOffice Calc)

Information Intermediate OpenOffice Calc

Inspect OpenOffice Calc error codes with ERRORTYPE. The tested NA paths return 32767; learn why error codes, error values and displayed text differ.

Verification status: Eight ordinary ERRORTYPE examples were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, using a generated three-sheet ODF workbook. Saved identities, typed results and both controls were checked. The NA raw code 32767 is an observed result; other error codes were not tested. No manual-entry, XLSX-import or other-release execution is claimed. How formula examples are checked

Quick answer: =ERRORTYPE(NA()) produced 32767 in the Apache OpenOffice 4.1.16 check below.

Availability and version history

  • Introduced: First release not established; documented by OpenOffice.org 3.3.
  • Supported in: Apache OpenOffice 4.1.16; no final supported release is established.
  • Scope: English desktop Calc, semicolon-separated formulas and local workbook references.
  • Checked: October 14, 2026. Eight examples were recalculated in 4.1.16 on Linux x86-64, Build9816. Generated-ODF identities, saved results and controls were checked; no manual-entry or different-release test is claimed.

What ERRORTYPE returns

ERRORTYPE returns the native error code associated with an expression or referenced cell that contains an error. This is an internal numeric code, not the displayed error text and not necessarily a small ordinal category. The executed missing-data cases below all return 32767 for the NA error. Release implementation.

Syntax and arguments

ERRORTYPE(Value)

Value is the expression or cell reference to inspect. An existing error is the intended input to this function. The complete callback handles references and calculated values, clears the inspected error state, and returns its code as a number.

Reproducible setup

On Reference, put =NA() in H9. That cell intentionally contains the #N/A missing-data error. The other cases below create or propagate the same intended missing-data value inside the expression; they do not rely on malformed formulas or invalid financial inputs.

Eight checked examples

All eight formulas were recalculated. The expected operation is propagation of the same missing-data error; the numeric code 32767 comes from the actual 4.1.16 results, not an independently inferred universal code table.

Formula Source-based expectation Saved 4.1.16 result
=ERRORTYPE(NA()) NA error code 32767
=ERRORTYPE(H9) NA error code 32767
=ERRORTYPE(NA()+1) NA error code 32767
=ERRORTYPE(SUM(NA())) NA error code 32767
=ERRORTYPE(IF(1;NA();0)) NA error code 32767
=ERRORTYPE(IF(0;0;NA())) NA error code 32767
=ERRORTYPE(IF(ISNA(NA());NA();1)) NA error code 32767
=ERRORTYPE(H9*2) NA error code 32767

Practical worksheet

Use =ERRORTYPE(H9) to inspect the intentional missing-value cell. The result is numeric 32767, while H9 itself still displays #N/A. The diagnostic does not repair the original value or turn it into a valid amount.

For a mixed column, a useful source-derived pattern is =IF(ISERROR(A2);ERRORTYPE(A2);"OK"). It asks for a code only when A2 is an error. This pattern was checked against the relevant source branches; it is not an additional executed table case. Keep the original field and the diagnostic in separate columns.

Advanced interpretation and checks

The table follows the same missing-data error through a direct NA call, a reference, arithmetic, SUM and conditional selection. Each retained code is 32767. That agreement demonstrates propagation of this specific error identity; it is not a survey of all Calc error numbers.

The source returns an NA error when no error is found, rather than numeric zero. This is why a valid-cell guard can be useful. Do not write a generic rule that equates a missing ERRORTYPE result with “no error,” and do not compare the function’s output to the literal text "#N/A" when you intend to compare numeric codes.

The saved file uses the ODF name ORG.OPENOFFICE.ERRORTYPE. The release’s English-name registry maps it to ERRORTYPE. The numeric code was observed in 4.1.16; a complete version-independent code table is not asserted.

Boundaries and troubleshooting

An error value and a string containing an error-looking label are different inputs. For example, typing #N/A as text does not by itself create the same error as NA(). These tests inspect actual missing-data errors, including the formula in H9.

Do not substitute an unrelated product’s category numbering when reading these values. Other errors, invalid references and the no-error branch were source-reviewed only or remain outside the executed examples. Range arguments can invoke reference-resolution rules, so use a single cell when the purpose is a row-by-row diagnostic.

Official evidence and checking scope

The generated ODF was opened in the native GUI, hard-recalculated and saved separately. The informational “Not all attributes could be read” load warning was retained. A deliberately stale SUM cache refreshed to 3, and an uncached SUM returned 7. The exact local inputs, sheet order, formula identities and saved values were reconciled. The authoring-tool XLSX and its previews were not used as native calculation evidence. Only the listed cases and release are covered.