Excel EOMONTH Function
In this Article
This Excel Tutorial demonstrates how to use the Excel EOMONTH Function in Excel to find the last day of the month, n months away, with formula examples.
EOMONTH Function Description:
The EOMONTH Function Returns the last day of the month, n number of months away from the start date.
Syntax and Arguments:
The Syntax for the EOMONTH Formula is:
Function Arguments ( Inputs ):
start_date – The start date in Excel serial number format or entered as a date with quotations (“s) surround the date. Example: You can not enter 11/12/2015 directly into the cell. Instead you need to enter “11/12/2015” or you would need to use the corresponding serial number: 42320. Alternatively, you can reference a cell with the date 11/12/2015 entered. Excel automatically converts dates stored in cells into serial format (unless the date is entered as text).
months – Number of months away from start date. Number can be positive (future) or negative (past).
Use the EOMONTH Function to add or subtract months to a date and return the last day of the new month.
Simply enter the start date and then the number of months to offset. The number of months can be positive or negative.
The result of the EOMONTH Function may appear as a serial number. Change the cell Number Formatting to Short Date to display the serial number as a date:
EOMONTH Examples in VBA
You can also use the EOMONTH function in VBA. Type:
For the function arguments (start_date, etc.), you can either enter them directly into the function, or define variables to use instead.
Return to the List of all Functions in Excel
How to use the EOMONTH Function in Excel:
To use the AND Excel Worksheet Function, type the following into a cell:
After entering it in the cell, notice how the AND formula inputs appear below the cell:
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=EOMONTH(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
For more information about the EOMONTH Formula visit the