Ghost Sheet

EOMONTH: pay on the last day of next month

How do I get the last day of the month after a date?

This is the task for this topic. It is part of the plan; the level check before it is free.
D2Type a formula for D2, starting with =

Click the sheet or the button: the task opens in your workspace, ready to type

ABCDE
1BillSupplierBill datePay on
2PB-5501Osprey Packaging10/10/2026
3PB-5502Fenwick Tools10/20/2026
4PB-5503Calder Paper10/07/2026
5PB-5504Marlow Print10/25/2026
6PB-5505Brightline Chemicals10/02/2026
7PB-5506Calder Paper10/20/2026
8PB-5507Osprey Packaging10/04/2026
9PB-5508Brightline Chemicals10/11/2026
10PB-5509Osprey Packaging10/29/2026
11PB-5510Fenwick Tools10/01/2026
12PB-5511Brightline Chemicals10/09/2026
13
14
15
16
17
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
EOMONTH returns the last day of a month, counted from a date: 0 is the same month, 1 the next. It knows months end on the 28th, 29th, 30th or 31st, so payment runs and month-end deadlines land on the right day.
The shape of the formula
=EOMONTH(date, months ahead)
How to remember it
End of month is EOMONTH, never a fixed day number.
The usual mistake
Building the date with day 30. December payments land a day early, and February ones roll over into March.

Keep practicing

Updated