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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Client | Start | Term (months) | End | |
| 2 | Aziz | 15.01.2025 | 12 | 15.01.2026 | |
| 3 | Dilnoza | 31.01.2025 | 1 | 28.02.20251 | |
| 4 | Javohir | 10.03.2025 | 6 | 10.09.2025 | |
| 5 | Malika | 30.04.2025 | 3 | 30.07.2025 | |
| 6 |
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)orTODAY(). - 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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Client | Start | Term (months) | End | |
| 2 | Aziz | 15.01.2025 | 12 | ||
| 3 | Dilnoza | 31.01.2025 | 1 | ||
| 4 | |||||
| 5 |
2
Enter B2 for Start_date and C2 for Months, then click OK.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Client | Start | Term (months) | End | |
| 2 | Aziz | 15.01.2025 | 12 | 46037 | |
| 3 | Dilnoza | 31.01.2025 | 1 | ||
| 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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | End (General) | End (Short Date) | ||
| 2 | 46037 | 15.01.2026 | ||
| 3 | ||||
| 4 | ||||
| 5 |
4
Fill the formula down — each client gets their own end date.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Date | Month end | Next month end | Month start | Days | |
| 2 | 15.03.2025 | 31.03.2025 | 30.04.2025 | 01.03.2025 | 31 | |
| 3 | 20.02.2025 | 28.02.2025 | 31.03.2025 | 01.02.2025 | 28 | |
| 4 | 05.02.2024 | 29.02.2024 | 31.03.2024 | 01.02.2024 | 29 | |
| 5 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Invoice | Date | Due date | |
| 2 | F-101 | 05.03.2025 | 10.04.2025 | |
| 3 | F-102 | 28.03.2025 | 10.04.2025 | |
| 4 | F-103 | 02.04.2025 | 10.05.2025 | |
| 5 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Payment | Chain: EDATE(prev,1) | Correct: EDATE(start,n) | |
| 2 | 0 | 31.01.2025 | 31.01.2025 | |
| 3 | 1 | 28.02.2025 | 28.02.2025 | |
| 4 | 2 | 28.03.2025 | 31.03.2025 | |
| 5 | 3 | 28.04.2025 | 30.04.2025 | |
| 6 |
Pro level: reporting periods in one formula
- Month start and end (payroll period):
=КОНМЕСЯЦА(A2;-1)+1and=КОНМЕСЯЦА(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.
| 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 | Employee | Hired | Probation end | Days in month | ||||||||||||||||||||
| 2 | Aziz | 45688 | ||||||||||||||||||||||
| 3 | Dilnoza | 45332 | ||||||||||||||||||||||
| 4 | Javohir | 45762 | ||||||||||||||||||||||
| 5 | ||||||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.