ISNUMBER tells you whether a cell holds a number, returning TRUE or FALSE. The basic formula is =ISNUMBER(A1), and the most common real-world use is wrapping SEARCH or FIND so you can test whether a cell contains a piece of text: =ISNUMBER(SEARCH("text",A1)). That combination works because SEARCH returns a number when it finds the text and an error when it does not, and ISNUMBER converts that result into a clean TRUE or FALSE you can filter, count or feed into IF.
What You'll Need
- Excel for Microsoft 365, Excel 2021, 2019, 2016, or Excel for Mac. The function works the same across these versions.
- A worksheet with data to test, or a blank sheet where you can type sample values.
- Basic familiarity with typing formulas and pressing Enter.
Step-by-Step
- Open your workbook and click the cell where you want the TRUE/FALSE result to appear. A blank cell next to your data is usually best.
- Type the basic formula. Start with an equals sign, then ISNUMBER and an opening parenthesis:
=ISNUMBER(. Click the cell you want to test, then close the parenthesis and press Enter. For example, if your value is in A2, the formula is=ISNUMBER(A2). The result is TRUE if A2 contains a number (including dates and times, which Excel stores as numbers) and FALSE if it contains text, a blank, or an error. - Copy the formula down. Drag the fill handle (the small square at the bottom-right of the cell) down the column, or double-click it, to apply the same test to every row.
- Use ISNUMBER with SEARCH to test for text inside a cell. This is the sample formula most people actually need. In a cell, type
=ISNUMBER(SEARCH("apple",A2)). SEARCH looks for the word apple anywhere inside A2, ignoring uppercase and lowercase. If it finds it, SEARCH returns a position number, ISNUMBER sees a number and returns TRUE. If it does not find it, SEARCH returns #VALUE!, ISNUMBER sees an error and returns FALSE. - Use FIND instead of SEARCH when case matters.
=ISNUMBER(FIND("Apple",A2))returns TRUE only for the exact capitalisation. SEARCH is case-insensitive; FIND is case-sensitive. - Wrap it in IF to get readable output. Type
=IF(ISNUMBER(SEARCH("apple",A2)),"Contains apple","No match"). This replaces TRUE/FALSE with a label you can read at a glance. - Count matches with SUMPRODUCT. To count how many cells in A2:A100 contain the word apple, use
=SUMPRODUCT(--ISNUMBER(SEARCH("apple",A2:A100))). The double minus converts TRUE/FALSE into 1/0 so SUMPRODUCT can add them. In Excel for Microsoft 365 you can also use=SUM(--ISNUMBER(SEARCH("apple",A2:A100)))and press Enter, because dynamic arrays handle the range in one go. - Test the result. Type a few sample values in the tested column: a plain number like 42, a word like apple pie, a blank cell, and a date. Check that the formula returns TRUE for 42 and the date, and FALSE for the blank. For the SEARCH version, check that apple pie returns TRUE and banana returns FALSE.
Common Mistakes
- Forgetting that dates and times are numbers. ISNUMBER returns TRUE for a date like 15/03/2024 because Excel stores it as a serial number. If you only want plain numeric values, test with
=AND(ISNUMBER(A2),NOT(ISNUMBER(SEARCH("/",TEXT(A2,"dd/mm/yyyy")))))or check the cell's number format instead. In most cases, decide first whether dates should count as numbers for your purpose. - Using ISNUMBER on text that looks numeric. A number stored as text, such as a value imported with a leading apostrophe, returns FALSE. Convert it with Text to Columns or by multiplying by 1 if you need it treated as a number.
- Expecting SEARCH to return TRUE or FALSE. SEARCH returns a position number or an error, never TRUE/FALSE. You must wrap it in ISNUMBER, as shown above.
- Mixing up SEARCH and FIND. SEARCH ignores case and allows wildcards like * and ?. FIND is case-sensitive and treats wildcards as literal characters. Choose deliberately.
- Leaving the range relative when copying. If you copy a formula across columns, use $ to lock the column or row you are testing, for example
=ISNUMBER(SEARCH("apple",$A2)). - Testing an empty cell. ISNUMBER on a blank cell returns FALSE, which is correct but can surprise people who expect a blank result. Wrap in IF if you want a blank output for empty cells.
Tips
- Use ISNUMBER with CELL to check formatting:
=ISNUMBER(CELL("format",A2))is not reliable for all formats, so prefer ISNUMBER on the value itself for numeric tests. - To test whether a cell contains any number at all, use
=ISNUMBER(A2). To test whether a cell contains a specific number, use=A2=42or=ISNUMBER(SEARCH("42",A2))if the number may be embedded in text. - Combine with ISERROR or IFERROR when your source data may contain errors:
=IFERROR(ISNUMBER(A2),FALSE)returns FALSE instead of an error. - Use named ranges for large ranges to keep formulas readable, for example
=SUMPRODUCT(--ISNUMBER(SEARCH("apple",Products))). - Remember that ISNUMBER is not case-sensitive by itself; it only tests the type of value. Case sensitivity comes from FIND.
Troubleshooting
- The formula returns #NAME? Check the spelling: it is ISNUMBER, not ISNUMBER( with a space. Also confirm you are using a comma or semicolon as the argument separator, depending on your region settings.
- Every result is FALSE. Check whether the tested cells contain numbers stored as text. Select one, look at the alignment (text is usually left-aligned, numbers right-aligned), and convert if needed. Also confirm you are testing the correct cell reference.
- SEARCH returns #VALUE! inside ISNUMBER and you see an error instead of FALSE. That happens if you use SEARCH outside ISNUMBER. The whole point of the wrapper is to convert the error into FALSE. Recheck the parentheses:
=ISNUMBER(SEARCH("apple",A2)). - The formula works in one row but not others. Relative references may be shifting. Lock the tested column with $, for example
$A2. - Dates are returning TRUE when you expected FALSE. That is correct Excel behaviour. If you need to exclude dates, test the number format or use a helper column that flags date-formatted cells.
- SUMPRODUCT returns an error. Check that the range sizes match and that no cell in the range contains an error value. Wrap the inner SEARCH in IFERROR if needed:
=SUMPRODUCT(--ISNUMBER(IFERROR(SEARCH("apple",A2:A100),0)))entered as a normal formula in modern Excel.
Frequently Asked Questions
What does ISNUMBER do in Excel?
It returns TRUE if the referenced cell contains a number, and FALSE if it contains text, a blank, or an error. Dates and times count as numbers because Excel stores them as serial numbers.
Why wrap SEARCH in ISNUMBER?
SEARCH returns a position number when it finds text and an error when it does not. ISNUMBER turns that into a clean TRUE or FALSE, which is easier to use in IF, SUMPRODUCT, and filters.
What is the difference between ISNUMBER and ISTEXT?
ISNUMBER tests for numeric values; ISTEXT tests for text values. A cell containing the text "123" returns FALSE for ISNUMBER and TRUE for ISTEXT until you convert it to a real number.
Can ISNUMBER test a whole range at once?
Not directly as a single TRUE/FALSE. In Excel for Microsoft 365, dynamic arrays let you enter =ISNUMBER(A2:A10) and get a spilled column of results. In older versions, copy the formula down or use SUMPRODUCT for counting.
Does ISNUMBER work with wildcards?
No. ISNUMBER itself has no wildcard support. Wildcards work inside SEARCH, which is why the ISNUMBER(SEARCH(...)) pattern is so common.
Why does ISNUMBER return TRUE for a date?
Because Excel stores dates as sequential serial numbers. If you need to distinguish dates from ordinary numbers, check the cell's number format or use a helper formula that tests for a date pattern.