Text to number
| A | |
|---|---|
| 1 | Text |
| 2 | 42 |
Formula: C2: =VALUE("42")+1
Result: 43
The quoted 42 is text; VALUE turns it into a number so the addition works.
VALUE with worked examples you can test in the live grid. The argument details are in the Excel guide.
The arguments and common errors are covered in the VALUE Excel guide; check the function help in Google Sheets for its own argument list.
| A | |
|---|---|
| 1 | Text |
| 2 | 42 |
Formula: C2: =VALUE("42")+1
Result: 43
The quoted 42 is text; VALUE turns it into a number so the addition works.
| A | |
|---|---|
| 1 | Text |
| 2 | 12% |
Formula: C2: =VALUE("12%")
Result: 0.12
The percent sign is understood, giving 0.12.
| A | |
|---|---|
| 1 | Text |
| 2 | abc |
Formula: C2: =VALUE("abc")
Result: #VALUE!
Text that is not a number cannot be converted, which gives an error.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in D2: =VALUE("1250")
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Text | Other | Result | |
| 2 | Alice Johnson | alice johnson | 1250 | |
| 3 | [email protected] | [email protected] | ||
| 4 | extra spaces | |||
| 5 | SKU-2026-0415 | |||
| 6 | iced coffee, tea, sugar | |||
| 7 | Order 417 shipped |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page