Sub topic 4
What Happens When the Day Does Not Exist
This chapter assumes you know basic Excel formulas, relative and absolute references, column-based financial model layouts, and functions such as YEAR, MONTH, DAY, and SUMIFS. The focus here is the day-of-month problem that appears when a date moves into a shorter month.
The day-of-month problem
EDATE shifts a date by a whole number of months. It tries to preserve the original day number.
For example, shifting 15 January by one month produces 15 February. However, shifting 31 January by one month cannot produce 31 February because February has no 31st day. Excel handles this by clamping the result to the last day of the target month.
Clamping means replacing an unavailable day with the final valid day in that month.
| Formula | Result |
|---|---|
| `=EDATE(DATE(2025,1,15),1)` | 15-Feb-2025 |
| `=EDATE(DATE(2025,1,31),1)` | 28-Feb-2025 |
| `=EDATE(DATE(2024,1,31),1)` | 29-Feb-2024 |
| `=EDATE(DATE(2025,1,31),2)` | 31-Mar-2025 |
The third result shows that leap years matter. February 2024 has 29 days, so 31 January 2024 shifted by one month becomes 29 February 2024.
EDATE calculates from the original date
A common error is to assume that EDATE repeatedly shifts the already clamped result. That assumption can produce the wrong result when you build a schedule.
For example:
=EDATE(DATE(2025,1,31),1) -> 28-Feb-2025
=EDATE(DATE(2025,1,31),2) -> 31-Mar-2025The second formula calculates two months after 31 January. It does not calculate one month after the intermediate result of 28 February. Therefore, it returns 31 March.
If you instead build a row by chaining formulas, the behavior depends on the date in the previous cell:
D4: =DATE(2025,1,31)
E4: =EDATE(D4,1)
F4: =EDATE(E4,1)Here, E4 is 28 February, and F4 is 28 March. The original 31st day has been lost because the second formula uses the clamped date in E4.
Why this matters for model schedules
Clamping is useful for events such as monthly payments, anniversaries, or maturities. A payment scheduled for the 31st can occur on the last day of February when February has no 31st.
For a payment number stored in D8, use the original drawdown date in $C$4:
Inputs: C4 = 31-Jan-2025
D8 = 1
E8 = 2
F8 = 3
Payment dates:
D9: =EDATE($C$4,D8) -> 28-Feb-2025
E9: =EDATE($C$4,E8) -> 31-Mar-2025
F9: =EDATE($C$4,F8) -> 30-Apr-2025The absolute reference $C$4 prevents the input date from moving when the formula is copied. The period counter changes across columns.
The Yes branch is theoretical for this example. A valid Excel date cannot contain 31 February, so the actual result follows the No branch.
EDATE versus EOMONTH
Use EDATE when the schedule represents an event on a day of the month. Use EOMONTH when the schedule represents a reporting period ending at month-end.
| Modeling need | Recommended function | Reason |
|---|---|---|
| Monthly payment from a 31 January drawdown | `EDATE` | Preserves the event day where possible and clamps when needed |
| Monthly reporting period end | `EOMONTH` | Always returns the actual last day of the month |
| First day of the month | `EOMONTH(date,-1)+1` | Finds the prior month-end, then adds one day |
For a financial model timeline, use EOMONTH for period-end columns. Chained EDATE formulas can carry a clamped day into later periods. EOMONTH avoids that drift because every result is explicitly a month end.
Exercise
What does =EDATE(DATE(2025,1,31),2) return, and why is =EDATE(EDATE(DATE(2025,1,31),1),1) different?
Show answer
The first formula returns 31-Mar-2025 because it calculates two months from the original 31 January. The chained formula returns 28-Mar-2025 because the first shift clamps to 28 February, and the second shift preserves that clamped day.