Information function

ISTEXT function

Returns TRUE if a value is text, including numbers stored as text, and FALSE for numbers, dates, blanks, logical values and errors.

Available in All versions of Excel, including Microsoft 365 and Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

ISTEXT(value)
ArgumentWhat it means
valueRequiredThe value or cell to test.

Returns: TRUE if value is text; otherwise FALSE.

How ISTEXT works

ISTEXT checks whether a cell holds text. Names, codes and labels are text, but so are numbers that were stored as text — for instance ID codes with leading zeros (00123), which must stay text to keep their zeros, or amounts imported from another system that will not add up. Empty cells are not text, so ISTEXT returns FALSE for them.

Use it to validate input (a Name column should be text), to find stray words in numeric columns (-, n/a, tbc) and to check that codes have kept their leading zeros. Its opposite is ISNONTEXT, and for numbers specifically there is ISNUMBER.

Examples

1IDs with leading zeros are text

D2fx=ISTEXT(A2)
ABCD
1Customer IDNameBalance
200123Kestrel SA1520TRUE
345678Borealis Ltd-

Result: TRUE

00123 was entered as text so that its zeros survive. ID 45678 in A3, typed as a number, would return FALSE — the column is inconsistent, which will break lookups.

2A dash in a balance column

D3fx=ISTEXT(C3)
ABCD
1Customer IDNameBalance
200123Kestrel SA1520
345678Borealis Ltd-TRUE

Result: TRUE

The balance for Borealis Ltd is a typed dash, which is text. SUM will ignore it, and arithmetic like C3*2 returns #VALUE!. Replace it with 0 or leave the cell empty.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Tips

  • Count text entries in a numeric column with =SUMPRODUCT(--ISTEXT(C2:C100)) — anything above 0 needs cleaning.
  • A formula that returns "" produces text, so ISTEXT returns TRUE for it even though the cell looks empty.

Google Sheets

ISTEXT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

ISTEXT in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechJE.TEXT
DanishER.TEKST
DutchISTEKST
FinnishONTEKSTI
FrenchESTTEXTE
GermanISTTEXT
HungarianSZÖVEG.E
ItalianVAL.TESTO
Norwegian (Bokmål)ERTEKST
PolishCZY.TEKST
Portuguese (Brazil)ÉTEXTO
Portuguese (Portugal)É.TEXTO
RussianЕТЕКСТ
SpanishESTEXTO
SwedishÄRTEXT
TurkishEMETİNSE

Recipes that use ISTEXT