FxFormula Drills

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.

Starter sheet for this exercise
RowAB
1InvoiceDue
22024-01-15Formula goes in B2. formula
32024-02-10Formula goes in B3. formula
42023-12-01Formula 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.

Solve this exercise

Practice this formula

Loading the practice grid…