Returns the last date of a month, given a number of months before or away from the start date in date serial number.
Syntax
EOMONTH(start_date; months)
start_date: The date to which you want to add/remove the given number of months. E.g. "1/1/2020"
months: The number of months to add/remove. Counts backwards if negative. E.g. 5
Remarks
- The result can be formatted to display the date.
Examples
Formula | Result |
=EOMONTH("1/1/2020";5) | 44012 |
=EOMONTH("1/1/2020";-2) | 11/30/19 |
=EOMONTH("2/3/2020";12) | 44255 |
Get a hands-on experience of the function in the embedded range below.
Possible Errors
Errors | Meaning |
#N/A! | |
#NAME! | The function name is incorrect or invalid. The given defined name (if any) is invalid. There is a typo in the defined name used in the function. Double quotes are missing for text values in the function. Colon missing in a cell range reference.
|
#VALUE! | |
#REF! | |
Similar Functions