0
0
ExcelHow-ToBeginner ยท 3 min read

How to Use ISTEXT in Excel: Check if a Cell Contains Text

Use the ISTEXT function in Excel to check if a cell contains text. It returns TRUE if the cell has text and FALSE if it contains numbers, dates, or is empty.
๐Ÿ“

Syntax

The ISTEXT function has a simple syntax with one argument:

  • value: The cell or value you want to check if it is text.

It returns TRUE if the value is text, otherwise FALSE.

excel
ISTEXT(value)
๐Ÿ’ป

Example

This example shows how ISTEXT works with different cell values:

excel
A1: Hello
A2: 123
A3: =ISTEXT(A1)
A4: =ISTEXT(A2)
Output
A3: TRUE A4: FALSE
โš ๏ธ

Common Pitfalls

People often expect ISTEXT to return TRUE for numbers stored as text or formulas that return numbers, but it only returns TRUE for actual text values.

Also, empty cells or errors return FALSE.

excel
Wrong: =ISTEXT(123)  // returns FALSE because 123 is a number
Right: =ISTEXT("123")  // returns TRUE because "123" is text
๐Ÿ“Š

Quick Reference

Input TypeISTEXT Result
Text (e.g., "Hello")TRUE
Number (e.g., 123)FALSE
Date (e.g., 1/1/2024)FALSE
Empty CellFALSE
Formula returning textTRUE
Formula returning numberFALSE
โœ…

Key Takeaways

ISTEXT returns TRUE only if the cell contains text, not numbers or dates.
Use ISTEXT to check cell content type before applying text-specific formulas.
ISTEXT returns FALSE for empty cells and errors.
Numbers stored as text (with quotes) return TRUE, but plain numbers do not.
Combine ISTEXT with IF to create conditional logic based on text presence.