ISTEXT Function

Checks whether a value is text.

Category

Information

Available in

All versions, Microsoft 365

Returns

TRUE or FALSE

Taught hands-on in Level 3: Intermediate Lookups & Data Summaries - Smarter Logic module

Overview

ISTEXT returns TRUE when a value is text — including numbers that were stored as text and formulas that return text.

It's useful for validating inputs and catching amounts or dates that won't add up because they're really text.

Syntax

=ISTEXT(value) Explain

Arguments

ArgumentRequired?What it does
valueYesThe value, cell or formula to check.

Examples

Example 1 — Check a column of IDs

Every employee ID should be text like E-104. A blank cell isn't text.

B2fx=ISTEXT(A2)
AB
1Employee IDText?
2E-104TRUE
32207FALSE
4FALSE
5E-311TRUE
=ISTEXT(A2) Explain

Example 2 — Warn when a quantity was typed as text

Use it with IF to show a message right next to the input.

=IF(ISTEXT(B2),"Re-enter as a number","") Explain

Common mistakes

  • A cell with only a space returns TRUE. A space is text. Clean the data with TRIM first.

Notes

Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.