The ISNUMBER function in Excel checks whether a value is a number and returns TRUE if it is, or FALSE if it is not. It is a simple logical test, but its real power comes from combining it with other functions like SEARCH, FIND, and IF to build formulas that search for text, validate data, and flag errors. This article explains exactly how ISNUMBER works, shows you real examples, and covers the common mistakes people make with it.
What ISNUMBER Does (and What It Doesn't)
ISNUMBER belongs to Excel's IS functions, a family that also includes ISBLANK, ISERROR, and ISTEXT. All of them return a Boolean value: TRUE or FALSE. ISNUMBER specifically returns TRUE when the cell or expression you give it is a number, and FALSE for anything else.
Important: "number" in Excel means a numeric value, not text that looks like a number. A cell containing the text "123" (with an apostrophe or formatted as text) is not a number to ISNUMBER—it returns FALSE. Dates and times are numbers in Excel's internal system (they are stored as serial numbers), so ISNUMBER returns TRUE for a real date. However, a date entered as text returns FALSE. This distinction matters when you use ISNUMBER to validate data before performing calculations.
The syntax is simple: =ISNUMBER(value). The value can be a cell reference, a number typed directly, a formula, or a range (though a range only works with array formulas in older Excel versions). For example, =ISNUMBER(A1) checks cell A1, and =ISNUMBER(10) returns TRUE.
Using ISNUMBER with SEARCH and FIND for Text Lookup
The most common real-world use of ISNUMBER is to check if a specific text string exists inside another cell. You pair it with SEARCH or FIND. Both functions return the position of a substring, but they differ in one key way: SEARCH is case-insensitive (it treats "abc" and "ABC" the same), while FIND is case-sensitive. If the substring is not found, both return a #VALUE! error. ISNUMBER converts that error into FALSE, and a valid position into TRUE.
Example: You have a list of email addresses in column A and want to flag which ones are from a certain domain. The formula in B1 would be:
=ISNUMBER(SEARCH("@example.com", A1))
This returns TRUE if the cell contains "@example.com" anywhere, and FALSE otherwise. Because SEARCH is case-insensitive, it also matches "@Example.COM". If you need a case-sensitive match, use FIND instead: =ISNUMBER(FIND("@example.com", A1)).
Why not just use =IF(SEARCH(...))? Because SEARCH returns a number (the position) when found, but an error when not found. ISNUMBER turns that into a clean TRUE/FALSE that you can feed directly into IF, COUNTIF, or conditional formatting.
Practical Examples: IF, Conditional Formatting, and Data Validation
Here are three ways ISNUMBER is used in real spreadsheets.
1. Flagging cells with IF
Combine ISNUMBER with IF to return custom text instead of TRUE/FALSE. For instance, to label orders that contain the word "urgent":
=IF(ISNUMBER(SEARCH("urgent", A2)), "High Priority", "Normal")
If A2 contains "Urgent: please ship today", the formula returns "High Priority". If not, it returns "Normal".
2. Conditional formatting to highlight matches
You can use ISNUMBER in a conditional formatting rule to highlight cells that contain a specific word. Select the range, go to Home > Conditional Formatting > New Rule, choose "Use a formula to determine which cells to format", and enter:
=ISNUMBER(SEARCH("overdue", A1))
Make sure the formula is written for the top-left cell of your selected range. The rule will highlight every cell in the range that contains "overdue".
3. Data validation to reject text
ISNUMBER can also validate input. In Data Validation (Data > Data Validation > Settings, choose "Custom"), enter:
=ISNUMBER(A1)
This only allows numeric entries in that cell. If someone types text, Excel shows an error. Note that this does not reject dates, because dates are numbers internally.
Common Mistakes and How to Avoid Them
Several pitfalls trip up new users.
- Using ISNUMBER on text that looks like a number. If a cell is formatted as text, ISNUMBER returns FALSE. Use
=ISNUMBER(VALUE(A1))to convert text to a number first, or use=ISNUMBER(A1+0)as a workaround—but be aware that this will fail if A1 contains non-numeric text. - Forgetting that SEARCH returns an error, not FALSE. If you use
=IF(SEARCH("text", A1), "Yes", "No"), you get a #VALUE! error when "text" is absent. Always wrap SEARCH or FIND in ISNUMBER to handle the error gracefully. - Using ISNUMBER on a range without an array formula. In Excel 365, dynamic arrays handle this automatically, but in older versions, you need to press Ctrl+Shift+Enter. Simpler: use SUMPRODUCT or COUNTIF instead.
- Assuming ISNUMBER checks for numeric-looking text. It does not. A cell with "123" as text is FALSE. If you need to check if a cell contains a number that can be used in calculations, use
=ISNUMBER(A1)after converting the cell to number format.
ISNUMBER vs. Other IS Functions and Alternatives
ISNUMBER is often confused with other functions:
- ISNUMBER vs. ISERROR: ISERROR returns TRUE for any error (#VALUE!, #N/A, etc.). ISNUMBER returns TRUE only for numbers. They are not interchangeable.
- ISNUMBER vs. ISNONTEXT: ISNONTEXT returns TRUE for anything that is not text, including numbers, errors, and blanks. ISNUMBER is stricter—it only returns TRUE for actual numbers.
- ISNUMBER vs. COUNTIF: COUNTIF can count cells that contain a specific text, but it uses wildcards. For example,
=COUNTIF(A:A,"*urgent*")counts cells with "urgent" anywhere. This is simpler than ISNUMBER+SEARCH for counting, but it does not give you a per-cell TRUE/FALSE for conditional formatting or IF logic. - ISNUMBER vs. ISNUMBER(SEARCH(...)): The latter is a compound formula. The standalone ISNUMBER just checks if a cell is a number. The compound version is what you use for text searching.
How to Check if a Cell Contains Any Number (Not Just a Number)
A frequent question is: "How do I check if a cell contains a digit anywhere in a text string?" ISNUMBER alone cannot do this because it checks the whole cell. To find a digit inside text, you need an array formula that checks each character. In Excel 365, you can use:
=ISNUMBER(SEARCH({"0","1","2","3","4","5","6","7","8","9"}, A1))
This returns an array of TRUE/FALSE values—one for each digit. To get a single TRUE if any digit exists, wrap it in OR:
=OR(ISNUMBER(SEARCH({"0","1","2","3","4","5","6","7","8","9"}, A1)))
In older Excel versions, you must enter this as an array formula (Ctrl+Shift+Enter). This is an advanced use, but it shows how ISNUMBER can be extended beyond simple checks.
ISNUMBER with Other Functions: IFERROR, VLOOKUP, and More
ISNUMBER is often nested inside other functions to control their behavior.
- With IFERROR: You can use ISNUMBER to check if a lookup succeeded. For example,
=IF(ISNUMBER(MATCH(A1, B:B, 0)), "Found", "Not Found"). MATCH returns a position if found, #N/A if not. ISNUMBER converts that to TRUE/FALSE. - With VLOOKUP: Similarly,
=IF(ISNUMBER(VLOOKUP(A1, B:C, 2, FALSE)), "Exists", "Missing")checks if VLOOKUP returned a number (a value) or an error. - With SUMPRODUCT: To count how many cells in a range contain a certain word, use
=SUMPRODUCT(--ISNUMBER(SEARCH("word", A1:A10))). The double negative converts TRUE/FALSE to 1/0, and SUMPRODUCT sums them.
Frequently Asked Questions
Does ISNUMBER return TRUE for blank cells?
No. A blank cell is not a number, so ISNUMBER returns FALSE. If you need to treat blanks as numbers (for example, as zero), use =ISNUMBER(A1)+0 or handle blanks separately with ISBLANK.
Why does ISNUMBER return FALSE for a cell that looks like a number?
Because the cell is probably formatted as text. Numbers stored as text have a green triangle in the corner and are left-aligned by default. To fix, select the column, go to Data > Text to Columns, and click Finish—this converts text to numbers.
Can I use ISNUMBER to check if a date is a date?
Yes, because dates are numbers in Excel. =ISNUMBER(A1) returns TRUE for a real date. However, if the date is text, it returns FALSE. To convert text dates, use DATEVALUE.
What is the difference between ISNUMBER and ISNONTEXT?
ISNUMBER returns TRUE only for numbers. ISNONTEXT returns TRUE for anything that is not text, including numbers, errors, and blank cells. So ISNONTEXT is broader.
How do I use ISNUMBER with wildcards?
ISNUMBER itself does not support wildcards. But SEARCH does. For example, =ISNUMBER(SEARCH("a?c", A1)) checks for "a" followed by any character then "c". The wildcard ? matches one character, * matches any sequence.
Does ISNUMBER work with array formulas in older Excel?
Yes, but you must enter the formula with Ctrl+Shift+Enter. In Excel 365, dynamic arrays handle it automatically. If you see a #SPILL! error, it means the array is larger than the surrounding cells—clear them or use a single-cell formula.
ISNUMBER is a small function with a narrow job, but it is a building block for many powerful formulas. Once you understand that it returns TRUE for numbers and FALSE for everything else, and that you can combine it with SEARCH or FIND to test for text, you can solve a wide range of lookup and validation problems in Excel.