Excel tutorial
/

Functions

Intermediate

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.

Книга1 - Excel
—☐✕
D2fx=ДАТА(A2;B2;C2)
ABCDE
1YearMonthDayDate
2202531515.03.2025
320259101.09.2025
42024123131.12.2024
520261707.01.2026
6
Готово
Three separate columns become one real date: the values in column D can now be subtracted, sorted and filtered

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.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
D2fx
ABCDE
1YearMonthDayDate
220253151
3202591
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.

Книга1 - Excel
—☐✕
D2fx=ДАТА(A2;B2;C2)
ABCDE
1YearMonthDayDate
2202531515.03.2025
3202591
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.

Книга1 - Excel
—☐✕
C2fx=МЕСЯЦ(A2)
ABCDE
1DateYearMonthDay
215.03.20252025315
301.09.2025202591
431.12.202420241231
5
Готово
Example 1: YEAR, MONTH and DAY split a date into plain numbers — handy for grouping with SUMIFS or a PivotTable
Книга1 - Excel
—☐✕
C2fx=ДАТА(ГОД(A2);МЕСЯЦ(A2)+1;0)
ABCDE
1Sale dateMonth startMonth endQuarter
215.03.202501.03.202531.03.20251
320.02.202501.02.202528.02.20251
414.10.202501.10.202531.10.20254
5
Готово
Example 2: day 0 is the last day of the previous month. MONTH(A2)+1 together with 0 gives the end of the current month (28 or 29 in February)
Книга1 - Excel
—☐✕
B2fx=ДАТА(ЛЕВСИМВ(A2;4);ПСТР(A2;6;2);ПРАВСИМВ(A2;2))
ABCD
1Text (exported)Real date
22025.03.1515.03.2025
32025.11.0202.11.2025
42024.12.3131.12.2024
5
Готово
Example 3: the text “2025.03.15” is cut into parts with LEFT, MID and RIGHT and rebuilt as a real date with DATE

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.
Книга1 - Excel
—☐✕
B5fx=ДАТА(25;3;15)
ABCD
1FormulaResult
2DATE(2025,14,1)01.02.2026
3DATE(2025,3,0)28.02.2025
4DATE(2025,1,32)01.02.2025
5DATE(25,3,15)15.03.1925
6
Готово
Month 14 → February of the next year, day 0 → end of the previous month, January 32 → February 1. The last row is the two-digit-year trap: 1925

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.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1YearMonthDayDateMonth no.
22025315
3202591
420241231
5
6
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

120 / 154