Sub topic 6
Building the Monthly Timeline from One Start-Date Input
This chapter assumes you can write basic Excel formulas and use relative and absolute references. It also assumes your model has periods across the columns, and that you know EOMONTH and EDATE from the earlier chapters, including how EDATE clamps a day that does not exist. Here you put those pieces together into the date row that every other row in the model reads.
What the timeline has to do
A model timeline has three requirements.
- One input. The user types a single model start date. No other date is typed anywhere in the timeline.
- Consistent columns. Every column gets its date by the same rule, so the row can be copied right without edits.
- Real month ends. Every period end is the actual last day of its month, in leap years too.
EOMONTH meets all three. Its result depends only on the month of its argument, so the day of the month in the input never affects the output.
The input block
Put the inputs in a block above or beside the timeline. This chapter uses the following layout.
| Cell | Content | Example value |
|---|---|---|
| C2 | Model start date (any date in the first month) | 15-Jan-2025 |
| C3 | Fiscal year-end month number | 6 |
| C4 | Loan drawdown date | 31-Jan-2025 |
The timeline starts in column D. Row 6 holds the period end dates, row 5 the period start dates and row 7 the days in each period. Row 8 holds a period counter, which the next chapters use for flags and event schedules.
This chapter builds row 6. C3 and C4 are used in later chapters.
The first period end
The first column answers one question: what is the last day of the month containing the start date?
D6: =EOMONTH(C2,0)With C2 = 15-Jan-2025 the result is 31-Jan-2025. The second argument is 0 because you want the same month, not a shifted one. A start date of 1-Jan-2025, 15-Jan-2025 or 31-Jan-2025 gives the same D6. The user can type whichever date is natural, and the first period always ends at the month end.
Every later period end
Each later column steps one month forward from the column to its left.
E6: =EOMONTH(D6,1)Copy E6 across to the last column. For a 36-month model that is column AM, since D to AM is 36 columns. With the example input the row reads:
| Column | Formula | Result |
|---|---|---|
| D6 | `=EOMONTH(C2,0)` | 31-Jan-2025 |
| E6 | `=EOMONTH(D6,1)` | 28-Feb-2025 |
| F6 | `=EOMONTH(E6,1)` | 31-Mar-2025 |
| G6 | `=EOMONTH(F6,1)` | 30-Apr-2025 |
| H6 | `=EOMONTH(G6,1)` | 31-May-2025 |
Chaining is safe here because the value being passed along is always a genuine month end. EOMONTH ignores the day of its argument and returns the last day of the target month. Feb 28 in a non-leap year is passed on, and EOMONTH returns 31-Mar, not 28-Mar. The February value cannot leak into later columns.
Why not chain EDATE?
EDATE keeps the day number, and when the day does not exist it clamps to the month's last day. Clamping is fine for one jump but it is lossy when chained. Start from 31-Jan-2025 and step one month at a time:
=EDATE(DATE(2025,1,31),1) -> 28-Feb-2025
=EDATE(DATE(2025,2,28),1) -> 28-Mar-2025 (should be 31-Mar-2025)
=EDATE(DATE(2025,3,28),1) -> 28-Apr-2025 (should be 30-Apr-2025)After the first clamp, the day number 28 is carried forward. Every later date is wrong for a month-end timeline, and no error appears. Any row that sums or flags by period end then misbehaves.
EOMONTH avoids this because it returns the last day of the month and does not preserve the input day. The same chain written with EOMONTH gives 28-Feb, 31-Mar and 30-Apr.
=EOMONTH(DATE(2025,1,31),1) -> 28-Feb-2025
=EOMONTH(DATE(2025,2,28),1) -> 31-Mar-2025
=EOMONTH(DATE(2025,3,31),1) -> 30-Apr-2025A single formula for the whole row
The version above has a first-column exception: D6 differs from E6 onward. Many modelling standards ask for one formula across a row, because exceptions are where errors hide. You can get that with the period counter in row 8, where D8 = 1 and E8 = D8+1:
D6: =EOMONTH($C$2,D$8-1) (copy right unchanged)For counter 1 this is EOMONTH(C2,0), and for counter 2 it is EOMONTH(C2,1). Each column is calculated directly from the input, not from its neighbour.
| Approach | Strength | Weakness |
|---|---|---|
| Chain: first column plus `EOMONTH(prev,1)` | Easy to read. Inserting a column is simple. | The first column is an exception. A broken cell affects every column to its right. |
| Counter: `EOMONTH($C$2,counter-1)` | One formula across the row. A bad cell affects only itself. | Depends on the counter row being correct. |
Either is acceptable. This tutorial uses the chain because it matches the spine formulas used in the following chapters, but if your team standard says one formula per row, use the counter version. Do not mix the two in the same row.
Formatting the row
EOMONTH returns a serial number, not a formatted date. If row 6 shows values like 45688, the formulas are right and the cell format is wrong. Apply a date format such as dd-mmm-yy, or mmm-yy if you want a compact header. Also check the following.
- Columns wide enough that the date does not display as
####. - The same format across the whole row, so a stray General-formatted cell stands out.
- A style or colour for formula cells that differs from input cells, so the user knows only C2 is meant to be typed over.
For reference, 31-Jan-2025 is serial 45688 and 28-Feb-2025 is 45716. The difference, 28, is the number of days in February. That is why date arithmetic, such as D6-D5+1 for days in period, works without any date-specific function.
Protecting the input
One input drives everything, so it must be a real date. Three things can go wrong with C2.
- Text that looks like a date. If the user types
Jan 2025or pastes15/01/2025into a locale that reads it differently, C2 may be text. EOMONTH then returns#VALUE!across the whole row. This is a loud failure, which is useful. - A blank cell. Excel treats blank as 0, and
EOMONTH(0,0)returns a date in January 1900. The row fills with plausible-looking values and no error. This is a silent failure. - A date far from the intended period. A typo such as 2052 for 2025 produces a valid but wrong timeline.
Apply data validation to C2 so it accepts only dates within a sensible range. You can also add a check cell next to the input:
=AND(ISNUMBER(C2),C2>=DATE(2000,1,1),C2<=DATE(2100,12,31))This returns TRUE for a number in the allowed range, and FALSE for text, a blank (0) or an out-of-range date. Link it to the model's overall check summary, which a later chapter covers.
Mid-month starts
The first column takes the start date's month and ignores its day. If the user enters 15-Jan-2025, D6 is 31-Jan-2025 and the model treats January as a complete period. Deciding whether the first period should be shortened to 17 days, from 15 to 31 January, is a separate modelling choice. It is handled with period start dates and a stub period, covered in a later chapter. For now, the timeline is whole months only.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Row shows numbers such as 45688 | Cells not formatted as dates | Apply a date format |
| `#VALUE!` across the row | C2 is text | Re-enter C2 as a date. Add validation. |
| Dates in January 1900 | C2 is blank | Enter a date. Add the check cell. |
| Some columns end on the 28th or 30th when they should not | `EDATE` chained from the previous column | Replace with `EOMONTH(prev,1)` |
| Dates are right but one column is off | A pasted value or an edited formula in the row | Compare formulas across the row with Go To Special, Row differences |
| End dates repeat or skip a month | Step argument typed as 0 or 2 in some column | Restore `1` in the copied formula |
Worked build
- Enter the start date in C2 and format it as a date.
- In D6 enter
=EOMONTH(C2,0). - In E6 enter
=EOMONTH(D6,1)and copy it right to AM6. - Format D6:AM6 as
mmm-yyordd-mmm-yy. - Change C2 to 31-Jan-2025, then to 1-Jan-2025, and confirm that row 6 does not change.
- Change C2 to 29-Feb-2024 and check that the row now begins 29-Feb-2024 and reaches 28-Feb-2025 and 28-Feb-2026.
Step 6 is the best quick test. The leap-year start must give 29-Feb-2024 in D6, then 31-Mar-2024, and the February after next must be 28-Feb-2025.
Exercise
C2 contains 10-Nov-2025. What do D6, E6, F6 and G6 show if D6 is =EOMONTH(C2,0) and each later cell is =EOMONTH(previous,1)?
Show answer
D6 = 30-Nov-2025, E6 = 31-Dec-2025, F6 = 31-Jan-2026 and G6 = 28-Feb-2026. The day number in C2 does not matter, only its month. Each later cell steps one month from a real month end, and 2026 is not a leap year, so February ends on the 28th.
Exercise
A colleague builds the timeline with D6 =C2 and E6 =EDATE(D6,1), with C2 = 31-Jan-2025. What does G6 show, and what should it show?
Show answer
E6 = 28-Feb-2025, F6 = 28-Mar-2025 and G6 = 28-Apr-2025. A month-end timeline should show 30-Apr-2025. EDATE clamps 31-Jan to 28-Feb, then keeps the day number 28 for every later column. The fix is D6 =EOMONTH(C2,0) and E6 =EOMONTH(D6,1).
Exercise
C2 is accidentally left blank and the row shows dates in 1900 with no error. Write a formula for a check cell that returns TRUE only when C2 is a date between 1-Jan-2000 and 31-Dec-2100.
Show answer
=AND(ISNUMBER(C2),C2>=DATE(2000,1,1),C2<=DATE(2100,12,31)). A blank cell evaluates as 0, which is below the lower bound, so the check returns FALSE. Text is not a number, so ISNUMBER returns FALSE.