The EOMONTH function in Google Sheets returns the last day of a month, a set number of months before or after a starting date. The syntax is =EOMONTH(start_date, months), so =EOMONTH(TODAY(), 0) gives you the last day of the current month and =EOMONTH(TODAY(), 1) gives the last day of next month. You need nothing installed: EOMONTH works in any Google Sheets spreadsheet in a browser or the mobile app, and Google also provides the sibling function EDATE for the same date offset but keeping the day number instead of snapping to the month end.

What You'll Need

  • A Google account and access to Google Sheets (web browser, or the Google Sheets app on Android or iPhone).
  • A spreadsheet with at least one date cell, or a date typed directly into the formula.
  • A basic understanding that Google Sheets stores dates as numbers behind the scenes, which is why a cell showing 15/03/2026 can still be used in arithmetic.
  • Nothing else. EOMONTH is a built-in function available to every user; no add-ons, extensions or paid tiers are required.

Step-by-Step

  1. Open your spreadsheet. Go to sheets.google.com, open an existing file, or create a blank one with Blank spreadsheet. In the mobile app, tap the plus button and choose a blank spreadsheet.
  2. Pick a cell for the result. Click or tap an empty cell where you want the end-of-month date to appear, for example cell B2 next to a date in A2.
  3. Type the function. Enter =EOMONTH( and you will see the function hint appear with the two arguments. The first argument is the start date; the second is the number of months to add (negative numbers go backwards).
  4. Point at a date cell. Click the cell containing your start date, or type its reference. For example, if A2 holds 15/03/2026, your formula becomes =EOMONTH(A2,0). This returns 31/03/2026.
  5. Add the month offset. Type a comma and then the number of months. Use 0 for the end of the same month, 1 for the end of the following month, 12 for the end of the same month next year, and -1 for the end of the previous month. Close the bracket and press Enter (or the checkmark on mobile).
  6. Check the result format. If the answer appears as a five-digit number such as 46112, the cell is formatted as a plain number. Select the cell, open Format > Number > Date (in the mobile app, tap the format button in the toolbar and choose Date) and it will display as a date again. Labels can differ slightly between versions, devices and regions.
  7. Fill the formula down. With the result cell selected, drag the small blue square in the bottom-right corner down the column, or copy the cell and paste it into the rows below. Relative references adjust automatically, so each row calculates the month end for its own date.
  8. Use it inside other formulas. Because EOMONTH returns a real date value, you can nest it. =TEXT(EOMONTH(A2,0),"DD MMM YYYY") gives a readable label, and =EOMONTH(A2,0)-A2 returns the number of days remaining in that month.

A worked example

Suppose A2 contains 10/01/2026. =EOMONTH(A2,0) returns 31/01/2026. =EOMONTH(A2,1) returns 28/02/2026, because the function clamps to the real end of February rather than adding 31 days. =EOMONTH(A2,-2) returns 30/11/2025. Note that the starting day of the month is irrelevant: the 1st and the 28th of January both produce the same result with the same offset. That is exactly what makes EOMONTH reliable for billing cycles, rent due dates and reporting periods.

For a list of month-end dates, put your first month somewhere (say the first of January in A2), then in A3 use =EOMONTH(A2,1)+1 to get the first of the next month, or =EOMONTH(A2,0)+1 and copy down. Combining EOMONTH with EDATE lets you build rolling schedules without manual date entry.

Common Mistakes

  • Passing a text string that is not a real date. =EOMONTH("31/02/2026",0) fails because that date does not exist. Text like March 2026 is also not a date. Use =EOMONTH(DATE(2026,3,1),0) if you only know the month and year.
  • Forgetting that the offset is months, not days. A second argument of 30 does not mean 30 days; it means thirty months forward.
  • Assuming EOMONTH returns the last working day. It returns the calendar month end, which may fall on a Saturday or Sunday. Wrap it in WORKDAY or a similar function if you need business days.
  • Leaving the wrong number format. The formula is correct but the cell shows a serial number, which leads people to think the function is broken.
  • Typing the date inside the formula with the wrong regional order. Depending on your locale, 03/04/2026 may be read as 3 April or 4 March. Cell references or DATE() avoid ambiguity entirely.
  • Using a locale where the comma is the decimal separator. In some regions the argument separator is a semicolon rather than a comma. If your formula is rejected, try =EOMONTH(A2;0).

Tips

  • Use =EOMONTH(TODAY(),0) for a dashboard cell that always shows the current month end, and =EOMONTH(TODAY(),-1) for the previous month's close, which is handy in monthly reports.
  • Combine with IF to test whether a date is past the month end: =IF(A2>EOMONTH(TODAY(),0),"Overdue","On track").
  • To count days in a month: =EOMONTH(A2,0)-EOMONTH(A2,-1).
  • If you build monthly headers, use =TEXT(EOMONTH(A2,0),"MMMM YYYY") so each column reads March 2026 instead of a numeric date.
  • Keep start dates in their own cells rather than hard-coding them inside formulas. It makes copying, sorting and auditing much easier.
  • If you need the first day of the month instead, use =EOMONTH(A2,-1)+1, which is more robust than typing the 1st manually.

Troubleshooting

The cell shows #NUM! or an error. This usually means the start date is not a valid date. Check that the cell holds a true date value, not text. Select the cell and look at the number format; if it is Plain text, change it to Date and retype the value. Also check for an extra bracket or a missing comma.

The cell shows #VALUE!. One of the arguments is text that cannot be parsed as a date. Replace quoted strings with DATE(year, month, day) or reference a real date cell.

A number appears instead of a date. Change the format via Format > Number > Date. This does not change the underlying value, only the display.

Every row shows the same date after filling. The reference is probably locked with dollar signs (for example $A$2). Remove the dollar signs for the rows you want to change as you copy down.

Copied-down rows are off by one month or a day. Check whether your start dates included the previous month-end and whether your formula adds a month to an already-shifted date. Build the chain from a single anchor date where possible.

The formula worked in Excel but not here. Syntax is the same, but regional separators and date formats may differ. Try a semicolon as the argument separator and confirm your spreadsheet's locale setting.

Frequently Asked Questions

Does EOMONTH work on a date that is already the last day of the month?

Yes. It returns the same date when the offset is 0, because it always snaps to the calendar month end regardless of the day supplied.

Can EOMONTH give me the last business day of the month?

Not by itself. It returns the calendar month end. To get a weekday close, combine it with WORKDAY or WORKDAY.INTL so weekends and holidays are skipped.

How do I use EOMONTH with a month and year instead of a full date?

Build the date with DATE: =EOMONTH(DATE(2026,7,1),0). The day part can be any valid day; only the month and year matter for the result.

Can months be negative?

Yes. A negative second argument looks backwards, so =EOMONTH(A2,-1) returns the end of the previous month and =-12 returns the end of the same month a year earlier.

Why does EOMONTH return the wrong year?

The start date is probably being read with a different day/month order than you intended. Use DATE() or a formatted date cell to remove ambiguity, and check your spreadsheet locale.

Is EOMONTH compatible with importing Excel files?

Yes. EOMONTH exists in both Google Sheets and Excel, so formulas imported from .xlsx files generally continue to work, though number formats may need adjusting.