Return the last day (or first day) of the month a date falls in.
Copy this formula
=EOMONTH(A2, 0)EOMONTH(date, 0) returns the last day of the current month. For the first day, use EOMONTH(date, -1)+1 — the last day of the previous month plus one. The offset shifts months forward or back.
=EOMONTH(A2, -1)+1→2026-06-01First day of the month.
=EOMONTH(DATE(2026,2,10), 0)→2026-02-28Last day of February 2026.
=EOMONTH(DATE(2026,10,7), 0)+1→2026-11-01First day of the following month.
First day (DATE)
=DATE(YEAR(A2), MONTH(A2), 1)Builds the first day directly.
Use EOMONTH(A2, 1).
Use =WORKDAY(EOMONTH(A2, 0)+1, -1). It steps back one working day from the first of next month.
Use =DATE(YEAR(A2), 1, 1).
The cell is formatted as General. Apply a Date format to display it as a date.
Need a formula for your own data?
Describe what you want in plain language and let ExcelGPT write, explain, and verify the formula — free to start, no plugin.