Excel ISTEXT and ISNONTEXT functions with formula examples
Apr 01, 2025 am 10:03 AMThis tutorial explores Excel's ISTEXT
and ISNONTEXT
functions, powerful tools for determining cell content. These information functions efficiently identify textual or non-textual values, proving invaluable for various Excel tasks.
-
ISTEXT
Function in Excel -
ISNONTEXT
Function in Excel - Formula Examples:
- Identifying Textual Values
- Text-Only Data Validation
- Combining
IF
andISTEXT
- Checking Ranges for Text
- Detecting Specific Text within Cells
- Conditional Formatting for Text Highlighting
Excel's ISTEXT
Function
ISTEXT
verifies if a cell's value is text. A textual value yields TRUE
; otherwise, it returns FALSE
(for numbers, dates, blanks, errors, etc.).
Syntax: ISTEXT(value)
Example: =ISTEXT(A2)
checks cell A2's content.
Excel's ISNONTEXT
Function
ISNONTEXT
returns TRUE
for non-text values (numbers, dates, blanks, errors). It returns FALSE
for text.
Syntax: ISNONTEXT(value)
Example: =ISNONTEXT(A2)
tests if A2 contains non-text. The results are opposite to ISTEXT
.
Usage Notes:
- Both functions return Boolean (
TRUE
/FALSE
) values. -
ISTEXT
returnsTRUE
for text-formatted numbers. - Compatible with Excel versions from 2000 onwards.
Practical Applications:
1. Identifying Textual Values: Quickly determine if numbers are stored as text, a common source of formula errors. Use =ISTEXT(B2)
or =ISNONTEXT(B2)
.
2. Data Validation (Text Only): Restrict user input to text only.
- Select cells.
- Go to Data > Data Validation.
- Choose Custom and enter
=ISTEXT(B2:B4)
(adjust range as needed). - Configure error alerts.
3. Combining IF
and ISTEXT
: Create more user-friendly output than simple TRUE
/FALSE
.
Example: =IF(ISTEXT(A2), "Yes", "No")
Another example providing feedback on questionnaire answers: =IF(B2="", "", IF(ISTEXT(B2), "Valid answer", "Invalid answer - please enter text."))
4. Checking Ranges for Text: Use SUMPRODUCT
to efficiently check if any cell in a range contains text.
Example: =SUMPRODUCT(--ISTEXT(A2:C2))>0
(or =SUMPRODUCT(ISTEXT(A2:C2)*1)>0
)
5. Detecting Specific Text: Use SEARCH
or COUNTIF
with wildcards.
Example using SEARCH
: =IF(ISNUMBER(SEARCH($D$2, A2)), "Yes", "No")
Example using COUNTIF
: =IF(COUNTIF(A2, "*"&$D$2&"*")>0, "Yes", "No")
6. Conditional Formatting: Highlight cells containing text.
- Select cells.
- Home > Conditional Formatting > New Rule > Use a formula.
- Enter
=ISTEXT(A2)
(A2 being the top-left cell). - Choose formatting.
Mastering ISTEXT
and ISNONTEXT
significantly enhances Excel efficiency.
The above is the detailed content of Excel ISTEXT and ISNONTEXT functions with formula examples. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)
