Excel DATE, YEAR, MONTH and DAY functions: build a date and split it into parts
DATE builds a date from a year, month and day; YEAR, MONTH and DAY split a date into parts. Month start, month end, quarter and fixing text dates — with examples.
Every table with dates raises two questions: how to enter a date correctly and how to pull the year, month or day out of it. DATE answers the first one; YEAR, MONTH and DAY answer the second.
For example, accounting software or a bank statement often exports the year, month and day in separate columns — DATE joins them into one real date. In a sales report you take the month out of every sale and total by month — that is MONTH’s job.
None of the four functions depends on your computer’s regional settings, so formulas built with them work the same on any PC.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Year | Month | Day | Date | |
| 2 | 2025 | 3 | 15 | 15.03.2025 | |
| 3 | 2025 | 9 | 1 | 01.09.2025 | |
| 4 | 2024 | 12 | 31 | 31.12.2024 | |
| 5 | 2026 | 1 | 7 | 07.01.2026 | |
| 6 |
Syntax
=ДАТА(year; month; day) — builds a date from a year, month and day.
=ГОД(serial_number), =МЕСЯЦ(serial_number), =ДЕНЬ(serial_number) — return the year (2025), month (1–12) or day (1–31) of a date as a number.
- year — always use four digits: 2025.
- month — the month number. Above 12, Excel carries the extra months into the next year: month 14 is February of the next year.
- day — the day. More days than the month has rolls into the next month; 0 means the last day of the previous month.
- serial_number — a real date: a cell containing a date or a formula that returns one (
TODAY(),DATE(...)).
Entering a DATE formula step by step
1
Select the cell for the result — for example, D2.
2
On the Формулы tab, click Дата и время and pick DATE from the list.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Year | Month | Day | Date | |
| 2 | 2025 | 3 | 15 | 1 | |
| 3 | 2025 | 9 | 1 | ||
| 4 | |||||
| 5 |
3
In the arguments window, click A2 for Year, B2 for Month and C2 for Day, then click OK. The faster way is to type =ДАТА(A2;B2;C2) straight into the cell.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Year | Month | Day | Date | |
| 2 | 2025 | 3 | 15 | 15.03.2025 | |
| 3 | 2025 | 9 | 1 | ||
| 4 | |||||
| 5 |
4
Fill the formula down (fill handle or Ctrl + D). If you see a number like 45731 instead of a date, nothing is wrong — just apply a date format: Число group → Short Date.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Date | Year | Month | Day | |
| 2 | 15.03.2025 | 2025 | 3 | 15 | |
| 3 | 01.09.2025 | 2025 | 9 | 1 | |
| 4 | 31.12.2024 | 2024 | 12 | 31 | |
| 5 |
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Sale date | Month start | Month end | Quarter | |
| 2 | 15.03.2025 | 01.03.2025 | 31.03.2025 | 1 | |
| 3 | 20.02.2025 | 01.02.2025 | 28.02.2025 | 1 | |
| 4 | 14.10.2025 | 01.10.2025 | 31.10.2025 | 4 | |
| 5 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Text (exported) | Real date | ||
| 2 | 2025.03.15 | 15.03.2025 | ||
| 3 | 2025.11.02 | 02.11.2025 | ||
| 4 | 2024.12.31 | 31.12.2024 | ||
| 5 |
Pro level: “overflow” is a feature, not a bug
DATE quietly fixes months and days that run past their limits. That lets you fit tricky date maths into one formula:
=ДАТА(ГОД(A2);МЕСЯЦ(A2)+3;ДЕНЬ(A2))— the date 3 months later (the year changes by itself).=ДАТА(ГОД(A2)+1;МЕСЯЦ(A2);ДЕНЬ(A2))— exactly one year later. 29.02.2024 becomes 01.03.2025.=ДАТА(ГОД(СЕГОДНЯ());МЕСЯЦ(B2);ДЕНЬ(B2))— an employee’s birthday this year.=СУММЕСЛИМН(C:C;A:A;">="&ДАТА(2025;3;1);A:A;"<"&ДАТА(2025;4;1))— March sales only. Building the criteria dates with DATE keeps the formula working in any Excel language.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Formula | Result | ||
| 2 | DATE(2025,14,1) | 01.02.2026 | ||
| 3 | DATE(2025,3,0) | 28.02.2025 | ||
| 4 | DATE(2025,1,32) | 01.02.2025 | ||
| 5 | DATE(25,3,15) | 15.03.1925 | ||
| 6 |
Try it in the simulator
Type =ДАТА(A2;B2;C2) in D2 and fill it down to D4. Then type =МЕСЯЦ(D2) in E2 and fill it down. The simulator has no date format, so column D shows a serial number like 45731 — that is the date itself.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Year | Month | Day | Date | Month no. | |||||||||||||||||||
| 2 | 2025 | 3 | 15 | |||||||||||||||||||||
| 3 | 2025 | 9 | 1 | |||||||||||||||||||||
| 4 | 2024 | 12 | 31 | |||||||||||||||||||||
| 5 | ||||||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.