VALUE
Converts text that represents a number into a numeric value.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=VALUE(text)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
text | any | Required | — |
Remarks
- Parsing uses locale-aware invariant number parsing from the function context.
- Date and time text becomes its serial (
VALUE("12/31/00")is 36891; two-digit years 00-29 are 2000-2029, 30-99 are 1930-1999). - Booleans and numbers are first coerced to text, then parsed.
- Errors are propagated unchanged.
Error cases
- Other non-numeric text, and
NaN/infspellings, return#VALUE!.
Examples
Convert decimal text into a number.
Formula =VALUE("1234.56")
Expected result 1234.56
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Convert a percent string to its numeric fraction.
Formula =VALUE("25%")
Expected result 0.25
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Convert the text representation of zero.
Formula =VALUE("0")
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
An unrecognized numeric string returns an error.
Formula =VALUE("unknown")
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Parse decimal text
Formula =VALUE("12.5")
Expected result 12.5
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Invalid numeric text
Formula =VALUE("abc")
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Does VALUE coerce arbitrary text like TRUE/FALSE?
VALUE parses numeric, date and time text only; other strings return #VALUE!.