1. Home
  2. Functions
  3. Date and time
  4. EOMONTH

EOMONTH function

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

Syntax

=EOMONTH(start_date, months)

Arguments

ArgumentRequiredDescription
start_dateRequiredThe starting date
monthsRequiredMonths to add (negative to go back)

How to use EOMONTH

EOMONTH takes 2 required arguments. Type =EOMONTH( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=EOMONTH(DATE(2011,1,1), 1)Result 40602, shown as 2/28/2011 with a date format
=EOMONTH(DATE(2011,1,1), -3)Result 40482, shown as 10/31/2010 with a date format

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.