How to use EOMONTH function in Excel

December 23, 2021

If you are looking to understand how to use EOMONTH function in Excel, then look no further. EOMONTH is a date function that returns the last day of a month, a specified number of months into the future, or the past. Using a given date and supplying a positive number will return a date from the future while using a negative number will return a date from the past. If you want to retrieve the last day of the current month you can use zero.

How to use the EOMONTH function

How to use EOMONTH function in Excel

The syntax of EOMONTH is very simple:
=EOMONTH(start_date, months)

There are only two arguments:
start_date - A date that represents the start date. Please make sure the date format is valid, otherwise, Excel will return an error.
months - The number of months before or after the start_date.

In our example, the formula from cell D3 will return the date December 31, 2017. Since the months argument is set to 0, Excel will retrieve the last day corresponding to the current month since this is the start_date.

EOMONTH can also be used to move through the years. All you need to do is specify the number of months which is a multiple of 12. If you need the last day of the month 2 years from the initial date, just insert 24 and Excel will return the proper date. Are you looking for the end of month 10 years from now? Perfect, just insert the start date and use 120 for the months argument. All you need to do is make sure you have a valid date.

It is important to understand how to use EOMONTH function because it can prove very useful in many real-life tasks. For example, you can create payment schedules with pre-defined maturity dates that require payments on the last day of the month, you can check how many days/working days are left until the end of the month, or you can get the first day of the month.

Note: Excel stores dates internally as numbers, with January 1, 1900, being the first date available. You need to use a valid Excel date. Watch out when importing data from other sources. Excel EOMONTH function returns an error message when you use dates formatted as text.

What to do next?

I hope that after reading this tutorial you have a better understanding of how to use EOMONTH function, when to use it to manipulate dates, how to apply positive or negative arguments to move into the future or the past, and how to implement this Excel function into other formulas.

If you are interested in expanding your Microsoft Excel knowledge, then I strongly encourage you to read some of the most popular articles:

If you have additional questions please let me know by posting a comment. I reply to all the comments that I receive.

Thousands of people have benefited from my free Excel lessons. My only question is, will you be next?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Essential Functions

Excel Topics

Excel courses

I have compiled a list of the best Excel online courses. It covers basic and advanced topics, VBA, and Power BI.
View courses
Excel is a very complex application, and understanding it on your own may prove difficult and time-consuming. I have created ExcelExplained.com to help you better understand each function and provide useful examples for different tasks. If you can’t find the answer to your question in one of the published articles, please leave a comment or send me an email, and I will do my best to help you out.

Affiliate Disclosure: When you purchase a product through a link on our website, I may earn an affiliate commission. There are no additional costs to you.
Copyright © 2017-2022 ExcelExplained.com