ISNUMBER Formula in Excel: Syntax and Examples

Formulas & functions · Updated November 23, 2026

The ISNUMBER function in Excel checks whether a value is a number and returns TRUE if it is, or FALSE if it is not. In its simplest form, you write =ISNUMBER(A1) in a cell, and Excel evaluates the contents of A1. If A1 contains 42, 3.14, or a date (which Excel stores as a serial number), ISNUMBER returns TRUE. If A1 contains text like “apple”, a blank cell, or an error like #N/A, it returns FALSE. The function is part of Excel’s IS information functions, which also include ISERROR, ISBLANK, and ISTEXT. ISNUMBER is not a complex formula, but it becomes powerful when combined with other functions like IF, SEARCH, or VLOOKUP to test whether a lookup succeeded or whether a cell contains a numeric code.

Syntax and Basic Arguments

The syntax is short: =ISNUMBER(value). The only argument, value, can be a cell reference, a number typed directly, a formula result, or a named range. For example:

  • =ISNUMBER(100) returns TRUE.
  • =ISNUMBER("100") returns FALSE because the text string “100” is not a number, even though it looks like one.
  • =ISNUMBER(A1) where A1 contains =1+1 returns TRUE because the formula result is the number 2.
  • =ISNUMBER(A1) where A1 contains a date like 5/1/2025 returns TRUE because Excel stores dates as serial numbers.

One common mistake is assuming ISNUMBER will coerce text that looks like a number. It will not. If you need to test whether a cell contains a number that was entered as text, you would use =ISNUMBER(A1+0) or check the cell’s data type with the TYPE function. The ISNUMBER function only evaluates the underlying value, not the formatting.

Combining ISNUMBER with IF for Conditional Logic

The most frequent real-world use is pairing ISNUMBER with IF to return a custom message or perform an action based on whether a cell is numeric. For example, suppose you have a list of product codes in column A, and some cells contain text like “N/A” while others contain numeric IDs. To label each row:

  • With codes in A2:A20, put this in B2: =IF(ISNUMBER(A2), "Valid code", "Missing code")
  • This checks A2; if it is a number, B2 shows “Valid code”; otherwise “Missing code”. Drag down to fill.

Another common pattern is validating user input. If you have a data entry sheet where column C should contain quantities, you can use conditional formatting with a formula like =NOT(ISNUMBER(C2)) to highlight non-numeric entries in red. This works because NOT reverses the TRUE/FALSE result, so rows where C2 is not a number get flagged.

Using ISNUMBER with SEARCH to Find Text Within a Cell

ISNUMBER is often used with SEARCH or FIND to test whether a substring exists inside a text string. The SEARCH function returns the position of the substring if found, and the #VALUE! error if not found. ISNUMBER converts that result into a clean TRUE or FALSE. For example, to check whether a cell in A2 contains the word “urgent”:

  • =ISNUMBER(SEARCH("urgent", A2)) returns TRUE if “urgent” appears anywhere in A2, regardless of case.
  • If you need case-sensitive matching, use FIND instead: =ISNUMBER(FIND("urgent", A2)).

This pattern is useful for categorizing emails, filtering product names, or checking if a part number contains a specific prefix. For example, to count how many cells in A2:A20 contain “XL”, you could use =SUMPRODUCT(--ISNUMBER(SEARCH("XL", A2:A20))). The double negative converts TRUE/FALSE to 1/0 so SUMPRODUCT can add them up.

ISNUMBER with VLOOKUP and XLOOKUP to Detect Missing Values

When you use VLOOKUP or XLOOKUP, a missing match returns #N/A. ISNUMBER can turn that into a readable result. For a classic VLOOKUP example with lookup values in E2:E5 and a table in A2:B10:

  • =IF(ISNUMBER(VLOOKUP(E2, A2:B10, 2, FALSE)), VLOOKUP(E2, A2:B10, 2, FALSE), "Not found")
  • This performs the VLOOKUP twice, which is inefficient. A better approach is to use IFERROR: =IFERROR(VLOOKUP(E2, A2:B10, 2, FALSE), "Not found").

However, ISNUMBER is still useful when you want to distinguish between a numeric result and a text result. For instance, if your lookup table returns either numbers or text, you might want to flag numeric results only. With XLOOKUP (available in Excel 2021 or Microsoft 365), you can write =ISNUMBER(XLOOKUP(E2, A2:A10, B2:B10)) to check whether the returned value is numeric. This is helpful when the lookup value exists but the result is a blank cell, which XLOOKUP returns as 0 by default, so ISNUMBER would return TRUE for that 0.

Common Errors and Pitfalls

Several issues trip up users when working with ISNUMBER:

  • Blank cells return FALSE. An empty cell is not a number, so ISNUMBER returns FALSE. If you need to treat blanks as valid, combine with ISBLANK.
  • Numbers stored as text return FALSE. If a cell has a green triangle warning, the value is text. Use =ISNUMBER(A1+0) to coerce, but be aware this changes the value.
  • Dates and times are numbers. Excel stores them as serial numbers, so ISNUMBER returns TRUE. If you want to check for a date specifically, you need ISNUMBER plus a check like =AND(ISNUMBER(A1), A1>DATE(1900,1,1)).
  • Boolean values (TRUE/FALSE) are not numbers. ISNUMBER(TRUE) returns FALSE. If you need to test for logical values, use ISLOGICAL.
  • Errors like #DIV/0! return FALSE. ISNUMBER does not catch errors; use ISERROR for that.

ISNUMBER vs. Other IS Functions

Excel has a family of IS functions that all return TRUE or FALSE. The key differences:

  • ISNUMBER – checks for numeric values (including dates).
  • ISTEXT – checks for text strings, returns TRUE for “100” but FALSE for 100.
  • ISBLANK – returns TRUE only for completely empty cells.
  • ISERROR – returns TRUE for any error value (#N/A, #VALUE!, etc.).
  • ISLOGICAL – returns TRUE for TRUE or FALSE.

Choosing the right one depends on what you need to detect. For example, to find cells that are neither numbers nor text (like errors), you could use =AND(NOT(ISNUMBER(A1)), NOT(ISTEXT(A1))). This combination is rare but useful for data cleaning.

Frequently Asked Questions

Does ISNUMBER work on cells with formulas? Yes. ISNUMBER evaluates the result of the formula, not the formula text. If A1 contains =5*5, ISNUMBER(A1) returns TRUE because the result is 25.

Why does ISNUMBER return FALSE for a cell that looks like a number? The cell is likely formatted as text or contains a leading apostrophe. Select the cell, check the Number Format dropdown in the Home tab, and if it says “Text”, change it to General and re-enter the value.

How do I count numbers in a range? Use =SUMPRODUCT(--ISNUMBER(A1:A10)) or the newer =COUNT(A1:A10) which counts numeric cells directly. COUNT ignores text and blanks, so ISNUMBER is only needed if you want to combine with other conditions.

Can ISNUMBER be used in conditional formatting? Yes. Select the range, go to Home > Conditional Formatting > New Rule > Use a formula, and enter =ISNUMBER(A1) (adjusting A1 to the active cell). Apply a format to highlight numeric cells.

What is the difference between ISNUMBER and ISNUMERIC in VBA? ISNUMBER is a worksheet function; VBA has its own IsNumeric function. They behave similarly but not identically. In VBA, IsNumeric("100") returns True because VBA coerces strings, whereas the worksheet ISNUMBER returns False for text. If you are writing VBA, use IsNumeric directly.

Does ISNUMBER work in Excel for the web or Mac? Yes, ISNUMBER is available in all modern versions of Excel, including Excel for Microsoft 365, Excel 2021, Excel for Mac, and Excel for the web. The syntax and behavior are identical across platforms.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.