Excel Convert Text to Number Function

“excel convert text to number function” comes up constantly, so this page leads with the exact answer, and only then explains the detail. Everything works in Excel on Windows and Mac and maps almost one-to-one to Google Sheets. Copy the answer above and get back to work, or read on to turn a one-off fix into something you never have to look up again.

Exact answer

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.

Annotated stepsExcel
1

Select the affected cells — text numbers sit left-aligned and usually carry a green triangle in the corner.

2

Click the yellow warning icon next to the selection and choose Convert to Number.

3

For large ranges, select the column and run Data ▸ Text to Columns ▸ Finish — Excel re-parses every cell as a number in one pass.

4

Alternative bulk trick: type 1 in an empty cell, copy it, select the range, then Paste Special ▸ Multiply.

5

Or add a helper column with =VALUE(A2) (or --A2), fill down, and paste the results back as values.

6

Verify: values align right and SUM over the range is no longer 0.

=VALUE(A2)
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

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. For “excel convert text to number function”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected formula change, and only then apply the same setup to the full sheet. 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 is what makes a data step that keeps your analysis trustworthy useful in real work: repeatable, auditable, and not dependent on memory or luck.

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. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.

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. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. If you take one thing from this page on “excel convert text to number function”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.

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 SUM returns 0: SUM silently 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 TRIM and SUBSTITUTE first.
  • 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

On the way here you may have searched this as “text to number excel function” and “excel function convert number to text” — it is all the same task, and this page is the single, complete answer to it.

Why do people search for this in so many different ways?

Because the same task has many names. “text to number excel function”, “excel function convert number to text” all point at the one operation explained on this page, which is why they all lead here.