Calc EOMONTH function

The EOMONTH function helps you find the last day of the month for a date that's a certain number of months away from a starting date.

Help CentreFunctions & Formulas

For a full list of available calculation functions, please read What calculation functions are supported.


Description

The EOMONTH function helps you find the last day of the month for a given date. This can be useful for determining due dates, deadlines, or maturity dates that always fall at the end of a month.


Syntax

EOMONTH(date)


The EOMONTH function syntax has the following arguments:

  • date Required. Dates should be entered either by using the "YYYY-MM-DD" format by using the DATE function, or as results of other formulas or functions.

Remarks

  • The function calculates the last day of the month for the date that is 'months' away from 'start_date'.
    • For instance, EOMONTH(DATE(2020, 1, 15), 1) gives you the last day of February 2020, since that's one month after January 15, 2020.
    • EOMONTH(DATE(2020, 1, 15), -2) gives you the last day of November 2019, which is two months before January 2020.

Example

FormulaDescriptionResult
=EOMONTH(2022-01-01)Date of the last day of the month.2022-01-31
=EOMONTH(2020-02-07)Date of the last day of the month.2020-02-29

Errors

For a full list of formula errors, please read Formula errors.


Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.