Excel tutorial
/

Functions

Intermediate

ISBLANK, ISNUMBER, ISTEXT and ISERROR in Excel: data-checking functions

Use ISBLANK, ISNUMBER, ISTEXT and ISERROR to catch empty cells, numbers stored as text and errors — check columns, data cleaning and traps with examples.

The IS functions answer one question about a cell: is it empty? a number? text? an error? The answer is always TRUE or FALSE. The ones you will use most are ISBLANK, ISNUMBER, ISTEXT and ISERROR.

They don’t calculate anything themselves, but they protect your calculations. Before you use a payment export from accounting software, a survey or a CSV file, you add one check column — and instantly see empty cells, numbers stored as text and errors.

On its own an IS function just returns TRUE/FALSE. Its real power shows up with IF: “if it’s empty, warn me; if it’s a number, calculate”.

Книга1 - Excel
—☐✕
C4fx=ЕСЛИ(ЕПУСТО(B4);"Missing";ЕСЛИ(ЕЧИСЛО(B4);"OK";"Text — fix it"))
ABCD
1ClientPaymentCheck
2Aziz450 000OK
3DilnozaMissing
4Javohir3000001Text — fix it
5Madina520 000OK
6Sardornot paidText — fix it
7
Готово
One check column: an empty cell, a real number and a “number stored as text” (B4) are told apart instantly

Syntax

Every IS function takes one argument and returns TRUE or FALSE:

  • =ЕПУСТО(value) — TRUE if the cell is completely empty.
  • =ЕЧИСЛО(value) — TRUE for a number (dates and times are numbers too!).
  • =ЕТЕКСТ(value) — TRUE for text (including numbers stored as text).
  • =ЕОШИБКА(value) — TRUE for any error: #N/A, #VALUE!, #DIV/0!, #REF!, #NAME? and the rest.

value is a cell reference (B2), an expression (B2/C2) or another function’s result (SEARCH("a",A2)).

Other family members: ISNA — only #N/A, ISERR — every error except #N/A, ISLOGICAL — TRUE/FALSE values, ISNONTEXT — anything that is not text, ISFORMULA — whether the cell holds a formula, ISEVEN/ISODD — even/odd numbers.

Adding a check column

1

Select the first empty cell next to your data (for example, C2) and give the column a header: “Number?”.

2

Go to Формулы → Вставить функцию. In Or select a category choose Information — all IS functions live there. Pick ISNUMBER and click OK.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
C2fx
ABCD
1ClientPaymentNumber?
2Aziz450 000
3Dilnoza
4Javohir300000
5
Готово

3

Enter B2 in the Value box and click OK. The faster way: type =ЕЧИСЛО(B2) straight into the cell and press Enter.

4

Select C2 and double-click the fill handle (bottom-right corner) — the formula fills down to the end of the data. Rows showing FALSE need fixing.

Книга1 - Excel
—☐✕
C4fx=ЕЧИСЛО(B4)
ABCD
1ClientPaymentNumber?
2Aziz450 000ИСТИНА
3DilnozaЛОЖЬ
4Javohir300000ЛОЖЬ
5Madina520 000ИСТИНА
6
ГотовоКоличество: 4
Both an empty cell and text give FALSE in ISNUMBER — ISBLANK tells them apart
Книга1 - Excel
—☐✕
B2fx=ЕЧИСЛО(ПОИСК("tashkent";A2))
ABCD
1AddressTashkent?
2Tashkent city, ChilanzarИСТИНА
3Samarkand, Registan St.ЛОЖЬ
4TASHKENT REGION, ChirchiqИСТИНА
5Bukhara city, MustaqillikЛОЖЬ
6
Готово
Example 1: a “does the text contain…?” check. SEARCH returns a position (a number) or #VALUE!, and ISNUMBER turns that into TRUE/FALSE
Книга1 - Excel
—☐✕
D3fx=ЕСЛИ(ЕОШИБКА(C3/B3);"No plan";C3/B3)
ABCDE
1BranchPlanActualAchieved
2Tashkent50 000 00056 000 000112%
3Samarkand012 000 000No plan
4Bukhara30 000 00027 000 00090%
5
Готово
Example 2: the branch with a plan of 0 shows readable text instead of #DIV/0!
Книга1 - Excel
—☐✕
C7fx=СЧЁТЕСЛИ(C2:C6;ИСТИНА)
ABCD
1ProductPriceText?
2Bread4 000ЛОЖЬ
3Milk12000ИСТИНА
4Rice18 500ЛОЖЬ
5Tea35 000ИСТИНА
6Sugar14 000ЛОЖЬ
7To fix:2
8
Готово
Example 3: an ISTEXT column plus COUNTIF shows in one number how many prices in an imported price list turned into text
Книга1 - Excel
—☐✕
fx
ABCDEF
1What’s in the cellValueISBLANKB=""LEN(TRIM)=0
2NothingИСТИНАИСТИНАИСТИНА
3A space ЛОЖЬЛОЖЬИСТИНА
4Formula =""ЛОЖЬИСТИНАИСТИНА
5Zero0ЛОЖЬЛОЖЬЛОЖЬ
6
Готово
Four cells that all look “empty”. The reliable check is the last column: =LEN(TRIM(B2))=0

Pro level: IS functions as data guards

IS functions are useful far beyond a helper column:

  • Is it in the list? =ЕЧИСЛО(ПОИСКПОЗ(A2;$E$2:$E$20;0)) tells you with TRUE/FALSE whether a client is on a blacklist or a promo list. On large tables it is faster than COUNTIF.
  • Block bad input. Данные → Проверка данных → Allow: Custom, Formula: =ЕЧИСЛО(B2). Now nobody can type text into column B — the error is stopped at the source.
  • Highlight it. Условное форматирование → New Rule → “Use a formula…”: =ЕТЕКСТ($B2) turns prices stored as text red.
  • IFERROR or IF(ISERROR())? The result is the same, but =ЕСЛИОШИБКА(C2/B2;"No plan") is shorter and doesn’t evaluate the expression twice. Keep IF+ISERROR for cases where the non-error branch must do something completely different.
Книга1 - Excel
—☐✕
B3fx=ЕЧИСЛО(ПОИСКПОЗ(A3;$D$2:$D$3;0))
ABCDE
1ClientBlacklisted?Blacklist
2AzizЛОЖЬSardor
3SardorИСТИНАJavohir
4DilnozaЛОЖЬ
5JavohirИСТИНА
6
Готово
MATCH returns a position or #N/A. ISNUMBER turns both cases into a clean TRUE/FALSE

Try it in the simulator

Check the stock levels. Type =ЕЧИСЛО(B2) in C2 and fill down to C6, then =ЕПУСТО(B2) in D2 and fill down to D6. Find which products need their stock fixed.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1ProductStockNumber?Empty?
2Flour120
3Sugar
4Rice85
5Oil40
6Teanone
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

133 / 154