Excel function

ISNONTEXTfunction

Checks whether a value is not text.

All versions
=ISNONTEXT(A2)
A
B
C
1
2
3
4
5
6
7
8
9
10

Click a cell in the table to change value. A blank cell is not text either, so TRUE. It is the exact opposite of ISTEXT. Try breaking it on purpose to see the errors.

Result

FALSE

value
A2You can also click a cell in the table

The cell to test. Click another value in column A.

What is the ISNONTEXT function?

=ISNONTEXT(value)

ISNONTEXT returns TRUE if a value is not text. It is most often used inside IF to treat values differently by kind.

Column A of the sheet mixes text, numbers, a blank, a logical value, errors and text that looks like a number; column B says what each is. Column C shows the same formula copied down.

ISNONTEXT checks that an entry field holds nothing but text. Because blanks are TRUE, it catches in one test the rows where a name field was left empty or got a number by mistake.

Arguments

value
The value or cell to test.

ISNONTEXT examples

  1. Example 1. A number

    =ISNONTEXT(A3)

    A number, so TRUE.

  2. Example 2. A blank cell

    =ISNONTEXT(A4)

    A blank is not text either, so TRUE.

  3. Example 3. Result for each kind of value

    =ISNONTEXT(A2)

    Always the opposite of ISTEXT.

    Value in column A=ISNONTEXT(A2)
    AppleFALSE
    120TRUE
    (blank)TRUE
    TRUETRUE
    #N/ATRUE
    #DIV/0!TRUE
    "120" (text)FALSE
  4. Example 4. Missing names

    =IF(ISNONTEXT(B2), "Check", "")

    Shows "Check" when the name in B2 is blank, a number or an error.

Common mistakes

FAQ

How does it relate to ISTEXT?
It always gives the opposite result.
When is it useful?
To flag every entry that was not typed as text, blanks included.
Can data validation allow only text?
Yes. A Custom rule of =ISTEXT(B2) blocks anything that is not text.