Date Function in Excel


In this blog post we will learn about 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.


Once we click on DATE option as highlighted above, we will get the function argument dialog box as shown 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.


Now in column D, we will use DATE function which converts three separate values from column A, B and C into a single value which represents a date.

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.


Once we hit enter button, we will see the output of DATE function as shown in below image.

To apply DATE function in all the remaining cells in column D, we have to just copy the DATE function which we applied in cell D2 and paste it in remaining cells. We can see the result in all the remaining cells as shown in below imag.


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

Related Topics..

Fill Up, Down, Right & Left in Excel

Excel Shortcuts Ctrl A to Ctrl Z

Select all cells highlighted with specific color at a time

How to Remove Duplicate Entries from Multiple Columns in Excel

Excel Pivot Table

Exploring Font Colors and Fill Colors in Excel

Insert Multiple Rows in Excel Based On Cell Value

Doughnut Chart in Excel

Conditional Formatting:Highlighting Above Average and Below Average Values

Bold, Italic and Underline Commands from Font Group