In Excel: select the cells, click the green-triangle warning icon and choose Convert to Number — or convert by formula with =VALUE(A2), the double unary --A2, or A2*1.
On this page7
Select the affected cells — text numbers sit left-aligned and usually carry a green triangle in the corner.
Click the yellow warning icon next to the selection and choose Convert to Number.
For large ranges, select the column and run Data ▸ Text to Columns ▸ Finish — Excel re-parses every cell as a number in one pass.
Alternative bulk trick: type 1 in an empty cell, copy it, select the range, then Paste Special ▸ Multiply.
Or add a helper column with =VALUE(A2) (or --A2), fill down, and paste the results back as values.
Verify: values align right and SUM over the range is no longer 0.
What this does
Numbers stored as text look like numbers but Excel treats them as strings: they align left by default, SUM ignores them, and lookups against real numbers fail. Converting rewrites the stored value as a true number. Changing the cell format to Number is not enough — the format changes how a value displays, not what is stored, so existing text stays text until you re-enter or convert it. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “converting text to number excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a data step that keeps your analysis trustworthy into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
A2:A4 contain 10, 20 and 30 imported as text — left-aligned, each flagged with a green triangle. =SUM(A2:A4) returns 0. Select A2:A4, click the yellow warning icon, choose Convert to Number: the values jump to the right and SUM now returns 60. Formula alternative: =VALUE(A2) in B2 returns the real number 10. Text numbers arrive constantly from CSV exports, ERP systems and copied web pages; until you convert them, sums, lookups and charts fail silently instead of erroring. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Here is the takeaway for “converting text to number excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
Common mistakes
- Formatting the cells as Number and expecting existing text to convert — the stored value does not change until you re-enter or convert it.
- Wondering why
SUMreturns 0:SUMsilently skips text, so a whole column of text numbers sums to nothing. - Importing a US-format CSV on a comma-decimal system: 1.5 arrives as text or gets misread as a date, and VALUE follows your regional decimal separator.
- Ignoring invisible characters — non-breaking spaces and currency symbols from web copies block conversion; clean with
TRIMandSUBSTITUTEfirst. - Looking for the green triangle in Google Sheets — it does not exist there; Sheets usually auto-coerces text numbers in math, and when it does not, use VALUE or Format ▸ Number.
Frequently asked questions
Why does SUM return 0 over my numbers?
They are stored as text. SUM ignores text values entirely. Convert them with the warning icon, Text to Columns, or =VALUE().
What does the green triangle mean?
It is Excel's error check flagging a number stored as text. Click the cell, then the yellow icon, then Convert to Number.
Does this work the same in Google Sheets?
Sheets has no green triangle and usually auto-coerces text numbers in calculations. When it does not, use =VALUE(A2) or Format ▸ Number ▸ Number.
Other ways people ask this
People reach this page typing “converting text numbers to numbers in excel”, “converting text to a number in excel”, “converting text to numbers in excel” and “converting text document to excel”, among other phrasings; whichever wording you used, the fix above is the one you want.
Why do people search for this in so many different ways?
Because the same task has many names. “converting text numbers to numbers in excel”, “converting text to a number in excel”, “converting text to numbers in excel” all point at the one operation explained on this page, which is why they all lead here.