A positive offset moves forward by whole months.
Your supplier's terms are "payment due by the end of the month following the invoice". In B2:B6 give the due date for each invoice date.
Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.
The same formula in the other shapes it takes at work.
Find the last day of the month using EOMONTH.
The end of last month plus one day.
A positive offset moves forward by whole months.
DAY of the month's last day is its length.
This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.
| A | B | |
|---|---|---|
| 1 | Invoice date | Due |
| 2 | 1/5/2024 | |
| 3 | 1/31/2024 | |
| 4 | 6/15/2024 | |
| 5 | 11/30/2024 | |
| 6 | 12/1/2024 |
Adding 30 days gets month-end terms wrong whenever a month is not 30 days long. EOMONTH counts whole months and lands on the right last day, including 29 February in a leap year and the step into the next year in December.