Numbers

How to Convert Text to Numbers in Excel (Numbers Stored as Text)

By the DecodingPro teamUpdated 3 min read

Quick answer

Select the cells and click the yellow warning icon, then "Convert to Number". If there is no icon, type 1 in an empty cell, copy it, select your numbers, and use Paste Special, then Multiply. If the numbers still will not add up, they contain hidden spaces: clean them with =VALUE(TRIM(SUBSTITUTE(A2,CHAR(160)," "))).

When a SUM shows 0, a number will not sort properly, or a VLOOKUP says it cannot find a value that is plainly there, the usual cause is numbers stored as text. They look right but Excel treats them like words. This guide shows how to recognise the problem and four ways to fix it.

How to tell a number is really text

  • It sits against the left edge of the cell, where text goes (numbers go right by default).
  • A small green triangle appears in the corner, with a yellow warning icon when you select the cell.
  • The status bar shows only "Count" and not "Sum" for a selected range.
  • =ISNUMBER(A2) returns FALSE.

Fix 1: Convert to Number (quickest)

Select the cells. Click the yellow warning icon that appears, then choose Convert to Number. Done.

Fix 2: Paste Special, Multiply (works without the icon)

  1. Type 1 in any empty cell and copy it (Ctrl+C).
  2. Select your text numbers.
  3. Choose Home, Paste, Paste Special, Multiply, OK.

Multiplying by 1 forces Excel to read each value as a number. Delete the helper cell afterwards.

Fix 3: Text to Columns

Select the column, choose Data, Text to Columns, and click Finish without changing anything. Excel re-reads each cell and converts what it can.

Fix 4: the VALUE formula

=VALUE(A2)

Fill it down, copy the results and Paste Special, Values, over the originals. VALUE returns #VALUE! for any cell it cannot read, which makes the stubborn ones easy to find.

When none of these work: hidden characters

Data copied from websites, PDFs and other systems often carries invisible characters. The usual culprit is the non-breaking space (character 160), which TRIM does not remove. This formula handles it, along with ordinary spaces and non-printing characters:

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

Other things that stop a number being a number:

In the cellProblemFix
1,234.50 in a region that uses 1.234,50The thousands and decimal marks are swappedUse Find and Replace, or Text to Columns with the right separators
$1,200 typed as textA currency symbol inside text=VALUE(SUBSTITUTE(SUBSTITUTE(A2,"$",""),",",""))
'123A leading apostrophe forces textFix 1 or Fix 2 removes it
1O0The letter O instead of the digit 0Find and Replace, then check by eye: this is a typo, not a format
12345678901234567890More than 15 digitsExcel keeps only 15 significant digits; keep such IDs as text on purpose

Tip: IDs, phone numbers, postcodes and account numbers are supposed to be text. Do not convert them: leading zeros would be lost. See fixing phone numbers in Excel.

Stop it coming back

Format the column as Text before you paste IDs into it, and as Number or Currency before you paste amounts. When you import a CSV, use Data, From Text/CSV and set each column type in the preview instead of letting Excel guess.

When the file is large or mixed

Columns with a mixture of real numbers, text numbers and typos are slow to fix by hand. DecodingPro reads each column, fixes the safe cases and flags values like 1O0 for you to confirm.

Try it on your own file

You start with 100 free credits. Every change is logged, and anything unclear is flagged, never guessed.

Fix a spreadsheet

Questions people ask

Why does my SUM show 0?

SUM ignores text. If every number in the range is stored as text, the total is 0. Convert them with Fix 1 or Fix 2.

Will converting remove my decimal places?

No. The decimals stay. Only the display format controls how many are shown.

Can I convert an entire sheet at once?

You can select the whole used range and use Convert to Number or Paste Special, Multiply. Do not do it on columns that hold IDs or phone numbers.

Keep reading

01Excel data cleaningHow to Clean Messy Excel Data: A Step-by-Step GuideThe fixed order that stops one fix from undoing another, with the formulas for every step.10 min read02Text and numbersHow to Keep Leading Zeros in Excel and CSV (ZIP Codes, IDs)Why Excel turns 02134 into 2134, how to get the zeros back, and how to stop it happening when you open a CSV.5 min read03CSV and importsHow to Clean a CSV File Before Importing It Into a CRMSeven fixes that prevent duplicate contacts, rejected rows and scrambled characters, and the 10-row test to run first.4 min read04DatesHow to Fix Dates in Excel and CSV Files (Mixed Formats)Text dates, day-month swaps, two-digit years and the one rule that makes dates safe to share.8 min read05Phone numbersHow to Fix Phone Numbers in Excel: Format and Country CodesLeading zeros, 9.19E+11, country codes and the international format that every system accepts.6 min read06DuplicatesHow to Remove Duplicates in Excel Without Losing DataExact, near and partial duplicates: decide what counts, mark before you delete, keep the best record.6 min read07DuplicatesHow to Find and Highlight Duplicates in ExcelFind repeats safely first: highlight them, count them, keep the first one, and spot the near-duplicates Excel does not see.3 min read08NamesHow to Standardize Names in Excel: Proper Case and ExceptionsWhat PROPER gets wrong, how to protect names that are already right, and how to flip "Smith, John" into "John Smith".4 min read09Email addressesHow to Fix Email Typos in Excel: gmial.com, .con and Missing @The typos that make campaigns bounce, and the formulas and checks that fix them without guessing.4 min read10Email addressesHow to Clean an Email List Before You Send a CampaignA five-step routine that removes the avoidable bounces from a list without deleting anyone you should keep.3 min read11NamesHow to Split Full Names into First and Last Name in ExcelFlash Fill, Text to Columns and formulas for splitting names, and the names that trip each one up.4 min read12Text cleanupHow to Remove Extra Spaces in Excel (TRIM, CLEAN and Non-Breaking Spaces)Why TRIM sometimes does nothing, and the one formula that removes every kind of stray space.3 min read13Text cleanupHow to Remove Special Characters and Line Breaks in ExcelThe characters you cannot see, the smart quotes you can, and the exact formula or shortcut that removes each one.4 min read15Excel data cleaningHow to Clean Data with Power Query in Excel (Step by Step)Record your cleaning steps once and replay them on every new file, without formulas and without touching the original data.4 min read16Comparing dataHow to Compare Two Lists in Excel and Find What Is MissingFind the names, IDs or emails that are in one list and not the other, with formulas that scale.3 min read17CSV and importsFix Garbled Characters and Broken CSV Imports (UTF-8)UTF-8, delimiters, leading zeros, quotes and a checklist that makes a file safe to import.7 min read18Data entryData Entry Accuracy: How to Check, Measure and Improve ItWhat the research says about error rates, why proofreading fails and the checks that actually work.9 min read