Premium exercise · Excel text and date functions
EOMONTH practice: month-end due date
Practice Excel EOMONTH by finding the last day of the invoice month and formatting it as a date.
Invoices are due on the last day of the same month. Column A is the invoice date.
In column B, use EOMONTH to get that month-end, then wrap it in TEXT with the format yyyy-mm-dd so the cell reads as a date. 2024 is a leap year.
Dataset
Starter sheet. Cells marked formula are where the formula goes.
| Row | A | B |
|---|---|---|
| 1 | Invoice | Due |
| 2 | 2024-01-15 | Formula goes in B2. formula |
| 3 | 2024-02-10 | Formula goes in B3. formula |
| 4 | 2023-12-01 | Formula goes in B4. formula |
Hint
EOMONTH takes a date and how many months to move. 0 stays in the same month.
Explanation
This exercise practices EOMONTH and TEXT in Excel. The formula goes in B2, B3, B4.
EOMONTH with 0 returns the last day of the invoice month: January 31, February 29 in the leap year 2024, and December 31. TEXT formats that result so it does not appear as a raw date serial.
The interactive sheet and a worked solution are part of Formula Drills Premium. The instructions and starter data on this page are the full problem.