top of page

How to Round a Date to the First of the Next Month


How to Round a Date to the First of the Next Month - excel tutorial with examples

Contents:


Formula

= EOMONTH(date, 0) + 1

By feeding any date into this formula either by cell reference or a hardcoded value, this formula will round the given date down to the first of the next month.


Explanation

Lets break the formula using the below example:

rounding a date to the first of the next month
Formula to round a date to the first of the next month in excel

The EOMONTH function is used to return the end of the month from any month.


The first argument of the EOMONTH function is the start date, in this case we're using the date that we want to round up to the first of the next month.


The second argument is the number of months to increment up or down by. By using "0" in the formula, we are returning the end of the the month from any given input date.


In this example, the EOMONTH function will return 3/31/2023, from there we simply add one additional day to that date to return the first of the next month, or 4/1/2023.


Note:

- This formula will work correctly with all months, short or long. Even months such as February will automatically correct and adjust for leap years.


- If the dates that you're working with have a timestamp associated with them, but they are not needed, we can strip them out by adding on the INT function like so:

= INT(EOMONTH(date, 0) + 1

Using INT will round the date to the nearest whole number, removing the time data (stored as decimals) in Excel's date keeping conventions.


Example

How to Round A Date to the First of the Next Month

In this example, we have a list of dates in column B, and want to round all of those dates to the first of the next month in column C.


By putting our formula:

= EOMONTH(B3, 0) + 1

Next to the dates in column C, we can quickly calculate and round the dates. This process can be repeated anywhere in your workbook.

How to Round A Date to the First of the Next Month using a formula




bottom of page