ISNONTEXT Function in Excel

Sumit Bansal
Written by

Sumit Bansal is the founder of TrumpExcel.com and a 13-time Microsoft Excel MVP. He started this site in 2013 to share his passion for Excel through easy tutorials, tips, and training videos, helping you master Excel, boost productivity, and maybe even enjoy spreadsheets!

ISNONTEXT checks whether a value is anything other than text. It returns TRUE for numbers, dates, logical values, errors, and empty cells, and FALSE for text.

That last detail can be easy to miss: an empty cell counts as non-text, but a formula that returns an empty string doesn’t. Two cells can look blank and give different results.

In this tutorial, I’ll show you how to check a range, understand those blank-looking cells, flag entries for review, and count non-text values.

Follow along with the example file

ISNONTEXT Function Examples.xlsx

Download

ISNONTEXT Function Syntax

Here is the syntax of the ISNONTEXT function:

=ISNONTEXT(value)
  • value – The value you want to test. This required argument can be a cell reference, a value entered directly, or a formula whose result you want to check.

You can also supply a range in Excel versions that support dynamic arrays. This checks each cell and returns a separate result for it.

ISNONTEXT works in Excel 365, 2024, 2021, 2019, 2016, Mac, and the web. The spilling examples below need Excel 365, 2024, 2021, or the web.

When to Use the ISNONTEXT Function

Use this function when you need to:

  • Separate text entries from other types of values in a mixed column.
  • Check why two cells that look empty give different results.
  • Flag non-text entries in a column meant to hold text.
  • Count all non-text cells in a range, including empty cells.

Let’s start with a simple TRUE or FALSE check.

Example 1: Check a Range for Non-Text Values

Below is a book-rating list with numbers and text entries, and I want column C to show which ratings are not text.

Book ratings with a blank non-text check column

Enter this formula in cell C2:

=ISNONTEXT(B2:B11)
ISNONTEXT distinguishes numeric ratings from text ratings

The formula checks each rating and spills ten results down column C. TRUE means the corresponding rating is not text, while FALSE means it is text.

The rating for The Hobbit is the number 5, so it returns TRUE. Black Beauty also shows 5, but that value is stored as text, so it returns FALSE.

ISNONTEXT tests the stored value without converting it. That’s why both the notes, such as “Not read”, and the numbers stored as text return FALSE.

Keep the cells below C2 empty before entering the formula so Excel has room for the results. An occupied cell in the output range can cause a #SPILL! error.

If you’re using Excel 2019 or earlier, enter the following formula in C2 and copy it down to C11:

=ISNONTEXT(B2)

Example 2: Test Blank Cells and Empty Strings

Now let’s look at the inputs that can make this test confusing.

Below is a list of different cell contents, and I want column C to show whether each value is non-text.

Labeled blank, text, logical, error and date inputs

Enter this formula in C2:

=ISNONTEXT(B2:B9)
ISNONTEXT results for blank cells, empty strings and other types

B2 is genuinely empty, so its result is TRUE. B3 contains a formula returning an empty string, so its result is FALSE even though the cell looks empty.

B4 contains one space, which is also text. A space isn’t the same as an empty cell, so this row returns FALSE too.

The two TRUE entries in column B also have different results. B6 contains the logical value TRUE and returns TRUE, while B8 contains the text “TRUE” and returns FALSE.

Zero, the #N/A error, and the date all return TRUE because none is text. Excel stores a real date as a number, and ISNONTEXT can test an error value without passing that error through to its result.

Important: TRUE from ISNONTEXT can mean a number, an empty cell, a logical value, or an error. Use the ISNUMBER function when you need to test specifically for numbers.

In Excel 2019 or earlier, enter this formula in C2 and copy it down to C9:

=ISNONTEXT(B2)

Example 3: Flag Non-Text Entries with IF

TRUE and FALSE work well for a quick check, but a label can make the result easier to act on.

Below is a trip list where the destination should be text, and I want column C to flag non-text entries for review.

Trip destinations with an empty text check column

Enter this formula in C2:

=IF(ISNONTEXT(B2:B11),"Review","Text")
IF labels non-text destinations for review

ISNONTEXT checks each destination first. The IF function returns “Review” when that check is TRUE and “Text” when it is FALSE.

Trips 2, 4, 6, and 9 are marked for review because their destination cells contain 204, an empty cell, TRUE, and 107. The remaining entries contain text.

The label “Text” only describes the value’s type. It doesn’t confirm that a city name is correct, and it would also accept a space or a number stored as text.

If you’re using Excel 2019 or earlier, enter this single-cell version in C2 and copy it down to C11:

=IF(ISNONTEXT(B2),"Review","Text")

Example 4: Count Non-Text Cells

You can also count the non-text entries without adding a result beside every row.

Below is a delivery-note list, and I want cell D2 to show how many note cells contain something other than text or are empty.

Delivery notes with an empty non-text count

Enter this formula in D2:

=SUMPRODUCT(--ISNONTEXT(B2:B11))
SUMPRODUCT and ISNONTEXT count five non-text note cells

The result is 5. That includes the two empty note cells, the numbers 0 and 25, and the logical value FALSE.

How this formula works:

  • ISNONTEXT(B2:B11) returns TRUE for each non-text cell and FALSE for each text cell.
  • The double minus (--) converts those TRUE and FALSE results into 1s and 0s.
  • The SUMPRODUCT function adds the 1s and 0s to give the total number of non-text cells.

The SUM function can also add this array in modern Excel. This example uses the SUMPRODUCT function so the same formula works in Excel 2019 and earlier with a normal Enter, without special array entry.

Important: Empty cells count toward this total. Use the actual data range rather than a whole-column reference, or the unused empty cells will inflate the result.

In this tutorial, I showed you how to use ISNONTEXT to check cell values, flag entries with IF, and count non-text cells. Remember that empty cells and errors count as non-text too.

I hope you found this article helpful.

List of All Excel Functions

Other Excel Articles You May Also Like:

Sumit Bansal

Sumit Bansal

13x Microsoft Excel MVP

Hey! I'm Sumit Bansal, founder of trumpexcel.com and a Microsoft Excel MVP. I started this site in 2013 because I genuinely love Microsoft Excel (yes, really!) and wanted to share that passion through easy Excel tutorials, tips, and Excel training videos. My goal is straightforward: help you master Excel skills so you can work smarter, boost productivity, and maybe even enjoy spreadsheets along the way!

Get the FREE 51 Excel Tips Ebook

Enter your details and the free PDF is on its way to your inbox.

Hmm, that didn't go through. Please check your email and try again.

No spam. You'll also get my weekly Excel newsletter. Unsubscribe anytime.

Check your inbox!

The ebook is on its way to your email. It usually lands within a couple of minutes.