Menu

ISBLANK and ISNUMBER in Excel: The IS Functions Explained

=ISBLANK(B2) returns TRUE when B2 is empty, and =ISNUMBER(B2) returns TRUE when B2 holds a number. Learn ISBLANK, ISNUMBER, ISTEXT, ISERROR, ISNA, ISEVEN and ISODD, why a formula returning "" is not blank, and how ISNUMBER(SEARCH()) checks whether a cell contains text.

Every sheet on this page is live: change a number or a formula and it recalculates.

=ISBLANK(B2) returns TRUE when B2 is empty and FALSE otherwise. =ISNUMBER(B2) returns TRUE when B2 holds a number. These IS functions answer one yes-or-no question about a cell, and they are usually the test inside an IF: =IF(ISBLANK(B2),"Missing","OK").

What does the cell hold?
C2
ABCDEF
1WhatValueISBLANKISNUMBERISTEXTISERROR
2Number120FALSETRUEFALSEFALSE
3TextAppleFALSEFALSETRUEFALSE
4Empty cellTRUEFALSEFALSEFALSE
5Number as text42FALSEFALSETRUEFALSE
6Date2026-03-15FALSETRUEFALSEFALSE
7LogicalTRUEFALSEFALSEFALSEFALSE
8Error#DIV/0!FALSEFALSEFALSETRUE
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

Read each row across. A few results surprise people:

  • The date is a number. Excel stores dates as day counts, so ISNUMBER is TRUE for 2026-03-15.
  • '42 looks like a number but is text, so ISNUMBER is FALSE and ISTEXT is TRUE. Imported data often arrives like this.
  • TRUE is neither a number nor text, so all four columns are FALSE in row 7; ISLOGICAL is the test for it.

Type 42 (without the apostrophe) in B5 and the row switches to ISNUMBER.

ISBLANK vs ="": a formula returning "" is not blank

ISBLANK is TRUE only for a cell with nothing in it. A cell whose formula returns "" (such as =IF(C2="","",C2*D2)) looks empty, but it holds a formula, so ISBLANK says FALSE. Comparing with "" treats both as empty:

B2 is empty, B3 holds =""

=ISBLANK(B2)    TRUE
=ISBLANK(B3)    FALSE
=B2=""          TRUE
=B3=""          TRUE

The sheet below compares an empty cell, a "" formula, a space and a zero with the tests that do treat "" as empty:

Looks empty, is it empty?
C3
ABCD
1WhatValueEquals ""LEN
2Empty cellTRUE0
3Formula returning ""TRUE0
4A space FALSE1
5Zero0FALSE1
6Count blank2
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

B3="" is TRUE and LEN is 0 for the formula cell, and COUNTBLANK in B6 counts 2, the empty cell and the "". The space in row 4 is not empty by any of these tests (LEN 1); test =TRIM(B4)="" if a cell holding only spaces should count as blank. Zero is not blank either. So when a column is filled by formulas that return "", test it with ="" or <>"", not ISBLANK.

Check if a cell contains text: ISNUMBER(SEARCH())

Excel has no CONTAINS function. SEARCH returns the position where a piece of text starts, or #VALUE! when it is not found. ISNUMBER turns that into TRUE or FALSE:

Does the product name contain "laptop"?
C2
ABCD
1ProductContains laptopCase-sensitive
2Pro Laptop 14YesNo
3MouseNoNo
4Laptop standYesNo
5USB cableNoNo
6laptop bagYesYes
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

SEARCH ignores case, so "Laptop" and "laptop" both match in column C. FIND is case-sensitive, so column D matches only "laptop bag". Change A3 to Gaming laptop and both columns say Yes. The FIND and SEARCH page covers the two functions in detail; to count matching cells rather than flag them, use =COUNTIF(A2:A6,"*laptop*").

ISERROR, ISERR and ISNA

Three functions test for errors, and they differ in how they treat #N/A:

Which errors does each one catch?
C3
ABCDE
1WhatValueISERRORISNAISERR
2Not found#N/ATRUETRUEFALSE
3Divide by 0#DIV/0!TRUEFALSETRUE
4Bad argument#NUM!TRUEFALSETRUE
5Text in math#VALUE!TRUEFALSETRUE
6A number42FALSEFALSEFALSE
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

ISERROR is TRUE for all four errors. ISNA is TRUE only for #N/A, the error lookups return when a value is not found. ISERR is the opposite: TRUE for every error except #N/A. To replace an error instead of testing for it, =IFERROR(B2,0) is shorter than =IF(ISERROR(B2),0,B2); see the IFERROR page.

ISEVEN and ISODD

=ISEVEN(B2) is TRUE for an even number and =ISODD(B2) for an odd one. Zero is even, negative numbers work, and a decimal is cut to a whole number first, so 2.5 counts as 2:

Even or odd
C2
ABCD
1ItemNumberISEVENISODD
2A4TRUEFALSE
3B7FALSETRUE
4C0TRUEFALSE
5D-3FALSETRUE
6E2.5TRUEFALSE
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

A text value gives #VALUE!. To tell even and odd rows apart, for banded rows or "every second row" rules, use =ISEVEN(ROW()).

Practice: does the name contain "pro"?

Find the Pro models
B2
AB
1ProductPro model
2Laptop Pro 14
3Office Chair
4Monitor PRO 27
5Desk Lamp
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

Your turn: In B2, show "Yes" when the product name in A2 contains "pro" in any case, otherwise "No". The formula fills down to B5.

Which IS function to use

FunctionTRUE when the value is
ISBLANKan empty cell (not "", not a space, not 0)
ISNUMBERa number, including dates, times and percentages
ISTEXTtext, including numbers stored as text and ""
ISNONTEXTanything that is not text, including an empty cell
ISLOGICALTRUE or FALSE
ISERRORany error
ISERRany error except #N/A
ISNA#N/A only
ISEVEN / ISODDan even / odd number
ISFORMULAa cell that contains a formula
ISREFa cell reference

If =ISNUMBER(B2) is FALSE for values that look like numbers, they are stored as text, and SUM skips them too. Fix the data first (the text to number page shows how), then the IS test and the totals agree.

Frequently Asked Questions

Why does ISBLANK return FALSE for a cell that looks empty?

The cell holds something you cannot see: a formula that returns empty text (=""), a space, or an apostrophe. ISBLANK is TRUE only for a truly empty cell. To treat "" as empty too, test =B2="" or =LEN(B2)=0 instead.

How do I check if a cell is a number in Excel?

Use =ISNUMBER(B2). It returns TRUE for a number, a date or a percentage, and FALSE for text, including a number stored as text such as '42. Inside IF: =IF(ISNUMBER(B2),B2*2,"Not a number").

What is the difference between ISERROR, ISERR and ISNA?

ISERROR is TRUE for any error. ISNA is TRUE only for #N/A. ISERR is TRUE for every error except #N/A. To replace an error rather than test for it, use IFERROR or IFNA.

Why does ISNUMBER return FALSE for a number?

The number is stored as text, which often happens with imported data: the cell shows 42 but holds the text "42", usually aligned to the left with a green triangle. =ISTEXT(B2) returns TRUE for it. Convert it with VALUE or --B2.

How do I write IF not blank in Excel?

Test for not equal to empty text: =IF(B2<>"","Filled","Empty"), or =IF(NOT(ISBLANK(B2)),"Filled","Empty"). The first also treats a formula that returns "" as empty.

Coddy programming languages illustration

Learn to code with Coddy

GET STARTED