Sub topic 11
Dated Events: Payments, Anniversaries and Maturities
This chapter assumes you can build the monthly timeline from the earlier chapters. That means period start in row 5, period end in row 6, days in row 7 and a period counter in row 8, all driven by one start-date input. It also assumes you are comfortable with SUMIFS and with relative versus absolute references.
Period columns answer the question "which month is this?". Events answer a different one: "on which date does something happen?" A loan payment, a contract anniversary and a maturity all fall on contractual dates. This chapter shows how to calculate those dates with EDATE and how to place them into the timeline you already have.
Events and periods are different things
A timeline column is a month, and it always ends on a month end. An event is a single date, and it keeps the day number written in the contract. If a loan is drawn on 31-Jan-2025 and repaid monthly, the payments fall on the 31st where possible, on the 30th in April and on the 28th in February.
This gives two rules for the rest of the chapter:
- Calculate each event date with EDATE, anchored on the original date.
- Do not assume the n-th event sits in the n-th column. Test each event date against the period start and period end, and let the timeline pick up the events that fall inside it.
Anchor on the original date
Suppose C4 holds the drawdown date, 31-Jan-2025. The payment date for payment number n is:
Inputs: C4 = loan drawdown date (31-Jan-2025)
Payment n: =EDATE($C$4,n)
=EDATE($C$4,1) -> 28-Feb-2025
=EDATE($C$4,2) -> 31-Mar-2025
=EDATE($C$4,3) -> 30-Apr-2025
=EDATE($C$4,4) -> 31-May-2025Every result is calculated from 31-Jan-2025 and the number of months. EDATE clamps the day to the last day of the target month when needed, and it forgets the clamp for the next calculation. March returns to the 31st because it never sees February's 28th.
The tempting alternative is to step from the previous payment:
Chained (do not use for contractual dates):
D22: =EDATE($C$4,1)
E22: =EDATE(D22,1)
F22: =EDATE(E22,1)The table shows what happens to a 31-Jan drawdown.
| Payment n | Anchored: EDATE($C$4,n) | Chained: EDATE(previous,1) |
|---|---|---|
| 1 | 28-Feb-2025 | 28-Feb-2025 |
| 2 | 31-Mar-2025 | 28-Mar-2025 |
| 3 | 30-Apr-2025 | 28-Apr-2025 |
| 4 | 31-May-2025 | 28-May-2025 |
The chained column is stuck on the 28th from the first clamp onward. Nothing shows an error, so the drift is easy to miss. It also changes the interest day counts and the timing of cash.
Choosing EDATE or EOMONTH for an event
The function follows the wording of the contract, not the model's convenience.
| Contract wording | Formula for payment n | Why |
|---|---|---|
| "On the same day each month" (the 15th, or the drawdown day) | `=EDATE($C$4,n)` | Keeps the day number and clamps only when the month is too short |
| "On the last day of each month" | `=EOMONTH($C$4,n)` | Always returns the true month end, including 29-Feb in leap years |
| "Quarterly on the drawdown date" | `=EDATE($C$4,3*n)` | Steps are still whole months |
| "Annually on the anniversary" | `=EDATE($C$4,12*n)` | Anchored, so a 29-Feb start returns to 29-Feb in the next leap year |
If the contract says "the 30th or the last day of the month, if earlier", EDATE on a 30-Jan anchor matches it exactly. A 31-Jan anchor gives the 30th in April and the 31st in May, which also follows the "same day" rule. If your contract differs from both, write the rule out and model it explicitly, because neither function is a general business-day or day-count engine.
A payment schedule block
Keep the schedule in its own block, separate from the timeline. Assume these inputs:
- C4: drawdown date.
- C25: loan term in months.
- C26: maturity date, calculated as
=EDATE(C4,C25). - C27: monthly payment amount.
The schedule runs down rows 30 to 41, which allows a term of up to 12 months. Make it longer if your model allows longer terms.
Inputs: C4 = 31-Jan-2025 C25 = 12 C26: =EDATE(C4,C25) C27 = 1000
Payment number (B30): 1 B31: =B30+1 copy down to B41
Payment date (C30): =EDATE($C$4,B30) copy down
Payment amount (D30): =IF(B30<=$C$25,$C$27,0) copy down
C26 -> 31-Jan-2026Payments beyond the term get an amount of 0 instead of being deleted. That keeps the block the same shape when the term input changes. Format column C as a date, because EDATE returns a serial number, as in the first chapter of this tutorial.
Do not return an empty string for unused rows. In Excel, text compares as greater than any number, so a "" in a date column would pass a >= test and silently enter your totals.
Placing events into timeline columns
Now bring the schedule into the monthly timeline. Rows 5 and 6 hold the period start and period end. The cash-flow row uses SUMIFS with both date bounds:
Row 32 (payments in period): D32: =SUMIFS($D$30:$D$41,$C$30:$C$41,">="&D$5,$C$30:$C$41,"<="&D$6)
Single-date test (maturity flag, row 33): D33: =--AND($C$26>=D$5,$C$26<=D$6)
Count of events in the period (row 34): D34: =COUNTIFS($C$30:$C$41,">="&D$5,$C$30:$C$41,"<="&D$6)The test uses the period start and period end, not MONTH() comparisons. A MONTH test breaks when the timeline spans more than 12 months, because January 2025 and January 2026 both return 1. Comparing full dates against D$5 and D$6 is unambiguous.
The -- before AND converts TRUE or FALSE to 1 or 0, so the flag can be multiplied or summed. In the example, the first payment, 28-Feb-2025, lands in the second column (February), not the first. A formula that assumed "payment n goes in column n" would be one month early for the whole schedule.
Maturities and the final period
The maturity date =EDATE(C4,C25) is just an event, so it uses the same date test. In the example, 12 months from 31-Jan-2025 is 31-Jan-2026. The maturity flag turns on in January 2026, and the last payment in the schedule falls in that same column.
A common use is to switch a balance off after maturity. Use a running flag instead of testing only the maturity month:
Row 35 (loan outstanding flag): D35: =--AND(D$6>=$C$4,D$5<$C$26)The loan is outstanding in a period if the period ends on or after drawdown and the period starts before maturity. A period whose start is on or after the maturity date is excluded. This is the standard way to ask "is the instrument alive during this period?", and it works for any start date, including mid-month starts.
Anniversaries and escalation
Indexation, step-ups and contract reviews often happen on each anniversary of a start date. Two approaches work.
The date approach lists anniversaries with =EDATE($C$4,12*k) and places them with the same SUMIFS or COUNTIFS test. Use it when the anniversary date itself matters, for example to calculate a part-year effect.
The count approach avoids a list. Because a period end is always a month end, an anniversary that falls in a given month has always happened by that period's end. The number of anniversaries passed is therefore a whole-month count divided by 12:
Row 36 (anniversaries passed):
D36: =MAX(0,INT(((YEAR(D$6)-YEAR($C$4))*12+MONTH(D$6)-MONTH($C$4))/12))
Row 37 (escalation factor, with the escalation rate in C28):
D37: =(1+$C$28)^D36With a 31-Jan-2025 anchor, the period ending 31-Jan-2026 gives 12/12 = 1, so one anniversary has passed and the factor first steps up in January 2026. In December 2025 the count is 11/12, which truncates to 0. The MAX(0, ...) keeps periods before the anchor at 0 instead of negative.
For a 29-Feb-2024 anchor, EDATE gives 28-Feb-2025 and 28-Feb-2026, then 29-Feb-2028 when calculated as EDATE($C$4,48). Because each anniversary comes from the original date, the leap day is recovered.
Edge cases to know
- Time components. If an event date carries a time of day, such as
45700.6, the test<=D$6excludes it on the last day of the period, because 45700.6 is later than the whole-day serial 45700. Wrap event dates inINT()or compare against"<"&D$6+1. - Non-integer month counts. EDATE truncates the months argument, so
EDATE(C4,1.9)moves one month, not two. Use whole numbers, and guard any input that could be fractional withROUNDor a data-validation rule. - Events outside the timeline. A payment before the first period start or after the last period end matches no column and is dropped without an error. Reconcile the schedule to the timeline, as in the next section.
- Text dates. A date pasted as text makes EDATE return
#VALUE!. That is better than a wrong date, but it must be fixed at the source. - Business days. EDATE and EOMONTH ignore weekends and holidays. If a contract rolls payments to the next business day, apply WORKDAY to the EDATE result in a separate row, and keep the unadjusted date visible.
Reconcile the schedule to the timeline
Add one check next to the schedule so that lost events become visible. This extends the tie-out idea from the timeline-checks chapter to dated events.
Schedule total: =SUM($D$30:$D$41)
Timeline total: =SUM(D32:AM32)
Check (must be 0): =SUM($D$30:$D$41)-SUM(D32:AM32)
Event count check: =COUNTIF($D$30:$D$41,">0")-SUM(D34:AM34) -> must be 0 when all amounts are positiveIf the term is lengthened or the drawdown date moves past the end of the timeline, this check turns non-zero immediately, which is the signal that the timeline needs more columns.
Exercise
A loan is drawn on 30-Nov-2025 with payments "on the same day each month". Using the anchored approach, what are the payment dates for n = 3 and n = 4? What would a chained EDATE formula give for n = 4?
Show answer
Anchored: EDATE(30-Nov-2025,3) = 28-Feb-2026 (2026 is not a leap year), and EDATE(30-Nov-2025,4) = 30-Mar-2026. Chained: n=1 is 30-Dec-2025, n=2 is 30-Jan-2026, n=3 is 28-Feb-2026, and n=4 is EDATE(28-Feb-2026,1) = 28-Mar-2026, two days earlier than the contractual 30th.
Exercise
Your cash-flow row uses =IF(MONTH(C30)=MONTH(D$6),D30,0) to place payments, and the model now runs for 36 months. Describe the error and write a corrected formula for row 32 that uses the schedule block in C30:D41.
Show answer
MONTH compares only the month number, so a payment in February 2025 also matches February 2026 and February 2027, and it is counted three times. The fix compares full dates against the period bounds: =SUMIFS($D$30:$D$41,$C$30:$C$41,">="&D$5,$C$30:$C$41,"<="&D$6).
Exercise
The maturity date is 31-Jan-2026 and the loan outstanding flag is =--AND(D$6>=$C$4,D$5<$C$26). What is the flag for the period 1-Feb-2026 to 28-Feb-2026, and why?
Show answer
0. The period start, 1-Feb-2026, is not before the maturity date of 31-Jan-2026, so D$5<$C$26 is FALSE and the AND returns FALSE, which -- converts to 0. The loan is not outstanding after maturity.