Sub topic 6
Building the Monthly Timeline from One Start-Date Input
Prerequisites and design
This chapter assumes you know basic Excel formulas, relative and absolute references, and a column-based financial model where time periods run from left to right. You should also be familiar with SUMIFS and the YEAR, MONTH, and DAY functions.
A model timeline should have one controlling input. For a monthly model, enter any date in the first model month in cell C2. For example, enter 15-Jan-2025. The timeline then derives every period from that value.
Excel stores dates as serial numbers. A date is a number representing the number of days from Excel's starting date system. The cell's date format changes how the number appears, but not the underlying value. This lets Excel add days, compare dates, and calculate the number of days in a period.
Timeline structure
Use one row for the period start, one for the period end, and one for the number of days. In this example, column D is the first monthly period.
| Row | Purpose | First formula |
|---|---|---|
| 5 | Period start | `=EOMONTH($C$2,-1)+1` |
| 6 | Period end | `=EOMONTH($C$2,0)` |
| 7 | Days in period | `=D6-D5+1` |
EOMONTH returns the last day of a month after shifting by a specified number of months. Therefore:
=EOMONTH($C$2,0)returns the end of the input date's month.=EOMONTH($C$2,-1)returns the end of the prior month.- Adding
1to the prior month end returns the first day of the model month.
Enter these formulas in column D, then extend the timeline into column E and beyond:
Inputs: C2 = 15-Jan-2025
Row 5 (period start):
D5: =EOMONTH($C$2,-1)+1
E5: =D6+1
Row 6 (period end):
D6: =EOMONTH($C$2,0)
E6: =EOMONTH(D6,1)
Row 7 (days):
D7: =D6-D5+1Copy E5:E7 to the right for the remaining periods. The first period runs from 1-Jan-2025 through 31-Jan-2025, so row 7 returns 31. February returns 28 days in 2025 and 29 days in a leap year.
The $ signs in $C$2 make the model start date absolute. When you copy formulas across, the reference remains connected to the same input. References such as D6 are relative, so they move to the prior period's end as the formula moves right.
Why period columns use EOMONTH
EDATE shifts a date by whole months while preserving its day number where possible. It is useful for events tied to a particular day, such as a payment date or anniversary. EOMONTH is better for period columns because every period end must be the actual last day of its month.
=EOMONTH(DATE(2025,1,15),1) -> 28-Feb-2025
=EDATE(DATE(2025,1,15),1) -> 15-Feb-2025
=EDATE(DATE(2025,1,31),1) -> 28-Feb-2025
=EOMONTH(DATE(2025,1,31),1) -> 28-Feb-2025When the requested day does not exist, EDATE clamps the result to the target month's last day. For a recurring timeline, relying on chained EDATE formulas can make the intent less clear. Step from one month-end to the next with EOMONTH.
Visual model
Timeline checks
A broken timeline can silently distort interest, revenue, depreciation, or other time-based calculations. Add checks beside the timeline:
Continuity check:
E11: =E5-D6Every result should equal 1, because each period starts the day after the prior period ends. Also check that each period end is a true month end:
D12: =D6=EOMONTH(D6,0)Every result should be TRUE.
Exercise
If C2 contains 20-Feb-2024, what should D5, D6, and D7 return?
Show answer
D5 returns 1-Feb-2024, D6 returns 29-Feb-2024, and D7 returns 29.