ISNONTEXT Function¶
The ISNONTEXT function in Excel is used to check whether a value is anything other than text. It returns TRUE for numbers, logical values, dates, errors, and blank cells, and FALSE only when the value is a text string. It is the exact negation of ISTEXT, and is most useful when the positive case you care about is "this is not text" — for example when validating that a field really holds a number before using it in a calculation.
Key Features of ISNONTEXT:¶
- Returns
FALSEonly when the value genuinely is a text string. - Returns
TRUEfor numbers, logical values, dates, times, and error values. - Returns
TRUEfor a blank cell, since an empty cell contains no text. - Returns
FALSEfor an empty string"", which is text of zero length — the one case where blank and empty-string differ. - Applied to a range, it evaluates each cell individually and returns an array of results.
Syntax:¶
- value: The value or expression you want to test. Typically a cell reference or formula result.
How ISNONTEXT Works:¶
ISNONTEXTevaluates the provided value or expression.- If the result is a text string — including a zero-length one — it returns
FALSE. - For every other data type — number, logical, date, time, error, or blank — it returns
TRUE.
ISNONTEXT(x) is always the opposite of ISTEXT(x); there is no value for which both return the same answer.
Examples:¶
1. A Number:¶
If A1 contains 42:
Result:
2. A Text Value:¶
If A1 contains "Hello":
Result:
3. A Number Stored as Text:¶
If A1 contains the text "42" rather than the number:
Result:
4. A Blank Cell:¶
If A1 is empty:
Result:
5. An Empty String:¶
Result:
6. A Logical Value:¶
Result:
7. Validating a Numeric Entry:¶
Result:
8. Counting Non-Text Cells in a Range:¶
Result:
Notes:¶
ISNONTEXTis broader than "is a number". It returnsTRUEfor errors and blanks too, so it is not a substitute forISNUMBERwhen you need a value you can actually calculate with.- The blank versus empty-string distinction is the one to watch: a blank cell gives
TRUE, but a formula returning""givesFALSE. - If the argument evaluates to an error,
ISNONTEXTreturnsTRUErather than propagating the error — an error is not text. TYPEreturns2for exactly the values thatISNONTEXTreturnsFALSEfor, soISNONTEXT(A1)andTYPE(A1)<>2are equivalent.ISNONTEXTis part of the IS family of information functions (ISBLANK,ISERR,ISERROR,ISEVEN,ISLOGICAL,ISNA,ISNONTEXT,ISNUMBER,ISODD,ISTEXT, etc.).
Applications:¶
- Input Validation: Reject text entries in a field that must hold a number or a date.
- Data Cleaning: Count how many cells in a column are already free of text contamination.
- Type Auditing: Pair with
ISTEXTto partition a mixed column into two complete halves. - Defensive Formulas: Guard arithmetic against text arguments that would otherwise raise an error.
- Conditional Formatting: Highlight rows where a supposedly numeric key arrived as text.
Related Functions:¶
- ISTEXT: Returns TRUE if the value is text — the exact negation.
- ISNUMBER: Returns TRUE only for numbers; narrower than
ISNONTEXT, which also accepts errors and blanks. - ISBLANK: Returns TRUE if the cell is empty.
- ISERROR: Returns TRUE if the value is any error.
- TYPE: Returns a numeric code indicating the data type of a value —
2for text. - N: Converts a value to a number — text becomes
0.
Tip:
ISNONTEXTis not the same as "is a number", because it also returnsTRUEfor errors and blank cells. If your formula is about to do arithmetic on the value, reach forISNUMBERinstead — it excludes the two cases that would still break the calculation.