Sub topic 5
Which function to use, and why period columns use month ends
This chapter gives you a decision rule for choosing between EOMONTH and EDATE. It also explains why the period columns of a model should be built on month-end dates. It assumes you already know what each function returns and how EDATE clamps a day that doesn't exist in the target month (31-Jan plus one month gives 28-Feb in a non-leap year). It also assumes you are comfortable with relative and absolute references and with SUMIFS.
The rule in one sentence
Use EOMONTH to build period columns, which are the timeline itself. Use EDATE to place dated events on that timeline, such as loan payments, anniversaries and maturities.
The two functions answer different questions:
- EOMONTH asks "which month is this, and when does it end?" The answer is always a last day of a month.
- EDATE asks "what date is the same day-of-month, n months later?" The answer is a specific calendar day that matters to a contract.
What each function guarantees
| Property | EOMONTH(date, n) | EDATE(date, n) |
|---|---|---|
| Result day | Always the last day of the target month | Same day number as the input, clamped to the target month's last day |
| Output is always a month end | Yes | No |
| Output depends on the input day | No. Any day in a month gives the same answer. | Yes. Different input days give different answers. |
| Safe to chain from its own result | Yes | No, because a clamped day is carried forward |
| Natural use | Period ends, period starts, fiscal year ends | Payment dates, anniversaries, maturities |
The third row is the important one. EOMONTH discards the day of the input, so it can't pass an error from one column to the next. EDATE keeps the day, so any distortion in the input comes through in the output.
Why period columns use month ends
A period column represents a whole month. The month needs a single date to identify it, and that date has to satisfy four requirements.
- It is unique per month. SUMIFS, lookups and flags compare dates for exact equality. Two different cells that mean "March 2025" must hold the same serial number, or the match fails.
- It is predictable. The last day of a month is determined by the calendar alone. Any model user can verify it without knowing how the timeline was built.
- It supports the neighbouring dates. The period start is the previous period end plus 1. The day count is end minus start plus 1. Both need an end date that is a true month end.
- It survives changes to the start input. If the user changes the model start from 15-Jan to 31-Jan, every column should still be a month end.
EOMONTH meets all four. EDATE meets none of them reliably. The next section shows how EDATE fails.
How chained EDATE drifts
Suppose a timeline starts on 31-Jan-2025 and each column adds one month to the column before it:
D6: =DATE(2025,1,31) -> 31-Jan-2025
E6: =EDATE(D6,1) -> 28-Feb-2025
F6: =EDATE(E6,1) -> 28-Mar-2025 (should be 31-Mar-2025)
G6: =EDATE(F6,1) -> 28-Apr-2025 (should be 30-Apr-2025)February clamps 31 to 28. Every later column then starts from 28 and never recovers. The dates still look like plausible dates, so nothing signals an error. Period lengths are wrong, interest is calculated on the wrong day counts, and any SUMIFS keyed to true month ends misses these columns.
The same chain with EOMONTH has no drift:
D6: =EOMONTH(DATE(2025,1,31),0) -> 31-Jan-2025
E6: =EOMONTH(D6,1) -> 28-Feb-2025
F6: =EOMONTH(E6,1) -> 31-Mar-2025
G6: =EOMONTH(F6,1) -> 30-Apr-2025The drift can also appear after a month-end date, even with 12-month steps. This is the leap-year case:
Anchored on a month end, 12 months at a time:
=EOMONTH(DATE(2024,2,29),12) -> 28-Feb-2025
=EOMONTH(DATE(2025,2,28),12) -> 28-Feb-2026
=EOMONTH(DATE(2027,2,28),12) -> 29-Feb-2028
Chained EDATE drifts:
=EDATE(DATE(2025,2,28),12) -> 28-Feb-2026
=EDATE(DATE(2027,2,28),12) -> 28-Feb-2028 (not the month end)EDATE keeps the day number 28, so in the leap year 2028 it lands one day before the real month end. EOMONTH returns 29-Feb-2028.
The failure is silent
Chained EDATE doesn't produce an error value. The timeline looks fine in a normal review, because the dates are all valid and the months are all correct. The problem only shows when something compares those dates with true month ends, or when day counts feed a calculation. This is why the rule is to use EOMONTH even when EDATE would work for the first few columns. A model that is right for 12 columns and wrong from the first leap year is a hard bug to find later.
Why events use EDATE
EDATE is the right tool when the date is a real calendar day that someone agreed to. A loan drawn on 31-Jan with monthly payments is typically paid on the 31st, or on the last day of shorter months. The contract day is the 31st, so the schedule should start from that day each time.
The way to avoid drift is to always calculate from the original date and never from the previous result:
Inputs: C4 = loan drawdown date (e.g. 31-Jan-2025)
Payment date for period n (n in row 8): =EDATE($C$4,D8)
Check that a date falls in a period: =AND(F4>=D5,F4<=D6)With a drawdown on 31-Jan-2025, the payment dates come out as follows:
=EDATE($C$4,1) -> 28-Feb-2025
=EDATE($C$4,2) -> 31-Mar-2025
=EDATE($C$4,3) -> 30-Apr-2025The anchor $C$4 is absolute, and only the month count n changes. Each payment date is clamped on its own and nothing carries forward, so March returns to the 31st. This is the same behaviour shown for EDATE in the earlier chapter: =EDATE(DATE(2025,1,31),2) returns 31-Mar-2025.
The AND test then assigns each payment to the monthly period that contains it. The period columns supply the start in row 5 and the end in row 6, and the event date is compared with both. The event date doesn't have to be a month end, and it never replaces the period end.
Putting both on one timeline
The timeline holds month-end columns built with EOMONTH. Event dates are separate values built with EDATE. The two meet only when you test which period an event belongs to, or when you use SUMIFS to collect the amounts.
Common errors
| Error | What it looks like | Fix |
|---|---|---|
| Timeline built with chained EDATE | Dates drift to 28 after the first February | Rebuild period ends with `=EOMONTH(previous_end,1)` |
| Event schedule chained from the previous payment | Every payment after February falls on the 28th | Use `=EDATE($C$4,n)` with the anchor fixed |
| SUMIFS matches nothing for some months | Annual totals are lower than the sum of monthly values | Check that the date keys in the monthly row are true month ends |
| Start input changes the day of every column | Changing the start from 15-Jan to 31-Jan shifts all columns | Use EOMONTH with offset 0 for the first period end, so the day is discarded |
| Mixed approaches in one row | First column uses EOMONTH and later columns use EDATE | Use one formula that copies right across the whole row |
| Result shows a number such as 45716 | Cell is formatted as General | Apply a date number format |
One further point on the fifth row: the first period end should use =EOMONTH($C$2,0), not =$C$2. Taking the start input directly makes the first column equal to whatever day the user typed, so the row is not a month-end row unless the user happens to type a month end.
Cheap checks that catch the wrong choice
Two checks from the timeline-integrity toolkit apply directly to this decision. Run both on every period row:
Continuity check (row 11): E11: =E5-D6 -> must equal 1 in every column
End-of-month check (row 12): D12: =D6=EOMONTH(D6,0) -> must be TRUEThe end-of-month check is a direct test of the rule in this chapter. If someone replaces an EOMONTH formula with EDATE, the first clamped column returns FALSE. The continuity check fails in the same place, because the next period start is no longer the day after the previous end. Add both checks next to the timeline, and summarise them in one cell that the model's main check sheet can read.
Summary
- Period ends use EOMONTH, always from the previous period end. The result is a month end whatever the input day.
- Event dates use EDATE, always from the original anchor with an absolute reference and a month count.
- Never chain EDATE from its own output. A clamped day carries forward and the dates drift without any error.
- Confirm every period end with
=D6=EOMONTH(D6,0).
Exercise
Cell D6 holds 31-Jan-2025. Cells E6, F6 and G6 each contain =EDATE(previous cell,1) and fill right. What dates do E6, F6 and G6 show? What formula should replace them for a monthly timeline, and what dates does it give?
Show answer
The EDATE chain gives E6 = 28-Feb-2025, F6 = 28-Mar-2025 and G6 = 28-Apr-2025. February clamps 31 to 28, and the later columns keep day 28. For a timeline, use =EOMONTH(previous cell,1) in E6 to G6, which gives 28-Feb-2025, 31-Mar-2025 and 30-Apr-2025.
Exercise
A loan is drawn on 31-Jan-2025 and repaid monthly on the drawdown day, or the month's last day when that day does not exist. Cell C4 holds the drawdown date and row 8 holds the payment number n (1, 2, 3). Write the payment date formula for n = 3 in row 10 and give its result. Why is =EDATE(previous payment date,1) the wrong formula here?
Show answer
Use =EDATE($C$4,D8) with D8 = 3, which returns 30-Apr-2025. Chaining from the previous payment would give 28-Feb, 28-Mar and 28-Apr, because the clamped day 28 from February would carry forward. March would be paid on the 28th instead of the 31st. The anchored formula clamps each date separately.
Exercise
You inspect a timeline and cell H6 holds 28-Feb-2028. The formula in H6 is =EDATE(D6,12) and D6 holds 28-Feb-2027. Is H6 a valid period end? Which formula fixes it and what does it return?
Show answer
No. 2028 is a leap year, so the month end is 29-Feb-2028, and the check =H6=EOMONTH(H6,0) returns FALSE. Replace the formula with =EOMONTH(D6,12), which returns 29-Feb-2028.