Excel Convert String to Number

There are two ways to “excel convert string to number”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: wrap the string in =VALUE(A1) — or force the same coercion with =A1*1 or the double-unary =--A1 — to make Excel read it as a real, calculable number instead of a string.

On this page7
▤Annotated stepsExcel
1

Try the direct conversion first: =VALUE(A2), or the shorthand =A2*1, or the double-unary =--A2 — this alone handles plain digits, thousands commas and a leading currency symbol.

2

If that returns #VALUE!, the string hides a character VALUE cannot read — usually a non-breaking space (CHAR(160)) from a web or PDF paste. Strip it: =VALUE(TRIM(CLEAN(SUBSTITUTE(A2,CHAR(160)," ")))).

3

For other stray text such as a trailing unit or letter, remove it with an extra SUBSTITUTE before VALUE runs.

4

To convert a whole column at once without a helper formula, select it and run Data ▸ Text to Columns ▸ Finish — Excel re-parses every cell as a number in one pass.

5

Paste the converted formula results back over the originals with Paste Special ▸ Values if you need plain numbers instead of live formulas.

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

What this does

This covers converting a general text string — one built by a formula (LEFT, MID, CONCAT), typed with a leading apostrophe, or pasted from another system — into a genuine number, as distinct from the "numbers stored as text" CSV-import case with its green-triangle warning icon. VALUE() is forgiving: in a US-English workbook it happily parses digits, a leading +/- sign, a decimal point, thousands commas and a currency symbol, so =VALUE("$1,250.75") returns 1250.75 with no cleanup at all. It only returns #VALUE! when the string carries a character that is not part of a recognized number format — a letter, or, most commonly, an invisible non-breaking space (CHAR(160)) that web and PDF pastes leave behind. Those need stripping first with CLEAN, TRIM and SUBSTITUTE. =A1*1 and the double-unary =--A1 coerce the same way through implicit arithmetic and fail on the same genuinely non-numeric characters. Text to Columns re-parses an entire column at once instead of one formula per cell. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. Treat “excel convert string to number” 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 holds the text string "1250.75" — a number stored as text, typed with a leading apostrophe so it sits left-aligned and SUM treats it as 0. =VALUE(A2) returns the real number 1250.75, and the shorthand =A2*1 gives the same result; either one now sums, compares and charts correctly. The value even survives extra formatting: =VALUE("$1,250.75") also returns 1250.75, because VALUE understands the currency symbol and thousands comma in a US-English workbook. Reach for this whenever a string built by a formula, typed with a leading apostrophe, or pasted in from another system needs to behave like a real number in SUM, comparisons or charts instead of silently acting like text. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. For “excel convert string to number”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

Common mistakes

  • Assuming VALUE cannot handle commas or currency symbols and wrapping every conversion in SUBSTITUTE — in a US-English workbook =VALUE("$1,250.75") already returns 1250.75, so the extra cleanup is wasted effort.
  • Chasing a #VALUE! error visually when the culprit is an invisible non-breaking space (CHAR(160)) from a web paste — clean it with CLEAN, TRIM and SUBSTITUTE(A2,CHAR(160),"") first.
  • Reformatting the cell as Number without converting the value — formatting only changes the display; the stored string does not become numeric until VALUE, *1 or Text to Columns actually runs.
  • Forgetting the decimal separator depends on locale — VALUE parses "1.250,75" differently on a comma-decimal system than "1,250.75" on a period-decimal one, so a file that opens fine on one machine can error on another.
  • Running Text to Columns without checking the Column data format step, which can silently convert a numeric-looking ID like a zip code into a number and drop its leading zeros.

Frequently asked questions

What is the difference between =VALUE(A1) and =A1*1?

Both coerce a numeric string into a real number and both handle the same formats, including thousands commas and currency symbols in a US-English workbook. VALUE is the explicit, documented function; =A1*1 is a compact shorthand that does the same job.

Why does VALUE return #VALUE! on my string?

The string contains a character that is not part of a recognized number format — most often an invisible non-breaking space (CHAR(160)) from a web or PDF paste, or a stray letter. Strip it with CLEAN, TRIM and SUBSTITUTE, then VALUE succeeds.

Do I need SUBSTITUTE to remove the thousands commas first?

No — VALUE reads thousands commas and a leading currency symbol natively in a US-English workbook, so =VALUE("$1,250.75") returns 1250.75. Reach for SUBSTITUTE only for characters VALUE genuinely cannot parse, like CHAR(160).

Can I convert an entire column without writing a formula?

Yes — select the column and run Data ▸ Text to Columns ▸ Finish; Excel re-parses every cell as a number in one pass without needing a helper column.

Other ways people ask this

On the way here you may have searched this as “convert number to string in excel”, “excel vba range convert to number”, “how to convert comma to number in excel” and “how to convert to number in excel in bulk” — 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. “convert number to string in excel”, “excel vba range convert to number”, “how to convert comma to number in excel” all point at the one operation explained on this page, which is why they all lead here.