How to Fix Numbers Stored as Text in Excel

Numbers stored as text look like numbers, but Excel treats them as text. The symptoms are familiar: SUM adds up to 0, SUMIF/COUNTIF find nothing, sorting puts β€œ100” before β€œ20”, and lookups fail on values that look identical. The fix is not to retype the numbers β€” it is to find out why they are text, then convert them in a way that matches that cause.

Verification note: These steps describe standard Excel behaviour. They have not yet been verified against a live Excel 365 file for this site, and no sample workbook is published yet. Work on a copy of your file and check a few converted values before converting a whole column.

Quick test: is it a number or text?

In a blank cell, type (replacing A2 with your problem cell):

=ISNUMBER(A2)

You can also use =ISTEXT(A2) as the reverse check. Other clues: text numbers often align left by default while real numbers align right, and a small green triangle may appear in the corner of the cell β€” but alignment and triangles are clues, not proof. ISNUMBER is the test.

What type of text number is it?

What it looks likeMost likely causeFix to try first
Plain digits, e.g. 1234Imported or pasted as text, or entered after the cell was formatted as TextText to Columns (below)
Digits with leading/trailing spacesSpaces from an import or copy-pasteClean spaces first, then convert (see below)
Digits with a non-breaking space (CHAR 160)Web or ERP copy-pasteSUBSTITUTE for CHAR(160), then convert β€” TRIM alone does not remove it
Digits with a currency symbol or thousands separatorsFormatted text, not a formatted numberRemove the symbol/separators in a helper column, then convert; check the result
A date that looks like text, e.g. 01/02/2026Date stored as text, or a DMY/MDY mismatchSee date formats β€” do not treat it as a plain number
A formula returning text, e.g. a formula that returns "" or a quoted numberThe formula produces text by designFix the formula to return a number, or wrap it in VALUE() β€” see below

Fix 1: Text to Columns (for a whole column)

  1. Select the column containing the text numbers.
  2. Go to Data β†’ Text to Columns.
  3. Choose Delimited, click Next, click Next again.
  4. Under β€œColumn data format”, choose General.
  5. Click Finish.

This is the most reliable bulk fix for plain text numbers. If it does nothing, the values almost certainly contain something extra β€” spaces, non-breaking spaces, or a symbol β€” so go to Fix 3 first, then try again.

Fix 2: VALUE() (for single cells or formulas)

For one cell, or inside a formula, use:

=VALUE(A2)

VALUE converts text that looks like a number into a real number. If VALUE returns an error, the text is not a plain number β€” it contains a space, a non-breaking space, a symbol, or a date pattern that needs a different fix. Do not wrap every problem in VALUE and hope; find the extra character first.

Fix 3: clean spaces and invisible characters first

For space-type problems, the standard cleaning combination is:

=TRIM(CLEAN(SUBSTITUTE(A2,CHAR(160)," ")))

After cleaning, convert the result with Text to Columns or VALUE, and check it with ISNUMBER. For pasted text (not yet in a spreadsheet), you can clean it first with the Data Cleaner.

After the fix: check before you trust it

Related: if a formula returns #VALUE!, text numbers are one of the most common causes β€” run the ISNUMBER check on every input to that formula first.

← Back to home