formulastreak

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

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.

Member sign-ups · edit F2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultF2 = TRUE
ABCDEF
1EmailNameAgePlanJoinedAge is number
2mara@example.comMara34Pro12 Jan 2026TRUE
3jonas@example.orgJonas41Basic15 Jan 2026FALSE
4MARA@example.comMara O.34Pro20 Jan 2026TRUE
5priya@example.netPriyaTeam2 Feb 2026FALSE
6tomas@example.comTomásn/abasic9 Feb 2026FALSE
7elif@example.orgElif29Pro17 Feb 2026TRUE
8jonas@example.orgJonas Lind41Basic23 Feb 2026TRUE
9kenji@example.netKenji52Enterprise3 Mar 2026TRUE
10sofia@example.comSofia23Team8 Mar 2026TRUE
11leo@example.orgLeo17Basic14 Mar 2026TRUE

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. 1. ISNUMBER: Is TRUE if C2 is 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

ArgumentRequiredWhat it is
valueYesThe 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.

Practise ISNUMBER on a live sheet

Lesson 34, Check and convert types (Unit 9, Data quality), has 6 graded exercises, checked instantly, with steps and hints when you're stuck. Pro