Example 1
Build a date from three numbers
D2 =DATE(A2,B2,C2)
Result: 15-Mar-2025
The result is serial number 45731. The date format on D2 shows it as 15-Mar-2025.
D2 =DATE(A2,B2,C2) returns 15-Mar-2025
Builds a real Excel date from a year, a month and a day. It is the safe way to create a date inside a formula.
Syntax
=DATE(, , )
All versions of Excel.
Try it
Edit the formula in D2 or change the inputs. The sheet recalculates as you type.
D2 =DATE(A2,B2,C2) returns 15-Mar-2025
DATE turns three numbers into one date. Excel stores a date as a serial number, the count of days since 1 January 1900, so DATE returns a number such as 45731. Format the cell as a date and it reads 15-Mar-2025. DATE is the dependable way to put a date inside a formula, because it doesn't depend on how your computer reads text such as "3/4/2025".
DATE(25,3,15) is in 1925.DATE(2025,14,1) is 1 February 2026, and DATE(2025,0,1) is 1 December 2024.DATE(2025,3,0) is 28 February 2025, the day before 1 March. DATE(2025,3,1)-1 gives the same date.The roll-over is what makes DATE useful for date arithmetic. To get the first day of next month, add one to the month and set the day to 1: =DATE(YEAR(A2),MONTH(A2)+1,1). If A2 is in December, the month becomes 13 and DATE moves to January of the next year without any extra IF. To get the last day of a month, ask for day 0 of the following month: =DATE(YEAR(A2),MONTH(A2)+1,0). EOMONTH does the same job in fewer characters.
YEAR, MONTH and DAY take a date apart; DATE puts the parts back together. A common pattern is to take a date apart, change one part and rebuild it. =DATE(YEAR(A2)+1,MONTH(A2),DAY(A2)) moves a date forward one year. If A2 is 29 February, the result is 1 March in a non-leap year, so use EDATE with 12 months when month-ends matter.
Typing 15/3/2025 into a formula as text works only if your regional settings read it that way, and the same workbook can break on a colleague's machine. DATE(2025,3,15) always means the same day. When you build dates from columns of year, month and day numbers, DATE is also the right tool: joining them with & produces text, not a date.
If a cell shows 45731, the formula is right and the cell just needs a date number format.
2025. Use four digits. A value from 0 to 1899 is added to 1900, so 25 becomes 1925, not 2025.1 to 12. Values outside that range roll over: 13 is January of the next year, and 0 is December of the previous year.1 to 31. Values outside the month roll over too: 0 is the last day of the previous month, and 32 in January is 1 February.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
D2 =DATE(A2,B2,C2)
Result: 15-Mar-2025
The result is serial number 45731. The date format on D2 shows it as 15-Mar-2025.
D2 =DATE(A2,B2,C2) returns 15-Mar-2025
Example 2
D2 =DATE(A2,B2,C2)
Result: 01-Feb-2026
Month 14 of 2025 is February 2026, so the result is 1-Feb-2026. DATE carries the extra months into the next year.
D2 =DATE(A2,B2,C2) returns 01-Feb-2026
Example 3
B2 =DATE(YEAR(A2),MONTH(A2)+1,1)
Result: 01-Dec-2025
YEAR and MONTH take A2 apart, one is added to the month, and DATE rebuilds it: 1-Dec-2025. In December the month would be 13, and DATE would move on to January.
B2 =DATE(YEAR(A2),MONTH(A2)+1,1) returns 01-Dec-2025
Example 4
B2 =DATE(YEAR(A2),MONTH(A2)+1,0)
Result: 29-Feb-2024
Asking for day 0 of March gives the last day of February. 2024 is a leap year, so the answer is 29-Feb-2024.
B2 =DATE(YEAR(A2),MONTH(A2)+1,0) returns 29-Feb-2024
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In D2, build a real date from the year, month and day in row 2. Fill it down to D4.
Answer in D2, then it fills down to D4.
=DATE(25,3,15) returns 15 March 1925. Write the full year, or build it with 2000+A2 when the source column holds two-digit years.& makes text, not a date. =A2&"-"&B2&"-"&C2 can look right but won't sort, subtract or feed NETWORKDAYS. Use DATE(A2,B2,C2).45731, apply a date format (Home, Number format, Short Date) rather than changing the formula.=DATE(2025,2,30) quietly returns 2 March 2025, so a typo in the input can pass unnoticed.Use `=DATE(A2,B2,C2)` with the year, month and day cells. Don't join them with `&`, because that returns text. Format the result cell as a date.
Excel stores dates as serial numbers. Select the cell and apply a date format from the Number group on the Home tab, and 45731 shows as 15-Mar-2025.
Use day 0 of the next month: `=DATE(YEAR(A2),MONTH(A2)+1,0)`. EOMONTH is shorter: `=EOMONTH(A2,0)`.
Yes. Add to the month or year argument: `=DATE(YEAR(A2),MONTH(A2)+3,DAY(A2))` moves three months on. Near the end of a month, EDATE is safer, because DATE can spill into the following month.
There is no 30 February, so Excel counts two days past the end of February and returns 2 March 2025. DATE never returns an error for an oversized day.
DATE is taught in Dates and financial modelling, lesson 2: Building and splitting dates. Each lesson is a short, graded exercise like the one above.