
The Excel EOMONTH function returns the last day of the month, x months in the past or future. You can use EDATE to calculate expiration dates, due dates, and other dates that need to land on the last day of a month. Use a positive value for months to get a date in the future, and a negative value to get a date in the past.
Get the last day of the month in future or past months
A serial number that represents a particular date in Excel.
=EOMONTH (start_date, months)
EOMONTH takes two arguments: a start date, and months. Months represents the number of months to move in the future or past. For example, with May 12, 2017 in cell B5:
=EOMONTH(B5,0) returns May 31, 2017=EOMONTH(B5,4) returns Sep 30, 2017=EOMONTH(B5,-3) returns Feb 28, 2017
You can use EOMONTH to move through years as well:
=EOMONTH(B5,12) returns May 31, 2018=EOMONTH(B5,36) returns May 31, 2020=EOMONTH(B5,-24) returns May 31, 2015

The Excel EOMONTH function returns the last day of the month, x months in the past or future. You can use EDATE to calculate expiration dates, due dates, and other dates that need to land on the last day of a month. Use a positive value for months to get a date in the future, and a negative value to get a date in the past.
Get the last day of the month in future or past months
A serial number that represents a particular date in Excel.
=EOMONTH (start_date, months)
EOMONTH takes two arguments: a start date, and months. Months represents the number of months to move in the future or past. For example, with May 12, 2017 in cell B5:
=EOMONTH(B5,0) returns May 31, 2017=EOMONTH(B5,4) returns Sep 30, 2017=EOMONTH(B5,-3) returns Feb 28, 2017
You can use EOMONTH to move through years as well:
=EOMONTH(B5,12) returns May 31, 2018=EOMONTH(B5,36) returns May 31, 2020=EOMONTH(B5,-24) returns May 31, 2015