Skip to content

ISNUMBER

Returns TRUE when a value is a number, dates included. A number stored as text is not a number. It is the standard way to test for a successful search.

Syntax

=ISNUMBER()

Information

Every version of Excel, including Microsoft 365, Excel 2024, 2021, 2019, 2016 and earlier, Excel for the web and the mobile apps.

Try it

Edit the formula in B3 or change the inputs. The sheet recalculates as you type.

B3
A
B
C
D
1
Amount
Is a number?
2
1250
3
1250
FALSE
4
5

B3 =ISNUMBER(A3) returns FALSE

How ISNUMBER works

ISNUMBER returns TRUE if a value is a number and FALSE if it isn't. It is one of the most useful of the IS functions, mainly for two jobs: checking that imported data really is numeric, and testing whether a search succeeded.

The argument

value can be a cell, a typed value or the result of any formula. What counts as a number:

  • Numbers, such as 42, -3.5 or 0: TRUE.
  • Dates and times: TRUE. Excel stores them as numbers.
  • Text, even text that looks like a number such as "1042": FALSE.
  • TRUE and FALSE: FALSE. Logical values are not numbers for this test.
  • Errors and empty cells: FALSE.

Finding numbers stored as text

Numbers imported from other systems often arrive as text. They are left-aligned, a green triangle may appear, and they don't add up: SUM ignores them, and a lookup for 1042 won't find "1042". =ISNUMBER(B2) returns FALSE for those cells. =SUMPRODUCT(--NOT(ISNUMBER(B2:B20))) counts how many cells in a column aren't real numbers. Convert them with VALUE, Text to Columns, or by multiplying by 1.

Testing whether text contains something

The best-known use is paired with SEARCH or FIND. SEARCH returns the position of a piece of text, or #VALUE! if it isn't there. ISNUMBER turns that into TRUE or FALSE:

=ISNUMBER(SEARCH("refund", A2))

This is TRUE if A2 contains "refund" anywhere. SEARCH ignores case. FIND is the case-sensitive version. Wrap it in IF to return words, or in SUMPRODUCT to count cells that contain a word: =SUMPRODUCT(--ISNUMBER(SEARCH("late", A2:A20))).

The same trick works with MATCH: =ISNUMBER(MATCH(A2, F2:F20, 0)) is TRUE if A2 appears in the list in F2:F20. It is the usual membership test.

ISNUMBER and the other IS functions

ISTEXT is the mirror for text. ISBLANK tests for empty cells. ISERROR tests for errors. A value is exactly one of number, text, logical value, error or empty. ISNUMBER is useful when you want to guard a calculation: =IF(ISNUMBER(B2), B2*1.2, "Check") stops text in B2 from causing a #VALUE!.

Things to watch

An empty cell isn't a number to ISNUMBER, even though it counts as 0 in arithmetic. And a formula that returns "" is text. If your data may have blanks, test for them as well.

ISNUMBER can look at arrays in current Excel: =ISNUMBER(B2:B9) returns a column of TRUE and FALSE values, which you can use as a filter condition.

Arguments

value
The value or cell to check, such as B2 or SEARCH("x", A2). ISNUMBER is TRUE for numbers, dates and times, and FALSE for text (including text that looks like a number), logical values, errors and empty cells.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

A number and a number stored as text

B3 =ISNUMBER(A3)

Result: FALSE

A3 holds the text "1250", so ISNUMBER is FALSE. For A2, which holds the number 1250, it is TRUE. Text numbers are ignored by SUM.

B3
A
B
C
D
1
Amount
Is a number?
2
1250
3
1250
FALSE
4
5

B3 =ISNUMBER(A3) returns FALSE

Example 2

Dates are numbers

B2 =ISNUMBER(A2)

Result: TRUE

A date is stored as a serial number, so ISNUMBER is TRUE. A date typed as text, such as "14-Feb-2025" in quotes, would return FALSE.

B2
A
B
C
D
1
Delivery date
Is a number?
2
12-Feb-2025
TRUE
3
4

B2 =ISNUMBER(A2) returns TRUE

Example 3

Does the text contain a word?

B2 =ISNUMBER(SEARCH("refund",A2))

Result: TRUE

SEARCH finds refund at position 20, ignoring case, so it returns a number and ISNUMBER is TRUE. If the word were missing, SEARCH would return #VALUE! and ISNUMBER would be FALSE.

B2
A
B
C
D
1
Ticket note
About a refund?
2
Customer asked for REFUND after damage
TRUE
3
4

B2 =ISNUMBER(SEARCH("refund",A2)) returns TRUE

Example 4

Count the notes that mention a word

C2 =SUMPRODUCT(--ISNUMBER(SEARCH("late",A2:A5)))

Result: 2

SEARCH runs on each note, ISNUMBER turns each result into TRUE or FALSE, and SUMPRODUCT adds them after the double minus changes them to 1 and 0.

C2
A
B
C
D
1
Ticket note
Mention late
2
Late delivery
2
3
Damaged box
4
Delivery late again
5
Wrong item
6
7

C2 =SUMPRODUCT(--ISNUMBER(SEARCH("late",A2:A5))) returns 2

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In C2, return TRUE when the amount in column B is a real number, and FALSE when it is text. Fill down to C7.

Answer in C2, then it fills down to C7.

C2
A
B
C
D
E
F
1
Order
Amount
Valid amount?
Ticket note
Refund?
2
O-01
1250
Customer asked for a refund
3
O-02
980
Late delivery
4
O-03
2175
Item damaged, refund agreed
5
O-04
640
Wrong item sent
6
O-05
1890
Refund requested
7
O-06
320
No issue
8
9
10
11

Common mistakes

  • A number stored as text returns FALSE. That is the point of the test, but remember that the value may look like a number in the cell.
  • An empty cell returns FALSE, even though it behaves like 0 in a sum. Test blanks with ISBLANK.
  • Logical values return FALSE: ISNUMBER(TRUE) is FALSE.
  • The ISNUMBER(SEARCH(...)) test treats ? and * in the search text as wildcards. Use ~ in front of them, or FIND, for a literal match.
  • SEARCH ignores case and FIND respects it. Pick the one that matches the rule you are testing.

Questions people ask

Why does ISNUMBER return FALSE for a number?

The cell holds text that looks like a number, usually from an import or an apostrophe typed in front. Convert it with VALUE, Text to Columns, or by multiplying by 1.

How do I check whether a cell contains certain text?

Use `=ISNUMBER(SEARCH("text", A2))`. SEARCH returns a position if it finds the text and an error if not, and ISNUMBER turns that into TRUE or FALSE.

Is a date a number in Excel?

Yes. Excel stores dates as serial numbers, so ISNUMBER returns TRUE for real dates and FALSE for dates stored as text.

How do I test whether a value appears in a list?

Use `=ISNUMBER(MATCH(A2, F2:F20, 0))`. MATCH returns a position when it finds the value, so ISNUMBER is TRUE for values in the list.

Learn ISNUMBER in a real sheet.

ISNUMBER is taught in Logic and text, lesson 6: ISBLANK, ISNUMBER and ISTEXT. Each lesson is a short, graded exercise like the one above.