Excel stores values as either text or numeric values, so, for example, if you attempt to use the text value "10" in an addition, multiplication, or other numeric operation, you will get an error.
Therefore, if you want to extract a numeric value from a text string, you need to convert this to a number, before Excel will be able to recognise it as a numeric value. The Value function can be used to do this.
The Excel VALUE Function converts a text string into a numeric value.
The syntax of the function is:
where the text argument is a text string that can be translated into a number. This may be presented in any of the numeric, date or time formats that are recognised by Excel.
The following spreadsheet shows five examples of the Value function, used to convert five different text string representations of numbers into numeric values.
Formulas:
|
Results:
|
The examples above show how the Excel Value function successfully interprets the different formats of numbers. For example,
See the Microsoft Office website for further details and examples of the Excel Value function.
If you get an error from the Excel Value function, this is most likely to be the #VALUE! error:
#VALUE! | - | Occurs if the supplied text argument cannot be interpreted as an Excel numeric value. |