SheetsLessons
Logical function

ISTEXT function in Google Sheets

ISTEXT returns TRUE if a value is text. Use it to validate input columns or to catch numbers that were accidentally typed as text.

Syntax

=ISTEXT(value)
value
The value or cell to check.

Practice ISTEXT

Task 1 of 1

Return TRUE in B2 if the value in A2 is text.

B2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

ISTEXT examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCD
1StudentClassScorePassed
2PriyaA92TRUE
3LeoB67FALSE
4ChloeA48FALSE
5MateoB81TRUE
6InesCFALSE
7KaiC75TRUE
Test scores (Ines missed the test)
FormulaResultWhat it shows
=ISTEXT(A2)TRUEA name is text.
=ISTEXT(C2)FALSEA score is a number.
=ISTEXT(C6)FALSEAn empty cell is not text.

Tips and common mistakes

  • Combine with data validation (Data › Data validation › Custom formula) to stop the wrong kind of input being entered.

Related functions