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)| Argument | What it means | |
|---|---|---|
value | Required | The 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer ID | Name | Balance | |
| 2 | 00123 | Kestrel SA | 1520 | TRUE |
| 3 | 45678 | Borealis 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer ID | Name | Balance | |
| 2 | 00123 | Kestrel SA | 1520 | |
| 3 | 45678 | Borealis 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.
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.
| Language | Function name |
|---|---|
| Czech | JE.TEXT |
| Danish | ER.TEKST |
| Dutch | ISTEKST |
| Finnish | ONTEKSTI |
| French | ESTTEXTE |
| German | ISTTEXT |
| Hungarian | SZÖVEG.E |
| Italian | VAL.TESTO |
| Norwegian (Bokmål) | ERTEKST |
| Polish | CZY.TEKST |
| Portuguese (Brazil) | ÉTEXTO |
| Portuguese (Portugal) | É.TEXTO |
| Russian | ЕТЕКСТ |
| Spanish | ESTEXTO |
| Swedish | ÄRTEXT |
| Turkish | EMETİNSE |