Sub topic 5
Which Function to Use, and Why Period Columns Use Month Ends
Assume you know basic Excel formulas, relative and absolute references, and the layout of a financial model with periods across columns. This chapter focuses on choosing between EOMONTH and EDATE, especially when building monthly model timelines.
The two functions solve different problems
EOMONTH returns the last day of a month. Its second argument shifts the month by a whole number.
EDATE shifts a date by a whole number of months and tries to preserve the original day of the month.
=EOMONTH(DATE(2025,1,15),0) -> 31-Jan-2025
=EOMONTH(DATE(2025,1,15),1) -> 28-Feb-2025
=EOMONTH(DATE(2025,1,15),-1) -> 31-Dec-2024
=EDATE(DATE(2025,1,15),1) -> 15-Feb-2025
=EDATE(DATE(2025,1,15),-1) -> 15-Dec-2024Excel stores each date as a serial number. The functions return numbers, so format the result cells as dates. Otherwise, a result might appear as a number such as 45689.
| Requirement | Preferred function | Reason |
|---|---|---|
| Find a month-end period date | `EOMONTH` | Always returns the actual last day |
| Shift a payment or anniversary date | `EDATE` | Preserves the intended day where possible |
| Find the first day of a month | `EOMONTH(date,-1)+1` | Moves to the prior month-end, then adds one day |
Why EDATE can clamp the day
Some months do not contain every day number. When the target month lacks the original day, EDATE returns that month's last day. This behavior is called day clamping.
=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-2025The two-month result is based on the original 31 January date. It does not first use the clamped 28 February date and then add another month.
Chaining can still cause an unwanted result. For example, starting with 28 February and repeatedly using EDATE preserves day 28, even when a later February has 29 days. If the model means “the last day of every month,” use EOMONTH instead.
=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-2028Use month ends for model period columns
Monthly financial model columns usually represent complete calendar months. A month-end date is a stable period label because every column has the same meaning: the month ending on that date.
For a model start date in C2, use the input only to create the first period. Then build later columns from the previous period.
D6: =EOMONTH($C$2,0)
E6: =EOMONTH(D6,1)
F6: =EOMONTH(E6,1)This produces 31 January, 28 February, and 31 March for a 2025 start. It also handles leap years and different month lengths without special cases.
The period start can be derived from the end date:
D5: =EOMONTH($C$2,-1)+1
E5: =D6+1
F5: =E6+1This creates contiguous periods. Each period begins the day after the previous period ends.
Events and stub periods
Use EDATE for dated events such as loan payments, anniversaries, and maturities. Calculate each event from the original date rather than from a previously clamped result.
Payment date for period n: =EDATE($C$4,D8)A mid-month model start can create a stub period. The first period may begin on 15 January and end on 31 January, while later periods cover full months. Keep the start date as a separate input and calculate the first period explicitly. Do not force the first period to look like a full month.
Exercise
A model uses 31 January 2025 as its start date. Should the monthly period row use EDATE or EOMONTH, and what formula should create February's period end from January's period end in D6?
Show answer
Use EOMONTH because the columns represent month ends. In E6, enter =EOMONTH(D6,1), which returns 28-Feb-2025.