EOMONTH function
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.
• 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)
=EOMONTH(A2,-3)