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 =ISNUMBER(A3) returns FALSE
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()
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 =ISNUMBER(A3) returns FALSE
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.
value can be a cell, a typed value or the result of any formula. What counts as a number:
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.
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.
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!.
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.
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.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
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 =ISNUMBER(A3) returns FALSE
Example 2
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 =ISNUMBER(A2) returns TRUE
Example 3
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 =ISNUMBER(SEARCH("refund",A2)) returns TRUE
Example 4
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 =SUMPRODUCT(--ISNUMBER(SEARCH("late",A2:A5))) returns 2
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.
ISNUMBER(TRUE) is FALSE.ISNUMBER(SEARCH(...)) test treats ? and * in the search text as wildcards. Use ~ in front of them, or FIND, for a literal match.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.
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.
Yes. Excel stores dates as serial numbers, so ISNUMBER returns TRUE for real dates and FALSE for dates stored as text.
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.
ISNUMBER is taught in Logic and text, lesson 6: ISBLANK, ISNUMBER and ISTEXT. Each lesson is a short, graded exercise like the one above.