The Excel Eomonth function returns the last day of the month, that is a specified number of months before or after an initial supplied start date.
The syntax of the function is:
where the arguments are as follows:
start_date | - | The initial date. |
months | - | The number of months (positive or negative) to add to the start_date, before returning the last day of the resulting month. |
Note that it is advised that you do not type dates directly into functions, as Excel interprets text representations of dates differently, depending on the date interpretation settings on your computer.
Therefore the start_date argument for the Eomonth function should be input as either:
Column B of the following spreadsheet shows several examples of the Eomonth function.
Formulas:
|
Results:
|
The above examples show that:
For further examples of the Excel Eomonth function, see the Microsoft Office website.
If you get an error from the Excel Eomonth function this is likely to be one of the following:
#NUM! | - |
Occurs if either:
|
#VALUE! | - | Occurs if any of the supplied arguments are non-numeric. |