Going Stellar

Home/Google Sheets reference

Google Sheets function · Info

ISTEXT in Google Sheets: syntax and examples

ISTEXT returns TRUE when the value is a text string and FALSE for numbers, dates, logical values and empty cells. It is often used inside IF to catch numbers that arrived as text.

Syntax

ISTEXT(value)

Arguments

ArgumentTypeRequiredWhat it does
valueanyyesThe value to test: a cell, a number, a string or a formula.

Examples

The examples use this table, starting in A1:

ItemQty
Desk lamp12
Cable tray40
NoneNone
=ISTEXT(A2)

Result: TRUE

A cell with words is text.

Run in a Google Sheet (English US locale) on .

=ISTEXT(B2)

Result: FALSE

A cell with a number is not text.

Run in a Google Sheet (English US locale) on .

=ISTEXT("549")

Result: TRUE

Digits inside quotes are a string, so this is TRUE.

Run in a Google Sheet (English US locale) on .

=ISTEXT(A5)

Result: FALSE

A truly empty cell is not text.

Run in a Google Sheet (English US locale) on .

=ARRAYFORMULA(ISTEXT(A2:B3))

Result:

TRUEFALSE
TRUEFALSE

Test a block at once: TRUE for the names, FALSE for the quantities.

Run in a Google Sheet (English US locale) on .

Common errors

  • An empty string "" is text, so ISTEXT("") is TRUE, while a truly empty cell gives FALSE.
  • Dates and times are numbers, so ISTEXT(DATE(2026,11,29)) is FALSE. Logical values such as TRUE are not text either.
  • Digits in quotes are text: ISTEXT("549") is TRUE.

Compared with Excel

Same syntax in Excel.

Used in recipes

Sources

  1. ISTEXT (Docs Editors Help)

Markdown version · All functions