EOMONTH Function

It identifies the end of the month for a specific date by adding or subtracting a set number of months and is used to calculate expiration/due/other dates that fall on the last day of the month.

Author: Kseniia Tokarieva
Kseniia Tokarieva
Kseniia Tokarieva
Experienced financial professional with eight years in audit and financial reporting, holding an MSc in International Money Finance and Investment from Durham University, along with dual bachelor's degrees in Finance and Economics with financial applications from Southern Methodist University.
Reviewed By: Andy Yan
Andy Yan
Andy Yan
Investment Banking | Corporate Development

Before deciding to pursue his MBA, Andy previously spent two years at Credit Suisse in Investment Banking, primarily working on M&A and IPO transactions. Prior to joining Credit Suisse, Andy was a Business Analyst Intern for Capital One and worked as an associate for Cambridge Realty Capital Companies.

Andy graduated from University of Chicago with a Bachelor of Arts in Economics and Statistics and is currently an MBA candidate at The University of Chicago Booth School of Business with a concentration in Analytical Finance.

Last Updated:November 6, 2023

What is the EOMONTH Function?

The end of the month (further referred to as EOMONTH) excel function identifies the end of the month for a specific date by adding or subtracting a set number of months and is used to calculate expiration/due/other dates that fall on the last day of the month.

The EOMONTH function can be found under the Date & Time category on the Formulas tab. It can also be used as a worksheet function, which can be entered as part of a formula in a worksheet cell. 

Financial specialists commonly use the function to:

  • Identify the maturity dates for financial instruments that fall on the last day of the month.
  • Automate the process of finding a specific date in financial modeling.
  • Adjust the maturity dates of the financial instruments to reflect the end of the reporting period date so that it could be used in further calculations.

Key Takeaways

  • The EOMONTH function is used to identify the last day of the current month or the last day of a specific month in the future or the past. 
  • The function returns the result as a serial number; additional steps are required to convert the result into a user-friendly date format.
  • Financial specialists widely use the function.
  • Eomonth can be used to identify the beginning of the month date. 
  • To avoid errors when using the EOMONTH function, it is recommended for the start_date argument to be an automatic calculation.

EOMONTH function Formula

As mentioned before, there are multiple ways to use the function. First, you can utilize the Formulas tab. The function can be found under Date & Time category:

Excel Formulas

After you select the function from the list, the formula automatically appears. All you have to do at this point is to select the arguments specified below.

Second, you can click on any cell in a worksheet and type the formula. The excel formula is as follows:

= EOMONTH (start_date;months)

The function uses start_date and months arguments, where:

  • start_date – is a date that represents the start date
  • months – a specific number of months preceding or following the starting date

Note

The number of months can either be positive or negative. A positive number returns the date in the future, while a negative number returns the date backward.

Finally, you can simultaneously utilize the Formulas tab and the manual input of the formula. Select any cell in a worksheet, continue to the Formulas tab, press the Insert Function button, and then start typing the formula.

Function

How to use the EOMONTH Function in Excel?

The EOMONTH function can be used in different circumstances, including cases when one needs to identify the start of the month date.

Example

Examples one through three show what the function returns when identifying the end date of any specific month:

  • Example #1 shows the last day of the current month
  • Example #2 shows the last day of the month, three months after the date specified in cell B3
  • Example #3 shows the last day of the month, two months before the date specified in cell B4
  • Example #4 illustrates how to determine the start of the month date using the EOMONTH function.

Note

Excel has no built-in function that returns the ‘beginning of the month.’ The problem can be solved by using the EOMONTH function to find the prior month's end date and adding one day to the result.

Remember, cells B2 through B5 should contain a valid date for the function to return the proper result.

Example 2

Consider a company with a financial instrument accruing interest on the 18th day of each month by the contract terms. At the same time, the reporting date is December 31, 2022.

The company has elected to account for its expenses on an accrual basis, which means that expenses are recognized when incurred rather than paid. In other words, the company must recognize the accrued interest in its financial statements up to the reporting date.

To identify the number of days for the accrual of additional interest, you can use the EOMONTH function.

Table

In the example, you start by specifying the interest date following the contract terms closest to the reporting date. Then the EOMONTH function is used to identify the last day of the month. Finally, one date is subtracted from another to arrive at the number of days for the interest accrual.

The EOMONTH function returns the last day of a given month. If you need to identify a specific date in a certain period in the future or the past, the EDATE function can be used.

Things to remember about the EOMONTH Function

Like any other Excel function, some things need to be considered when using the EOMONTH function.

Things that should be considered are:

  • The function returns the result in the form of a serial number. Therefore, additional steps are required to convert the result into a readable date format. The use of the Date data format can help you with that.
  • The function returns the #NUM! Error value in cases when the start_date is not a valid date.
  • In cases when start_date plus/minus a set number of months yields an invalid date, the EOMONTH function returns #NUM! Error value. This error occurs, for example, when the number of months specified in a formula equals 100,000.
  • If the start_date is in text format, the function will return #VALUE! Error.
  • The function will not work with 01/01/1899 as a start_date; by default, 01/01/1900 is a starting point in Excel. For the same reason, the function will also not work with 31/12/9999.

Note

Overall, it is recommended for the start_date to be an automatic calculation or a cell reference to reduce the potential for any error messages.

Researched and authored by Kseniia Tokarieva |LinkedIn

Reviewed and edited by Parul GuptaLinkedIn

Free Resources

To continue learning and advancing your career, check out these additional helpful WSO resources: