Logic and errors function
ISNUMBER function in Google Sheets and Excel
ISNUMBER returns TRUE when a value is a real number and FALSE for text, blanks, errors and logical values.
Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet
- Excel 2016
- Excel 2019
- Excel 2021
- Excel 2024
- Microsoft 365
- Google Sheets
Syntax
ISNUMBER(value)Arguments in [brackets] are optional. Google Sheets writes it ISNUMBER(value).
Example
=ISNUMBER(C2) reads: Check whether Mara's age in C2 is a real number, then fill the check down to F11.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Name | Age | Plan | Joined | Age is number | |
| 2 | mara@example.com | Mara | 34 | Pro | 12 Jan 2026 | TRUE |
| 3 | jonas@example.org | Jonas | 41 | Basic | 15 Jan 2026 | FALSE |
| 4 | MARA@example.com | Mara O. | 34 | Pro | 20 Jan 2026 | TRUE |
| 5 | priya@example.net | Priya | Team | 2 Feb 2026 | FALSE | |
| 6 | tomas@example.com | Tomás | n/a | basic | 9 Feb 2026 | FALSE |
| 7 | elif@example.org | Elif | 29 | Pro | 17 Feb 2026 | TRUE |
| 8 | jonas@example.org | Jonas Lind | 41 | Basic | 23 Feb 2026 | TRUE |
| 9 | kenji@example.net | Kenji | 52 | Enterprise | 3 Mar 2026 | TRUE |
| 10 | sofia@example.com | Sofia | 23 | Team | 8 Mar 2026 | TRUE |
| 11 | leo@example.org | Leo | 17 | Basic | 14 Mar 2026 | TRUE |
F2 shows TRUE: Mara's age 34 is a number. F3 shows FALSE: Jonas's “41” was imported as text.
How the spreadsheet calculates it
Is TRUE if C2 is a number (a number stored as text doesn't count).
- 1. ISNUMBER: Is TRUE if
C2is a number (a number stored as text doesn't count).value=`C2`: the cell to check
More ISNUMBER examples
=IF(ISNUMBER(C2),"OK","Check age")A validation flag for the age column.=ISNUMBER(SEARCH("example.com",A2))TRUE when the email in A2 contains example.com.=SUMPRODUCT(--ISNUMBER(C2:C11))How many ages are real numbers: 7.=FILTER(B2:B11,ISNUMBER(C2:C11))The names whose age is a real number.
Paste any of these into the formula explainer to see it step by step.
Tips
- Use it inside IF for a readable flag:
IF(ISNUMBER(C2),"OK","Check"). - Pair it with SEARCH for case-insensitive contains checks, or FIND for case-sensitive ones.
- Turn TRUE/FALSE into 1/0 with
--to count matches in SUMPRODUCT.
What ISNUMBER is used for
Validation columns that flag ages, amounts or IDs imported as text, "contains" checks with SEARCH, and conditions inside IF or FILTER that keep only rows with a real number.
Arguments
| Argument | Required | What it is |
|---|---|---|
| value | Yes | The cell, value or formula to test. It isn't converted: a number in quotes counts as text. |
Common mistakes
Trusting what a cell looks like: text numbers are usually left-aligned.
Expecting dates to be FALSE: dates are numbers underneath, so ISNUMBER returns TRUE for them.
Testing a formula that returns "" and expecting TRUE: an empty text result is text, so the answer is FALSE.
In Google Sheets
Google Sheets has ISNUMBER(value) with the same single argument, and the same rule that a number in quotes is text.
Errors you may see with ISNUMBER
- #NAME?: A misspelled function inside it, like SERCH, gives #NAME?, but ISNUMBER turns that error into FALSE without showing it. If every row says FALSE, test the inner formula on its own.
Questions
How do I check if a cell contains some text?
Combine it with SEARCH: ISNUMBER(SEARCH("pro",D2)) is TRUE when D2 contains "pro" in any case. SEARCH returns a position number when it finds the text, and an error when it doesn't.
How do I count cells that hold real numbers?
COUNT(C2:C11) does exactly that: 7 on this sheet. With ISNUMBER, SUMPRODUCT(--ISNUMBER(C2:C11)) gives the same 7 and lets you add more conditions.
Why is ISNUMBER FALSE for a cell that shows 41?
The 41 is stored as text, usually from an import. Convert it with VALUE, or retype it, and ISNUMBER turns TRUE. On this sheet that's Jonas's age in C3, while the same 41 typed in C8 is a real number.
Sources
Official documentation the facts on this page were checked against.