Excel DATE Formula
In this Article
This Excel Tutorial demonstrates how to use the Excel DATE Function in Excel to create a date, with formula examples.
DATE Function Description:
The DATE Function Returns a date from year, month, and day.
|Month & Day = 0||=DATE(C5,D5,E5)||11/30/2014|
|Minus One Month||=DATE(C8,D8,E8)||11/1/2014|
|Plus 60 Days||=DATE(C9,D9,E9)||3/1/2015|
Syntax and Arguments:
The Syntax for the DATE Formula is:
Function Arguments ( Inputs ):
year – A year greater than 1900 (1904 for Macs). Example: 2010.
month – The corresponding number of the month you wish to use (1-12). The month number can also be negative or greater than 12. Example: 2.
day – The day of the month you wish to use (1-31). The day number can also be negative or greater than 31. Example: 18.
Use the DATE Function to create a date serial number. Just enter numbers corresponding to the month, day, and year. You can actually enter months greater than 12 or less than 1 and Days greater than 31 and less than 1. Entering month=13 will set the date to January of the following year. Month=0 will set the date to December of the previous year.
=date(2016,0,0) returns 11/30/2015.
From this starting point you can add or subtract months and days.
=date(2016,13,1) returns 1/1/2017
=date(2016,-5,1) returns 7/1/2015
The result of the DAY Function may appear as a serial number. Change the cell Number Formatting to Short Date to display the serial number as a date:
DATE Examples in VBA
You can also use the DATE function in VBA. Type:
For the function arguments (year, etc.), you can either enter them directly into the function, or define variables to use instead.
Return to the List of all Functions in Excel
How to use the DATE Function in Excel:
To use the AND Excel Worksheet Function, type the following into a cell:
After entering it in the cell, notice how the AND formula inputs appear below the cell:
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=DATE(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
For more information about the DATE Formula visit the