How to Use the ISNONTEXT Function in Google Sheets

The ISNONTEXT function checks whether a value is anything other than text and returns TRUE or FALSE based on the result. It is the opposite of the ISTEXT function.

It returns TRUE for numbers, dates, times, timestamps, empty cells, and Boolean values. In contrast, the ISTEXT function returns FALSE for these cases and TRUE only for text values.

Below, you’ll learn how to use the ISNONTEXT function in Google Sheets. Additionally, you’ll see how it differs from the ISNUMBER function in a side-by-side comparison.

ISNONTEXT Function: Syntax and Formula Examples

Syntax:

ISNONTEXT(value)

Where value is the value to be checked.

Example:

Assume the value in cell A1 is "Prashanth". Since it is text, the formula will return FALSE.

=ISNONTEXT(A1)

The function will return TRUE if cell A1 is empty, contains a number, date, time, timestamp, TRUE, or FALSE.

Real-Life Example

Let’s see how to use the ISNONTEXT function in an IF logical test.

Example Dataset:

The dataset contains sales data, including the date, item description, delivery area/location, quantity, and unit rate in columns A to E. Column F is left blank, and in this column, you want to calculate the price for each item by multiplying the quantity by the unit rate.

Sample data for testing the ISNONTEXT function in Google Sheets

You can use the following formula in cell F2, which will automatically expand the result:

=ArrayFormula(IF(A2:A="", ,D2:D * E2:E))

However, if there are any text values in columns D or E, the formula will return #VALUE!.

To handle these errors, you can wrap the formula in the IFERROR function:

=ArrayFormula(IFERROR(IF(A2:A="", ,D2:D * E2:E)))

To keep the calculation going without errors, you can use the ISNONTEXT function. Here’s the updated formula:

=ArrayFormula(IF(A2:A="", ,IF(ISNONTEXT(D2:D), D2:D * E2:E, D2:D)))
Example of ISNONTEXT function in a real-life scenario in Google Sheets

This formula will perform the multiplication only when the values in column D are not text. If the value in column D is text, it will simply return the value from column D.

ISNONTEXT vs ISNUMBER: Output Comparison

Below is a comparison of the outputs returned by ISNONTEXT and ISNUMBER for different values:

ValueISNONTEXTISNUMBER
20TRUETRUE
03/12/2024TRUETRUE
10:10TRUETRUE
03/12/2024 10:40:20TRUETRUE
TRUETRUEFALSE
FALSETRUEFALSE
TRUEFALSE
AppleFALSEFALSE
  • The ISNUMBER function returns TRUE for numbers, dates, times, and timestamps, whereas the ISNONTEXT function returns TRUE for those values, plus it also returns TRUE for empty cells and Boolean values (TRUE or FALSE).

That’s the key difference between the two functions.

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

How to Extract Numbers from Text in Excel with Regex

You can use the REGEXEXTRACT or REGEXREPLACE functions to easily extract numbers from text...

Using OFFSET and MATCH Together in Google Sheets: Advanced Tips

One powerful and flexible way to look up values is by combining the OFFSET...

How to Use OFFSET and XMATCH Functions Together in Excel

We often use the OFFSET and XMATCH functions together to match a value in...

How to Calculate Maximum Drawdown in Excel and Google Sheets

You can use the following dynamic array formula to calculate maximum drawdown (MDD) in...

More like this

Using OFFSET and MATCH Together in Google Sheets: Advanced Tips

One powerful and flexible way to look up values is by combining the OFFSET...

Running Count with Structured References in Google Sheets

Running a count with structured references is achievable in Google Sheets tables using the...

Running Total with Structured Table References in Google Sheets

You can use two types of formulas to create a running total with structured...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.