Description
Use this function to check if a cell contains a numeric value, or that the result of another function is a number. Supported in Chains.
Syntax
ISNUMBER(value)
Inputs
This function has the following arguments:
| Name | Required | Description | Valid input |
|---|---|---|---|
value |
Yes | The cell that you want to evaluate. | A reference to a cell, or a formula which results in one. |
Examples
Sample data
| A | B | |
|---|---|---|
| 1 | red | 56 |
| 2 | green | 39 |
| 3 | orange | 15 |
| 4 | red 4 | 92 |
| 5 | blue | 22 |
Sample formulas
| Use case | Formula | Explanation and Result |
|---|---|---|
| Check whether the value in a cell is a number. | =ISNUMBER(A1) |
This formula works in the following manner:
For this data set this formula returns FALSE. (Because A1 contains "red".) |
| Check whether the value in a cell is a number. | =ISNUMBER(B1) |
This formula works in the following manner:
For this data set this formula returns TRUE (because B1 contains "56") |
| Check whether the value in a cell is a number. | =ISNUMBER(A4) |
This formula works in the following manner:
For this data set this formula returns FALSE. (Because A1 contains "red" in addition to "4".) |
| Check whether the sum of two cells is a number. | =ISNUMBER(A1+B1) |
This formula works in the following manner:
For this data set this formula returns FALSE. (Because cell A1 contains "red".) |
| Check whether a cell contains a specific term | =ISNUMBER(SEARCH("green", A2)) |
This formula works in the following manner:
For this data set this formula returns TRUE. (Because A2 contains "green".) |
| Provide alternative response if a cell is not a number. | =IF(ISNUMBER(A1), A1*2, "Not a Number") |
This formula works in the following manner:
For this data set this formula returns Not a Number. (Because A1 does not contain a number.) |
Notes
- Cell ranges aren't supported.
- ISNUMBER returns TRUE for cells containing dates and times.
- ISNUMBER returns FALSE for empty cells, cells containing text, and errors.
Related functions
COUNT
COUNTA
COUNTBLANK
COUNTIF
COUNTIFS
ISBLANK
ISERROR
ISNA
ISNUMBER
VALUE