How to use EOMONTH function in Excel

November 11, 2018

If you are looking to understand how to use EOMONTH function in Excel, then look no further. EOMONTH returns the last day of a month, N months in the future, or the past. A positive value will return a date from the future while using a negative value 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 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 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 month of our 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 your date, just insert 24 and Excel will return the proper value. Are you looking for the end of month 10 years from now? Perfect, just insert -120.

It is important to understand how to use EOMONTH function because it can prove very useful in many real-life tasks. You can create payment schedules 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 sees dates as numbers, with January 1, 1900, being the first date available. If you use dates imported from other sources formatted as text, Excel will not be able to recognize them and will display an error.

If you have additional questions please let me know by posting a comment.

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 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-2021