Excel provides several text functions to perform your desired text-related tasks easily and swiftly. One of them is a text function called: VALUE. Today we are going to show you how to use the Excel VALUE function. For this session, we are using Excel 2019, feel free to use yours (at least version 2003).
Practice Workbook
You are welcome to download the practice workbook from the link below.
Excel VALUE Function
1. Basics of VALUE
The VALUE function is categorized under the TEXT functions in Excel. It converts a given text string that represents a number into a numeric value.
Summary
Converts a text string that represents a number to a number.
Syntax
VALUE(text)
Arguments
text – The text value to convert into a number.
Versions
Workable from Excel 2003.
2. Uses of VALUE
Depending on the circumstances you need to use the VALUE function. Here we are listing a few common uses of VALUE.
I. Text to Number
By mistake (sometimes on purpose) a number can be formatted as a text value. We can hardly perform the generic numeric operations then. So, we need to modify the formation.
Here we have listed a few numeric values that are formatted as text. To convert the value into a number all we need to provide the value within VALUE.
=VALUE(B4)
B4 is the cell reference of the value. The formula will return the value in number format.
Here 100 from the Output column is in number format. Convert the other values as well using the VALUE function.
II. Currency to Number
We can convert the currency into a plain number. For example, we have listed a few currency values.
Now let’s convert these into plain numeric values. The formula will be the following one
=VALUE(B4)
Here we have inserted the value from inside the VALUE function. This will convert the currency into a number.
No matter which currency it is, the VALUE function will convert the currency into a numeric value.
III. Date – Time to Number
The date and time value can be converted into a number format using VALUE. Here we have listed a few date and time values in different formats.
Let’s convert these values into the number format.
Insert the cell reference that contains the value in the VALUE function.
Here we have provided the time value 7:30 PM within VALUE using its cell reference and the formula returned the result.
Now let’s use the cell reference of 19:31:45, you have understood that it’s also a time format.
We have found the numeric value for the time value.
Similarly, we can convert the date value into a numeric value. Use the cell reference for the date inside the VALUE function.
Here we have found the number for the date. Excel starts date counting from 01/01/1990, and numbers it as 1. Then 02/01/1990, numbers as 2 and so on. Thus the 18 September 2021 becomes 44457 and the formula returns us that value.
No matter how the date is stored (definitely a recognized format) the VALUE function will convert that into the number format.
IV. Use VALUE with LEFT
Sometimes you may find data with a combination of numbers and text strings. To retrieve the number and make sure that the value is in the number format we need to use another helping function along with VALUE.
Here we have listed several items along with the quantity at the start of the string. We will fetch the quantity value.
Since the numeric values are on the left of the string, we will use the LEFT function.
This function retrieves a specific number of characters from the left of a string. To know about it, visit the article: LEFT.
Now our formula will be
=VALUE(LEFT(B4,2))
We have found the desired result using this formula.
Let’s help you to understand the mechanism. First of all, the LEFT function extracts the 2 characters from the string, and then VALUE converts that into a number.
Do the same for the rest of the values.
V. An Advanced Use of VALUE Function
Let’s observe an advanced use of the VALUE function. Don’t worry, compared to the earlier examples it’s going to be a bit complex, but the operation itself is a very simple one.
Here we have a dataset of a few employees with their entry and exit time. The duration of their work time is found by subtracting the exit and entry time.
Let’s say that HR wants to check whether the employees are working the entire 8 hours or anything less than that. To check that we need to use the IF function. Check the IF article, in case you want to know about the function.
The formula is going to be the following one
=IF(E4>=VALUE("8:00"),"Complete","Short")
Here we have inserted “8:00” within the VALUE and converted it then checked the logic. When the duration value (E4) is greater or equal to 8:00 the formula will return “Complete”, otherwise “Short”.
Here the duration is greater than 8 hours so the output is “Complete”. When the duration is less than 8 hours, the output will be “Short”.
Let’s write the formula for the rest of the values and find the result.
Quick Notes
- Apart from the cell reference, we can directly insert the values within VALUE.
It will return the value as a number.
- Don’t hesitate to insert a negative numeric value (less than 0) within the VALUE
You will find the negative number.
- There are several date-time functions (NOW, TODAY) in Excel. You can insert any of those within VALUE.
Here we have inserted NOW in VALUE and it will convert the time to a number.
- If we use a text string,
we will find the #VALUE error.
- Just for your information, if we insert the text string without double quotes
then we will find the #NAME? error.
Conclusion
That’s all for today. We have tried showing how you can use the VALUE function. You can use the function to convert numeric text into number format. Hope you will find this helpful.
Feel free to comment if anything seems difficult to understand. Let us know any of your VALUE function-related scenarios where you have stuck, we are ready to help.