Contact

ISTEXT Function (OpenOffice Calc)

Information Intermediate OpenOffice Calc

Learn the ISTEXT function in Apache OpenOffice Calc: Returns TRUE if value is text.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Availability and version history

  • Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
  • Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

ISTEXT returns TRUE when an input is represented as text. It tests type rather than content quality: a word, numeric-looking text and a literal empty string are all text. A number formatted with a particular appearance does not become text merely because of that display format.

Syntax and arguments

=ISTEXT(value)

One argument is required. The pinned interpreter checks raw string values and string-valued cells rather than converting a number to its printed form. Numeric values and logical constants return FALSE. A genuinely empty cell is also not text. Direct literal "" is a string, even though it contains no visible characters. Examples use English function names and semicolon argument separators.

Reproducible examples

Formula Expected result
=ISTEXT("hello") TRUE
=ISTEXT("42") TRUE
=ISTEXT(42) FALSE
=ISTEXT("") TRUE
=ISTEXT(" ") TRUE
=ISTEXT(TRUE()) FALSE
=ISTEXT(FALSE()) FALSE

The first formula preserves the original example and result. Its historical comparable LibreOffice 25.2 check was not an OpenOffice test. New results are independent reference expectations checked against the pinned source, not fresh native worksheet captures.

Practical worksheet: inspect identifier storage

Put Identifier in A1. Enter ="0042" in A2, numeric 42 in A3, ="AB-07" in A4 and leave A5 genuinely empty. In B2 enter =ISTEXT(A2) and fill through B5. Results are TRUE, FALSE, TRUE and FALSE. The text identifier preserves its leading zeros; the numeric value has no stored leading-zero characters.

In C2 use =IF(B2;LEN(A2);"Check type") and fill down. Results are 4, Check type, 5 and Check type. A passing text test does not guarantee the expected identifier pattern, length or uniqueness. Keep those checks separate and do not convert identifiers to numbers merely to make them look uniform.

Advanced applications

Distinguish text from visible content. ISTEXT("") is TRUE and LEN("") is 0. ISTEXT(" “) is also TRUE, but LEN(” “) is 1. A blank-looking display therefore cannot replace a type or content-length check. The genuinely empty-cell case is different from these direct string literals.

Compare number and text classifications. For ordinary 42, ISTEXT returns FALSE and ISNUMBER TRUE. For “42”, they return TRUE and FALSE. For a genuinely empty cell, both are FALSE. Consequently NOT(ISTEXT(A2)) is not a general substitute for ISNUMBER(A2). It includes additional nontext states.

Preserve the distinction after a text operation. With AB in A2 and 07 stored as text in B2, =CONCATENATE(A2;"-";B2) returns AB-07. ISTEXT of that result is TRUE. The joined label is text even if every component happened to contain digits; concatenation does not perform numeric addition.

Errors, edge cases and troubleshooting

An error is not a text value merely because its displayed message contains letters. The inspected type helper clears its evaluation error after classification and returns FALSE for an ordinary error input. Keep the original cell visible if the cause matters; a false classification is not a diagnosis.

Text may contain unwanted spaces, inconsistent case, punctuation or duplicate identifiers. ISTEXT does not validate any of those properties. A value can pass ISTEXT and still be unsuitable for the intended field. Conversely, a numeric value with a custom leading-zero display is still numeric and fails ISTEXT, even though it resembles a text identifier.

The examples certify scalar source contracts and straightforward stored types, not every matrix, imported format or formula-empty state. In particular, do not equate a truly unused cell with a formula that returns an empty-looking result. Keep a separate explicit policy for missing and empty-string values. No fresh native application, import or GUI test is claimed.

Documentation and verification

See the Apache OpenOffice ISTEXT reference, 4.1.16 function resources and versioned interpreter. The official source snapshots were retrieved October 13, 2026 and re-read for this guide; their dates have not been relabeled as fresh retrievals. Boolean truth tables, scalar type models and worksheet calculations are independently checked. No new native/headless application or GUI execution is claimed. Original introduction and final functioning version remain unestablished, separate from documented 4.1.16 support.