ID EN
#Information

ISTEXT

Excel Functions

Test for a text value

Syntax

EXCEL
=ISTEXT(value)

Arguments

Parameter Description
value The value to check.

Return Value

A logical value (TRUE or FALSE)

Details

The ISTEXT function returns TRUE when a cell contains a text value, and FALSE if the cell contains any other value, or is empty. You can use the ISTEXT function to check if a cell contains a text value, or a numeric value entered as text. The ISTEXT function takes one argument, value, which can be a cell reference, a formula, or a hardcoded value. Typically, value is entered as a cell reference like A1. When value is text, the ISTEXT function will return TRUE. If value is any other value, ISTEXT will return FALSE. The ISTEXT function returns TRUE if value is text: If cell A1 contains the number 100, ISTEXT returns FALSE: If a cell contains a formula, ISTEXT checks the result of the formula:

Examples

Examples

The ISTEXT function returns TRUE if value is text:

EXCEL
=ISTEXT("apple") // returns TRUE
=ISTEXT(100) // returns FALSE
Examples

If cell A1 contains the number 100, ISTEXT returns FALSE:

EXCEL
=ISTEXT(A1) // returns FALSE
Examples

If a cell contains a formula, ISTEXT checks the result of the formula:

EXCEL
=ISTEXT(10 &" apples") // returns TRUE
=ISTEXT(2+2) // returns FALSE
=ISTEXT(A1&B1) // returns TRUE
Count text values

To count cells in a range that contain text, you can use the SUMPRODUCT function like this:

EXCEL
=SUMPRODUCT(--ISTEXT(range))

See Also

ISNONTEXT ISNUMBER ISBLANK ISERR ISERROR ISEVEN ISLOGICAL ISFORMULA