Contact

ISTEXT in Excel: Find Text Values and Numeric Text

Information Intermediate Microsoft Excel

Audit Excel text values, numeric-looking codes and empty strings with ISTEXT, then build explicit nonempty-text and quantity checks.

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

Quick answer: =ISTEXT(A2) returns TRUE when A2 supplies a text value. A numeric-looking string such as ="007" is text; the number 7 merely formatted to display three digits is still numeric.

Availability and version history

  • Introduced: first introduction version is not established by the official history reviewed; the current product list is not a launch record.
  • Availability: official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016, Excel Web App.
  • Checked: October 14, 2026; official ISTEXT reference. Documentation and independently modeled examples; no native Excel execution or broader platform certification.

Syntax and the question it answers

=ISTEXT(value)

The one required argument can be a value, reference or expression. ISTEXT tests the resulting type without converting quoted digits into a number. It does not prove that text is a valid code, readable name or useful description.

A leading apostrophe used while entering a cell tells Excel to store the following characters as text; the apostrophe is an entry marker, not part of the code in the examples below. Using ="007" instead makes this test dataset unambiguous.

Example 1: an import inspection column

Set up these cells exactly. Do not type the explanatory labels into the value cells.

Cell Entry Expected ISTEXT result
A2 ="007" TRUE
A3 number 7 FALSE
A4 ="East" TRUE
A5 ="" TRUE
A6 leave genuinely empty FALSE
A7 =TRUE() FALSE
A8 =NA() FALSE
A9 =" " with one space TRUE

In B2 enter =ISTEXT(A2) and fill through B9. Four rows contain text: A2, A4, A5 and A9. The blank-looking A5 is an empty text result, whereas A6 has no entered value. An actual error in A8 is not a text value, even though Excel displays characters for its error label.

Use =IF(ISTEXT(A2),"Text","Other type") as a readable row label. FALSE does not mean the input is safe to add: this dataset includes a blank, a Boolean and an error among the nontext results.

Example 2: require text with at least one character

A description field may reject empty text while accepting words. In C2 use:

=IF(ISTEXT(A2),LEN(A2)>0,FALSE)

Fill down. The accepted rows are A2, A4 and A9. A5 fails because its text length is zero. The one-space A9 still passes because a space is a character.

For a rule that also rejects ordinary space-only strings, use:

=IF(ISTEXT(A2),LEN(TRIM(A2))>0,FALSE)

Now only A2 and A4 pass. This control addresses ordinary spaces covered by TRIM; it is not a universal Unicode-whitespace cleaner. Nested IF makes the type requirement explicit before the text-length check.

Example 3: preserve codes, parse quantities separately

Put ="0007" in D2 and the number 7 in D3. Both might identify the same real-world item under a particular business rule, but the stored types and characters differ. =ISTEXT(D2) is TRUE and =LEN(D2) is 4. =ISTEXT(D3) is FALSE.

If D2 were a quantity string rather than an identifier, =VALUE(D2) would produce numeric 7 for this simple ASCII control, and =ISTEXT(VALUE(D2)) would be FALSE. That conversion loses the leading zeros. Decide what the field means before converting it; a type test cannot recover discarded identifier characters.

For a numeric quantity requirement, use ISNUMBER instead of NOT(ISTEXT(...)). Add the required sign, range and integer rules separately.

  • A formula can return text. ISTEXT classifies its result, not whether a formula exists.
  • Empty text and an actually empty cell are different controls; inspect them with ISBLANK when that distinction matters.
  • A display format does not, by itself, turn a number into text.
  • For ordinary stored values, ISNONTEXT asks the opposite type question. Neither function validates the content of a code.
  • Dynamic arrays, rich data types and imported external-link edge cases are outside these scalar controls.

References and verification

The datasets are fictional. Expected results follow the cited rules and independent arithmetic or type models; they are not native application captures. Examples use English function names and comma argument separators.