Formulyo

Excel + Google Sheets · EOMONTH

The last day of any month, instantly

Returns the last day of the month, any number of months before or after a date.

The formula

=EOMONTH(A2, 1)

What each part means

Example

Before
AB
1Invoice dateDue date
2Nov 2
3Nov 18
4Dec 5
5Jan 30
After
AB
1Invoice dateDue date
2Nov 2Dec 31
3Nov 18Dec 31
4Dec 5Jan 31
5Jan 30Feb 28

Step by step

  1. Click cell B2.
  2. Type the formula: =EOMONTH(A2, 1)
  3. Press Enter.
  4. Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning