EOMONTH function

Category: Date and time
Introduced: Excel 2003

Summary

Returns the serial number of the last day of the month before or after a specified number of months

Syntax

EOMONTH(start_date, months) The EOMONTH function syntax has the following arguments:
• Start_date Required. A date that represents the starting date. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
• Months Required. The number of months before or after start_date. A positive value for months yields a future date; a negative value yields a past date. Note: If months is not an integer, it is truncated.

Example

=EOMONTH(A2,1)
=EOMONTH(A2,-3)

Microsoft Support Page

https://support.microsoft.com/en-us/office/eomonth-function-7314ffa1-2bc9-4005-9d66-f49db127d628

Back to Functions