Date Function in Excel
When we have Year, Month and Day as a three separate values then with the help of DATE function we can convert them into single value which will represent a particular date.
Where to find DATE function on Excel Screen:
DATE function can be found under “Date & Time Function” category under “Formulas” tab and under “Function Library” group as shown in below image:
Once we click on “Date & Time” category, we can see list of various Date & Time Functions available in excel. DATE function is highlighted in blue in below image.
Syntax of DATE Function:
The Syntax of DATE function is as below:
=DATE(year, month, day)
Arguments of DATE Function:
To use the DATE function, we have to provide three arguments:
year: In this argument we have to enter a number from 1900 or 1904 (depending upon workbook’s date system) to 9999 which represents a year.
month: In this argument we have enter a number from 1 to 12 which represents a month of the year.
day: In this argument we have to enter a number from 1 to 31 which represents a day of the month.
Example of DATE Function:
Let’s learn about using this DATE function with the help of simple example. For this we have prepared a dummy data as shown in below image. In this raw data, we have entered “Years” in column A, “Months” in column B and “Days” in column C.
For this, select cell in which we want to apply DATE function. In this case we have selected cell “D2”. In cell “D2” we will apply DATE Function as shown in below image.
In this way we can use DATE function in excel.
We can also change the date formats into desired format. Click here to learn more about changing date format in excel .
Comments
Post a Comment