Excel EOMONTH Function
The Excel EOMONTH function returns the last day of the month, n 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.
- start_date - A date that represents the start date in a valid Excel serial number format.
- months - The number of months before or after start_date.
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:
You can use EOMONTH to move through years as well:
See links below for more examples of how to use the EOMONTH function in formulas.
- For months, use a positive value for future dates and a negative value for dates in the past.
Note: in Excel's date system, dates are serial numbers. January 1, 1900 is number 1 and later dates are larger numbers. To display date values in a human-readable date format, apply a the number format of your choice.