Numbers imported as text won’t sum and sort wrong — often shown by a little green triangle. VALUE, or a quick math nudge like multiplying by 1, converts them back to real numbers.
The example
Text “1,234” becomes the number 1234.
| A | B | |
|---|---|---|
| 1 | Text | Number |
| 2 | "1,234" | 1234 |
| 3 | " 56 " | 56 |
The formula
The formula:
How it works
How it works:
VALUE(text)parses a string that looks like a number into a real number.- A math nudge does the same:
=A2*1,=A2+0, or the double-unary=--A2all coerce text to a number. - Wrap in
TRIMfirst if the text has stray spaces:=VALUE(TRIM(A2)). - To convert a whole column at once, Paste Special → Multiply by 1, or use Text to Columns.
The green triangle in a cell’s corner flags “number stored as text.” Select the range, click the warning icon, and choose Convert to Number for a no-formula fix. For currency or locale formats, VALUE respects your regional separators; for fixed formats, NUMBERVALUE lets you specify them explicitly.
Try it: interactive demo
Text that looks numeric.
Variations
Math nudge
Quickest:
Trim then convert
Strip spaces:
Specify format
Custom separators:
Pitfalls & errors
Non-numeric text errors. VALUE returns #VALUE! if the string isn’t a recognizable number — clean it first.
Hidden spaces & characters. Imported text may carry CHAR(160) (non-breaking space); wrap in SUBSTITUTE/TRIM/CLEAN before VALUE.
Locale matters. Decimal and thousands separators follow your region; use NUMBERVALUE to set them explicitly.
Practice workbook
Frequently asked questions
How do I convert text to a number in Excel?
Why won't my imported numbers sum?
VALUE returns #VALUE! — what's wrong?
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