Check a cell with ISNUMBER, ISBLANK and ISERROR

Decisions with IF · About 6 minutes

Check a cell with ISNUMBER, ISBLANK and ISERROR

The IS functions ask what kind of thing is in a cell, and answer TRUE or FALSE. ISNUMBER checks for a number, ISTEXT for text, ISBLANK for an empty cell.

ISERROR is TRUE for any error, like #DIV/0! or #N/A. ISNA is TRUE only for #N/A, the error a lookup gives when it finds nothing.

On their own they show TRUE or FALSE. Put one inside IF to show a message people can read: =IF(ISBLANK(B4),"Missing","OK").

Part of Plus

Free during our founding launch: sign in to unlock this lesson's exercises, the timed practice sets and the rest of Plus. The free lessons stay free, with no account needed.

What ISNUMBER, ISBLANK and ISERROR does

The IS functions ask what kind of thing is in a cell and answer TRUE or FALSE. ISNUMBER checks for a number, ISTEXT for text, ISBLANK for an empty cell, ISERROR for any error and ISNA for #N/A only.

They help you find problems in a list before you total it, like a quantity typed as text or a cell left empty. Put one inside IF to show a word people can act on.

How to write ISNUMBER, ISBLANK and ISERROR

=ISNUMBER(value)

value
The cell to check. TRUE if it holds a number. Dates count as numbers too.

=ISTEXT(value)

value
TRUE if the cell holds text, including a number typed as text.

=ISBLANK(value)

value
TRUE only if the cell is truly empty.

=ISERROR(value)

value
TRUE for any error, like #N/A or a divide by 0. ISNA(value) works the same way but is TRUE only for #N/A.

ISNUMBER, ISBLANK and ISERROR worked example

Before totaling a stock count, flag any quantity that isn't a number. In C2 to C5, show Ready or Check.

Before totaling a stock count, flag any quantity that isn't a number. In C2 to C5, show Ready or Check.
ABC
1ItemQtyStatus
2Pens40Ready
3Clips12 boxCheck
4PadsCheck
5Pins25Ready
C2=IF(ISNUMBER(B2),"Ready","Check")If B2 holds a number, show Ready; otherwise show Check. Pens and Pins show Ready, Clips shows Check because "12 box" is text, and Pads shows Check because it is empty.

Common ISNUMBER, ISBLANK and ISERROR mistakes

ISBLANK says FALSE for a cell that looks empty

The cell holds something you can't see: a space, or "" from a formula. ISBLANK is FALSE for both. Test B2="" instead, which is TRUE for an empty cell and for "".

A number fails ISNUMBER

It was stored as text, often from a copy and paste. It may sit on the left of the cell. Turn it into a number with VALUE.

ISNA misses an error

ISNA is TRUE only for #N/A. To catch a divide by 0 or any other error, use ISERROR.

ISERROR, ISNA or IFERROR?

If you only want to replace an error with a value, IFERROR is shorter: one formula instead of IF, ISERROR and the formula written twice.

Use ISERROR or ISNA when you need TRUE or FALSE itself, like to flag rows or to count problems. Pick ISNA after a lookup, so a not-found result is flagged but other errors still show.

Questions people ask

What does ISNUMBER do?

It gives TRUE when the cell holds a number and FALSE otherwise. ISTEXT does the same for text.

How do I check whether a cell is blank?

=ISBLANK(B4) is TRUE for an empty cell. Inside IF: =IF(ISBLANK(B4),"Missing","OK").

What is the difference between ISERROR and ISNA?

ISERROR is TRUE for any error, like #DIV/0! or #N/A. ISNA is TRUE only for #N/A.

Theme