Features of !SEMTools
↑ Navigate Excel tasks and !SEMTools add-in features ↑

Detect text characters

, creator of !SEMToolsUpdated 3 min readTopics: Text and characters

When working with imported content or data from external sources, you often need to filter out junk rows that don’t contain text and keep only those that do.

Check if you need to match a text value, a letter or an alphanumeric character. Choose the corresponding test first, because these conditions can give different results for the same cell.

The simplest way to perform such a filter is to display a Boolean value (TRUE or FALSE) next to each cell — does it contain real text or not?

Find Text Using a Formula

ISTEXT checks whether the stored value is text, not how the cell is formatted. A space, a punctuation mark or digits stored as text can all return TRUE. Use a letter test only if that narrower condition is what you need.

So, before asking how to detect text, define what you consider to be “text.”

Some users consider only alphabetic characters (letters) to be real text.

If that sounds like you, the following formula will help. It uses the NOT and EXACT functions, with help from LOWER and UPPER, to check for the presence of letters:

=NOT(EXACT(LOWER(A1), UPPER(A1)))
ISTEXT vs “has letters”
C2=NOT(EXACT(LOWER(A2),UPPER(A2)))
ABC
1ValueISTEXTHas letters?
2HelloTRUE=ISTEXT(A2)TRUE=NOT(EXACT(LOWER(A2),UPPER(A2)))
312345 (text)TRUE=ISTEXT(A3)FALSE=NOT(EXACT(LOWER(A3),UPPER(A3)))
4---TRUE=ISTEXT(A4)FALSE=NOT(EXACT(LOWER(A4),UPPER(A4)))
5Café 24/7TRUE=ISTEXT(A5)TRUE=NOT(EXACT(LOWER(A5),UPPER(A5)))
62026-10-22TRUE=ISTEXT(A6)FALSE=NOT(EXACT(LOWER(A6),UPPER(A6)))
7№ 5TRUE=ISTEXT(A7)FALSE=NOT(EXACT(LOWER(A7),UPPER(A7)))

All six values are stored as text, so ISTEXT is TRUE for each. The letter check is TRUE only where the text changes between LOWER and UPPER — cased letters that Excel recognizes.

The test checks whether LOWER and UPPER produce different text. It detects letters with case forms supported by Excel. It does not identify every possible letter: scripts without uppercase and lowercase forms can return FALSE even when the cell contains letters.

The example below illustrates the letter check just described. It is a specific test for letters, not a replacement for checking the data type with ISTEXT.

Find letters and digits in a cell

Other users may consider digits (0–9) to be part of text content as well. Such a set of symbols (letters plus digits) is usually referred to as Alphanumeric letters. Read the article on how to find alphanumeric characters.

In !SEMTools, these checks are in FIND → Characters → By type → Return TRUE (faster): Alphanumeric, Latin and Numbers. Select the cells, click the check you need, and every cell turns into TRUE or FALSE.

Compare the three checks on the same data. Latin checks for Latin letters, Numbers for digits, and Alphanumeric for letters or digits; they answer different questions.

Check whether Excel cells contain Latin letters, numbers or alphanumeric characters
Three fast TRUE/FALSE checks. Greek «Αθήνα» passes only as alphanumeric, while «***» and «—» fail all three.

Find Specific Text Characters

If you want to detect specific types of characters — for example, only Latin, or only digits — use one of the following dedicated tools:

To see which Latin letters match inside each cell, choose Highlight by color → Latin. The animation shows this visual mode, which differs from returning TRUE or FALSE.

Highlight Latin characters in Excel cells with color
Latin letters are highlighted inside the text; compare them with the other characters.

For more advanced needs, try the "Find cells by regular expression" tool in the same section.


See also:

Need to find text-containing cells in Excel?
!SEMTools helps you do it in just a few clicks!

Leave a Reply

Your email address will not be published. Required fields are marked *

*