How to use the DATEVALUE Function in Excel

In this article,  we will learn how to use the DATEVALUE function in excel.
DATEVALUE function & TIMEVALUE function in excel are very useful function when processing Date & Time data in excel. Date value as text cannot be processed as date in excel. Excel considers date as a serial number, So any date value in a cell which infact has to be in number format to be readable by excel.
While processing date values in excel having large data. First thing recommended is to convert date_text to serial number using DATEVALUE function.
DATEVALUE function convert date as text to date as serial number.
Syntax:

=DATEVALUE(date_text)

date_text : date in text. Date as number will return #VALUE error by the function.
Let’s see some examples using the DATEVALUE function
0067
Here we have a Date value as text and we need to get these values in serial number which is readable by the excel.
For first cell we will provide the date_text to the function directly instead of giving cell reference.
Use the formula

=DATEVALUE( "6/8/2018" )

Here datevalue is provided as a string to the function.
Press Enter.
0068
Now for using cell reference as an input to the function

Use the formula:

=DATEVALUE(A3)

Here A3 is cell reference to the function
0070
The function returns the serial number for the date in the number format.
Now copy the formula to other cells using the shortcut Ctrl+ D.
0071
These returned serial number by the function is readable by excel as dates. The function returns the #VALUE error if the date is not in text format. The function doesn’t consider already date format value.

IF you need to see these dates in date format. Select the dates and using the format cell option as shown in the below image.
0072
As we select the short date option from the drop down result, We get the dates as date format which is also readable by Excel.
0073

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube