Check if a Value is a Number or Text

Excel Formulas › Information

All versionsISNUMBERISTEXT

“Numbers stored as text” is the silent cause of broken SUMs and failed lookups. ISNUMBER and ISTEXT reveal what a cell really holds, so you can find and fix the offenders.


Quick formula: to test whether A2 is a real number:
=ISNUMBER(A2)
TRUE means a genuine number Excel can do math with; FALSE means text (even if it looks like a number).

Functions used (tap for the full reference guide):

The example

Spot the value that looks numeric but is text.

AB
1ValueISNUMBER
242TRUE
342 (as text)FALSE
4AppleFALSE

The formula

The type test in B2:

=ISNUMBER(A2) // real 42 → TRUE; "42" text → FALSE

How it works

These functions read the cell’s actual type:

  1. ISNUMBER(A2) is TRUE only for real numbers — values you can add, average, or look up numerically.
  2. A number typed with a leading apostrophe, imported as text, or left-aligned is text, so ISNUMBER returns FALSE even though it reads “42.”
  3. ISTEXT(A2) is the opposite — TRUE for text.
  4. Use them to audit a column: =SUMPRODUCT(--ISTEXT(A2:A100)) counts how many “numbers” are secretly text.

Fix text-numbers fast: multiply by 1 or add 0 (=A2*1), use VALUE(A2), or select the column and Data → Text to Columns → Finish to convert the whole lot at once.

Try it: interactive demo

Live demo

Type a value; see whether Excel would treat it as a number or text.

Variations

Is it text?

The mirror test:

=ISTEXT(A2)

Count text-numbers in a column

Find the offenders:

=SUMPRODUCT(--ISTEXT(A2:A100))

Convert text to a number

Coerce with math or VALUE:

=A2*1 or =VALUE(A2)

Pitfalls & errors

Left-aligned “numbers” are the tell. Real numbers right-align by default; text-numbers left-align. ISNUMBER confirms it.

ISNUMBER is also handy for “contains” tests. ISNUMBER(SEARCH(...)) uses it to convert “found a position” into TRUE/FALSE.

Dates and times are numbers. ISNUMBER returns TRUE for them, since Excel stores them as serial numbers — not a bug.

Practice workbook

📊
Download the free Check if a Value is a Number or Text practice workbook
A mixed column with live ISNUMBER/ISTEXT, the count-text-numbers audit and conversion tricks, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I check if a cell contains a number in Excel?
Use =ISNUMBER(A2). It returns TRUE only for genuine numbers and FALSE for text, including numbers that are stored as text.
How do I find numbers stored as text?
Test with ISTEXT, or audit a column with =SUMPRODUCT(--ISTEXT(A2:A100)) to count how many entries are text. Text-numbers also left-align by default.
How do I convert text that looks like a number into a real number?
Multiply by 1 (=A2*1), add 0, use =VALUE(A2), or select the range and run Data > Text to Columns > Finish.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Check if a cell has an error · Check if a cell contains text · Clean up messy text

Function references: ISNUMBER · ISTEXT · ISNONTEXT