SheetsLessons
Logical function

ISNUMBER function in Google Sheets

ISNUMBER returns TRUE if a value is a number. On its own it checks data types, and wrapped around SEARCH it becomes the go-to "does this cell contain…" test.

Syntax

=ISNUMBER(value)
value
The value or cell to check.

Practice ISNUMBER

Task 1 of 2

This column was typed by hand and some entries aren't real numbers. Return TRUE in B2 if A2 holds a number.

B2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

ISNUMBER examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABC
1Raw nameSKUNote
2  maya   PATEL ELC-0427-NYRefund requested
3leo rossiFUR-1180-TXShipped
4AVA KIMOFC-0093-CARefund issued
Messy imported data
FormulaResultWhat it shows
=ISNUMBER(SEARCH("refund", C2))TRUESEARCH found "refund", so ISNUMBER returns TRUE.
=ISNUMBER(SEARCH("refund", C3))FALSENot found: SEARCH errors and ISNUMBER returns FALSE.
=ISNUMBER(B2)FALSEA SKU is text.
=ISNUMBER(VALUE(MID(B2, 5, 4)))TRUEThe middle part of the SKU converts cleanly to a number.

Tips and common mistakes

  • Numbers stored as text return FALSE. That makes ISNUMBER a quick way to detect them after an import.
  • Dates are numbers in Google Sheets, so ISNUMBER returns TRUE for them.

Related functions