Excel Formula: Get Date From Given Day Month And Year
If you have a table which contains three columns, which are day, month, and year, how can you create the Excel valid dates based on these days, months and years in Excel.
Syntaxt and Arguments
|Year: a number between 1 and 4-digit number that indicates the year of date.|
If the number is between 0-1900, Excel adds 1900 to the year number automatically. For example, the year number is 10, the date of the formula result will be shown as 1910.
If the number is between 1900 and 9999, the number is the actual year in the result.
|Month: a number that indicates the month of date.|
When the number is between 1 and 12, it is the actual month in the result.
If the number is greater than 12, it adds the number of months to the first month of the specified year. For instance, DATE(2019,14,21) returns 2/21/2020.
If the number is negative, Excel will subtract the absolute value of month plus 1 from the first month of the specified year. For instance, DATE(2011,-5,1) returns 7/1/2011.
|Day: a number that indicates the day of date.|
If the number is greater than the total number of days in the specified month, Excel will add the number of days to the first day of the specified month.
For example, DATE(2019,3,32) will return the date 2/3/2019.
If the number is negative, Excel will subtract the absolute value of day plus 1 from the first day of the month specified.
For example, DATE(2020,4,-2) will return the date 3/29/2020.
The formula returns to a valid date in Excel.
How this formula works
To create a date based on the given year, month and day in cell B3, C3, and D3, please use below formula:
Or directly type the numbers into the function
Press Enter key then drag auto fill handle over cells to apply this formula.
DATE function: creates a date based on given year, month and day numbers.
- Count days of month
This tutorial provides formulas to count the total days of the month based on given date.
- Count days until expiration date
To count the days between today and each expiration date in Excel by formula
- Display current date or time
This tutorial provides formulas to show the current date or time in Excel.
- Create weekly date range
In this tutorial, it provides a formula to quickly get the weekly date range in Excel.
- Excel WEEKNUM Function
Returns the week number of the given date in a year
- Excel WORKDAY Function
Adds workdays to the given start date and returns a workday
- Excel MONTH Function
The MONTH is used to get the month as integer number (1 to 12) from date
- Excel DAY Function
DAY function gets the day as a number (1 to 31) from a date
- Excel NOW Function
Get the current time and date