Excel function

ISNUMBERfunction

Checks whether a value is a number.

All versions
=ISNUMBER(A3)
A
B
C
1
2
3
4
5
6
7
8
9
10

Click a cell in the table to change value. 120 in A3 is TRUE; "120" in A8 is text, so FALSE. Try breaking it on purpose to see the errors.

Result

TRUE

value
A3You can also click a cell in the table

The cell to test. Click another value in column A.

What is the ISNUMBER function?

=ISNUMBER(value)

ISNUMBER returns TRUE if a value is a number. It is most often used inside IF to treat values differently by kind.

Column A of the sheet mixes text, numbers, a blank, a logical value, errors and text that looks like a number; column B says what each is. Column C shows the same formula copied down.

Two uses stand out: checking that quantity and price columns really hold numbers, and turning the result of SEARCH, FIND or MATCH into "found or not". In the second case ISNUMBER turns an error into FALSE, so the result can go straight into IF or a count.

Arguments

value
The value or cell to test.

ISNUMBER examples

  1. Example 1. Check for a number

    =ISNUMBER(A3)

    120, so TRUE.

  2. Example 2. Check whether text contains something

    =ISNUMBER(SEARCH("team", B2))

    SEARCH returns a position (a number) or an error, so this is a common "contains" test.

  3. Example 3. Result for each kind of value

    =ISNUMBER(A2)

    Dates are numbers too, so they are TRUE. The text "120" is FALSE.

    Value in column A=ISNUMBER(A2)
    AppleFALSE
    120TRUE
    (blank)FALSE
    TRUEFALSE
    #N/AFALSE
    #DIV/0!FALSE
    "120" (text)FALSE
  4. Example 4. Is it in the list?

    =ISNUMBER(MATCH(A2, $F$2:$F$50, 0))

    TRUE if A2 appears in F2:F50. When MATCH returns #N/A the result is FALSE.

Common mistakes

FAQ

How do I turn text numbers into numbers?
Use VALUE or =A8*1.
The opposite?
Use ISTEXT.
How do I check a quantity column?
=IF(ISNUMBER(C2), "", "Enter a number").