Excel tutorial
/

Functions

Intermediate

Excel EDATE and EOMONTH: add months, find month end and calculate due dates

EDATE adds months to a date and EOMONTH returns the last day of a month. Contract end dates, payment due dates, month start, quarter end and the day-31 trap.

Deadlines are often set in months, not days: a 12-month contract, a 24-month warranty, a 3-month probation. Adding 30 to a date is wrong here — months have 28 to 31 days.

EDATE adds a number of months to a date and returns the same day: 15.01.2025 + 12 months = 15.01.2026. EOMONTH returns the last day of a month: reporting periods, “pay by the end of the month”, payroll periods.

Both accept negative months too, so they count back into the past.

Книга1 - Excel
—☐✕
D2fx=ДАТАМЕС(B2;C2)
ABCDE
1ClientStartTerm (months)End
2Aziz15.01.20251215.01.2026
3Dilnoza31.01.2025128.02.20251
4Javohir10.03.2025610.09.2025
5Malika30.04.2025330.07.2025
6
Готово
Contract end dates. Note (1): January 31 + 1 month = February 28 — February has no 31st, so EDATE snaps to the month end

Syntax

=ДАТАМЕС(start_date; months) — the same day n months later (or earlier).

=КОНМЕСЯЦА(start_date; months) — the last day of the month n months away.

  • start_date — the starting date: a cell, DATE(2025,1,15) or TODAY().
  • months — the number of months. Positive goes forward, negative goes back, 0 is the same month. Decimals are truncated: 1.9 counts as 1 month.

In EOMONTH, 0 is the end of the current month, 1 the end of next month, -1 the end of last month.

Entering EDATE step by step

1

Select D2. On the Формулы tab, click Дата и время → EDATE.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
D2fx
ABCDE
1ClientStartTerm (months)End
2Aziz15.01.202512
3Dilnoza31.01.20251
4
5
Готово

2

Enter B2 for Start_date and C2 for Months, then click OK.

Книга1 - Excel
—☐✕
D2fx=ДАТАМЕС(B2;C2)
ABCDE
1ClientStartTerm (months)End
2Aziz15.01.20251246037
3Dilnoza31.01.20251
4
5
Готово

3

If you get a number like 46037, give column D a date format (Число → Short Date). EDATE and EOMONTH always return a date serial number.

Книга1 - Excel
—☐✕
B2fx=ДАТАМЕС(45672;12)
ABCD
1End (General)End (Short Date)
24603715.01.2026
3
4
5
Готово

4

Fill the formula down — each client gets their own end date.

Книга1 - Excel
—☐✕
D2fx=КОНМЕСЯЦА(A2;-1)+1
ABCDEF
1DateMonth endNext month endMonth startDays
215.03.202531.03.202530.04.202501.03.202531
320.02.202528.02.202531.03.202501.02.202528
405.02.202429.02.202431.03.202401.02.202429
5
Готово
Example 1: EOMONTH gives the month end, next month’s end, the month start (last month’s end + 1) and the number of days. February 2024 has 29 days — a leap year
Книга1 - Excel
—☐✕
C2fx=КОНМЕСЯЦА(B2;0)+10
ABCD
1InvoiceDateDue date
2F-10105.03.202510.04.2025
3F-10228.03.202510.04.2025
4F-10302.04.202510.05.2025
5
Готово
Example 2: “pay by the 10th of the following month”. Both March invoices are due 10.04, the April one on 10.05
Книга1 - Excel
—☐✕
C5fx=ДАТАМЕС($C$2;A5)
ABCD
1PaymentChain: EDATE(prev,1)Correct: EDATE(start,n)
2031.01.202531.01.2025
3128.02.202528.02.2025
4228.03.202531.03.2025
5328.04.202530.04.2025
6
Готово
Example 3: loan payments from January 31. In the chain, February’s 28th sticks — March and April also land on the 28th. The correct way always counts from the start date

Pro level: reporting periods in one formula

  • Month start and end (payroll period): =КОНМЕСЯЦА(A2;-1)+1 and =КОНМЕСЯЦА(A2;0).
  • Days left in the month: =КОНМЕСЯЦА(A2;0)-A2.
  • Quarter end: =КОНМЕСЯЦА(A2;ОСТАТ(3-МЕСЯЦ(A2);3)) — 31.03 for February, 30.06 for May.
  • Probation end (3 months, last day included): =ДАТАМЕС(A2;3)-1.
  • Monthly total: with any date of the month in E1, =СУММЕСЛИМН(C:C;A:A;">="&КОНМЕСЯЦА(E1;-1)+1;A:A;"<="&КОНМЕСЯЦА(E1;0)) adds up that month’s sales.

Note: EOMONTH returns a date without time (00:00). If your dates also contain times, use "<"&EOMONTH(E1,0)+1 so evening sales on the last day aren’t dropped.

Try it in the simulator

Column B holds hire dates built with DATE. Type =ДАТАМЕС(B2;3) in C2 (probation end) and =ДЕНЬ(КОНМЕСЯЦА(B2;0)) in D2 (days in that month), then fill both down. The simulator shows dates as serial numbers.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1EmployeeHiredProbation endDays in month
2Aziz45688
3Dilnoza45332
4Javohir45762
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

121 / 154