VALUE
Convert text that represents a number into a real number.
Spreadsheet editor
Spreadsheet editor
Syntax
=VALUE(text)
Returns: Number Arguments
| Argument | Required | Description |
|---|---|---|
| text | Yes | The text you want to convert to a number, either in quotation marks or as a reference to a cell that holds the text. It can use any number, date, or time format Excel recognizes. |
About
Use VALUE when numbers arrive as text, often after importing from a CSV, a database, or a web page. Those text numbers won't add up correctly until they're converted. In most cases Excel converts text to numbers on its own inside a formula, so VALUE exists mainly for compatibility with other spreadsheet programs and for times when you want the conversion to be clear and explicit.
For text with currency symbols or thousands separators that follow a specific region, NUMBERVALUE gives you more control. To go the other way and format a number as text, use TEXT. Pair VALUE with TRIM or SUBSTITUTE to strip out stray characters before converting.
Exercises using VALUE
Examples
Pull a number out of a product code
Spreadsheet editor
Strip a unit label before converting
Spreadsheet editor
Count days between two text dates
Spreadsheet editor
Watch out for
Text that isn't really a number
If the string contains letters or symbols Excel can't read as a number, VALUE returns a #VALUE! error.
→ Clean the text first. Use TRIM to drop extra spaces or SUBSTITUTE to remove stray characters before converting.
Hidden spaces from imports
Imported data often carries leading, trailing, or non-breaking spaces that block the conversion.
→ Wrap the reference in TRIM, like =VALUE(TRIM(A2)). For stubborn non-breaking spaces (CHAR(160)), use CLEAN or SUBSTITUTE to remove them first.
Using VALUE when you don't need it
Excel usually converts text numbers on its own inside math formulas, so VALUE can be redundant.
→ Skip it when a simple math step already coerces the text, like =A2*1 or =A2+0. Use VALUE when you want the conversion to be explicit.
Locale-specific formats
VALUE follows your system's regional settings, so a date or decimal format from another region may fail.
→ For text with separators or currency symbols from another region, use NUMBERVALUE, which lets you set the decimal and group separators yourself.