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.

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Compare Two Tables for Differences in Excel

To compare two tables with similar data for differences, you can use the XLOOKUP...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

Summarize Data and Keep the Last Record in Google Sheets

In Google Sheets, we can summarize data (like sum, average, min, max, count) using...

More like this

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

Summarize Data and Keep the Last Record in Google Sheets

In Google Sheets, we can summarize data (like sum, average, min, max, count) using...

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.