Sub topic 3
EDATE: the same day, shifted by n months
This chapter covers EDATE, the function that moves a date forward or back by whole months and keeps the day number. It assumes you can write basic Excel formulas with relative and absolute references, and that you know DATE, YEAR, MONTH and DAY. The previous chapter covered EOMONTH, so the two functions are compared here only where it helps.
What EDATE does
The syntax is:
=EDATE(start_date, months)start_dateis a date, usually a cell reference or aDATE(...)result.monthsis the number of months to move. Positive values go forward, negative values go back, and zero returns the same month.
EDATE returns a serial number, not formatted text. A model cell holding =EDATE(DATE(2025,1,15),1) shows 45703 until you give the cell a date format such as dd-mmm-yyyy. The value is correct either way, but an unformatted date row is hard to audit.
=EDATE(DATE(2025,1,15),1) -> 15-Feb-2025
=EDATE(DATE(2025,1,15),-1) -> 15-Dec-2024
=EDATE(DATE(2025,1,15),12) -> 15-Jan-2026
=EDATE(DATE(2025,1,15),0) -> 15-Jan-2025The year rolls over by itself. You never need to test whether the month number passes 12.
How it differs from adding days
Adding a fixed number of days to a date does not move it by a month, because months have 28 to 31 days.
| Formula | Result | Comment |
|---|---|---|
| `=DATE(2025,1,15)+30` | 14-Feb-2025 | 30 days later, not one month later |
| `=EDATE(DATE(2025,1,15),1)` | 15-Feb-2025 | Same day number, next month |
| `=DATE(2025,1,15)+365` | 15-Jan-2026 | Correct only by luck, and wrong across a leap day |
| `=EDATE(DATE(2025,1,15),12)` | 15-Jan-2026 | Correct in every year |
Use EDATE whenever the business meaning is "the same date next month" or "twelve months from now".
How the months argument is handled
EDATE reads the date as year, month and day. It adds months to the month number and carries any overflow into the year. It then keeps the original day number if that day exists in the target month.
Do not output the line above; here is the real diagram:
Two details follow from this:
- Truncation. A fractional
monthsvalue is cut toward zero, not rounded.=EDATE(DATE(2025,1,15),1.9)returns 15-Feb-2025.=EDATE(DATE(2025,1,15),-1.9)returns 15-Dec-2024. - Whole dates only. Any time-of-day portion of
start_dateis dropped. The result is always a whole serial number.
When the day does not exist
If the original day number is missing from the target month, EDATE does not return an error. It returns the last day of the target month.
=EDATE(DATE(2025,1,31),1) -> 28-Feb-2025
=EDATE(DATE(2025,1,30),1) -> 28-Feb-2025
=EDATE(DATE(2024,1,31),1) -> 29-Feb-2024
=EDATE(DATE(2025,1,31),2) -> 31-Mar-2025This is called clamping. The last line shows its most important property: the calculation always starts from the date you supply. Moving two months from 31 January lands on 31 March, because 31 exists in March. It does not go through a clamped February first.
| Start date | Months | Result | Reason |
|---|---|---|---|
| 31-Jan-2025 | 1 | 28-Feb-2025 | 31 does not exist in February, so it clamps |
| 31-Jan-2024 | 1 | 29-Feb-2024 | Leap year, so February has 29 days |
| 31-Jan-2025 | 2 | 31-Mar-2025 | March has a 31st |
| 31-Jan-2025 | 3 | 30-Apr-2025 | April has 30 days |
| 31-Jan-2025 | 13 | 28-Feb-2026 | Clamps again in the following February |
| 29-Feb-2024 | 12 | 28-Feb-2025 | 29 February does not exist in 2025 |
The chaining trap
Clamping is harmless when each result is calculated from the original date. It causes drift when each result is calculated from the previous result.
Suppose the loan is drawn on 31 January 2025 and the payment column uses the prior column as its start date:
D5: =DATE(2025,1,31)
E5: =EDATE(D5,1) -> 28-Feb-2025
F5: =EDATE(E5,1) -> 28-Mar-2025
G5: =EDATE(F5,1) -> 28-Apr-2025After February, the day number is stuck at 28. The true monthly dates are 31-Mar and 30-Apr. Each later date is wrong, and nothing in the sheet flags it.
The fix is to anchor every date to the same original cell and change only the month count:
Inputs: C4 = loan drawdown date (31-Jan-2025)
Row 8: D8: =1 E8: =D8+1 (period counter, copy right)
Row 15 (payment date): D15: =EDATE($C$4,D8) copy right
Results: 28-Feb-2025 31-Mar-2025 30-Apr-2025 31-May-2025The $C$4 reference stays fixed, and only the counter in row 8 changes as you copy right. The same rule applies to the timeline columns in the next chapter. The correct model date for period n is a function of the start input and n, not of the cell next to it.
Where EDATE belongs in a model
EDATE preserves the day, so it suits dates that belong to a calendar day by contract or schedule:
- Loan payment dates on a fixed day of the month.
- Lease or subscription renewals.
- Employee anniversaries and review dates.
- Maturity dates:
=EDATE(start_date, term_in_months). - Bond coupon dates and option expiry dates, when the convention is "same day".
It does not suit the period columns of a monthly timeline. Those columns represent whole calendar months, and each should end on the true last day of its month. The next chapter covers EOMONTH, which does that. The later chapter on choosing between the two functions gives the full decision rule.
Maturities and the day-before convention
A 12-month term that starts on 15 January 2025 matures on 15 January 2026 under EDATE. Some contracts end the day before, on 14 January. Handle that explicitly and keep the convention visible:
Inputs: C4 = start date, C5 = term in months, C6 = 1 if the term ends the day before, otherwise 0
Maturity date: =EDATE($C$4,$C$5)-$C$6A switch cell such as C6 documents the convention. A hard-coded -1 buried in the formula does not.
Common errors and how to read them
| Symptom | Likely cause | Fix |
|---|---|---|
| Cell shows `45703` | Cell has a General or Number format | Apply a date format such as `dd-mmm-yyyy` |
| `#VALUE!` | `start_date` is text that Excel cannot read as a date, or `months` is text | Convert with `DATE`, or check the input cell with `ISNUMBER` |
| `#NUM!` | The result would fall before the first valid date, or the date is outside the supported range | Check the sign of `months` and the start date |
| Dates stuck on the 28th | Chained `EDATE` after a clamp | Anchor to the original date |
| Result is a month off | A zero-based counter was used when a one-based counter was intended | Decide whether period 1 is the start date or one month after it |
A blank start_date cell is treated as 0, which is not a useful date. Add an input check so a missing start date is caught early, not silently turned into 1900.
A compact worked example
This example builds a 6-payment schedule from a drawdown date and a payment interval of one month. It uses a single input and anchors every date to it.
Inputs: C4 = 31-Jan-2025 (drawdown date)
C5 = 6 (number of payments)
Row 8 (payment number): D8: =1 E8: =D8+1 copy right to I8
Row 15 (payment date): D15: =EDATE($C$4,D8) copy right to I15
Row 16 (days since previous event):
D16: =D15-$C$4
E16: =E15-D15 copy right to I16| Payment | Date | Days since previous |
|---|---|---|
| 1 | 28-Feb-2025 | 28 |
| 2 | 31-Mar-2025 | 31 |
| 3 | 30-Apr-2025 | 30 |
| 4 | 31-May-2025 | 31 |
| 5 | 30-Jun-2025 | 30 |
| 6 | 31-Jul-2025 | 31 |
The day counts differ because the months differ. That is expected. If the model computes interest on an actual-days basis, these day counts drive it.
Summary of rules
EDATE(date, n)keeps the day number and moves the month byn.- A missing day clamps to the last day of the target month, with no error.
- Clamping applies to each result separately, so calculate from the original date, never from the previous result.
monthsis truncated toward zero, so fractions are ignored.- Format the result as a date, because the function returns a serial number.
Exercise
A loan is drawn on 30-Nov-2024. Payment n is calculated as =EDATE($C$4,n), where C4 holds the drawdown date. What dates do payments 1, 3 and 4 fall on? Then explain why a column that used =EDATE(previous cell,1) would give a different answer for payment 4.
Show answer
Payment 1 is 30-Dec-2024. Payment 3 is 28-Feb-2025, because 30 does not exist in February 2025 and the result clamps to the last day. Payment 4 is 30-Mar-2025, because the calculation starts again from 30-Nov-2024 and March has a 30th. The chained version gives 28-Mar-2025 for payment 4. After payment 3 clamps to 28-Feb, adding one more month keeps day 28, so the drift carries on in every later month.
Exercise
What does =EDATE(DATE(2024,2,29),12) return, and what does =EDATE(DATE(2024,2,29),48) return?
Show answer
The first returns 28-Feb-2025, because 2025 is not a leap year, so day 29 clamps to the last day of February. The second returns 29-Feb-2028, because 2028 is a leap year and day 29 exists.
Exercise
A contract starts on 15-Mar-2025 and runs for 18 months, ending the day before the anniversary. Write the maturity formula using inputs in C4 (start date) and C5 (term in months), and give the result.
Show answer
=EDATE($C$4,$C$5)-1. EDATE gives 15-Sep-2026, and subtracting one day gives 14-Sep-2026.