ERROR Function (Gnumeric)
Create actual spreadsheet error values with Gnumeric ERROR, including custom messages and verified ISNA and ISERROR checks.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
ERROR creates a spreadsheet error value from a supplied name. It is useful in Gnumeric-specific validation formulas and test workbooks: a missing required input can produce an actual error instead of a normal text label that downstream arithmetic might overlook.
Syntax and result type
ERROR(name)
name is a string, supplied in quotes or through a cell reference. The function returns an error value with that text, not an ordinary string. ERROR("#N/A") is therefore different from a cell containing the literal text #N/A.
The Gnumeric implementation constructs an error from the given string. It does not limit the name argument to a documented list of standard error names. Custom messages can be useful within Gnumeric, but a standard error such as #N/A is usually easier for other functions and workbook readers to interpret.
Worked example: test an error-handling branch
In three separate cells, enter:
| Formula | Native result |
|---|---|
=ERROR("#N/A") |
#N/A error |
=ISNA(ERROR("#N/A")) |
TRUE |
=ISERROR(ERROR("Missing price")) |
TRUE |
The third result confirms that a custom message produces an error type. It is not merely a string beginning with a warning. ISNA is appropriate for the specific not-available error, while ISERROR detects errors more broadly.
Use this small fixture to exercise a workbook’s error-handling logic without deliberately corrupting its actual source data. Keep such test formulas on a clearly labeled test sheet so that an intentional error is not mistaken for a production defect.
Advanced use: required-input validation
Consider a price-calculation workbook where a missing price must stop a result from looking valid. A design pattern is =IF(ISBLANK(A2),ERROR("#N/A"),A2*B2): if the input price cell is blank, the formula produces a not-available error; otherwise it calculates the product. Validate what counts as “missing” in your model. An empty string, a zero price, and a genuinely empty cell are not necessarily interchangeable.
This pattern is illustrative; the bounded native checks for this page cover ERROR and its predicates, not every possible validation condition. Test both branches and the input data types before adopting a larger formula.
Keep diagnostics separate from user-facing labels when possible. One cell can preserve the real error for calculation logic, while a report field explains the problem in ordinary text. Replacing every error with zero may conceal missing data and produce plausible but misleading totals.
Troubleshooting and portability
- If a downstream formula displays the same error, propagation is usually the intended consequence of producing an error value.
- If ISERROR returns FALSE on a label, check whether the cell contains text rather than an ERROR formula.
- A custom error string is not guaranteed to map to a standard error category in another application or export format. Test the actual round trip.
- Preserve the exact conventional spelling when a predicate such as ISNA must recognize a standard error.
- Do not use ERROR as a general exception handler: it creates an error; ISERROR and other conditional logic decide how to handle one.
Version and verification
The function is registered in official Gnumeric 1.12.57 source, but its first introduction release has not been established here. The three worked formulas were recalculated by Gnumeric 1.12.57 under C.UTF-8 on 17 October 2026. These multi-case checks are headless engine evidence; universal format portability is not claimed. The selected error-predicate example was additionally displayed in the actual application, as shown below. No retirement date is established.
Related guides
Official references
Native application screenshot
In this separate screenshot worksheet, B1 contains =ISNA(ERROR("#N/A")), which returns TRUE. The screenshot layout is independent of the cell positions in the earlier tutorial. Only this selected example is GUI-verified; the other checks retain their stated engine-test scope.

Actual Gnumeric 1.12.57 application, captured 17 October 2026. GUI locale was not independently recorded.