Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Automatically Advancing by a Month.

Automatically Advancing by a Month

by Allen Wyatt
(last updated March 13, 2015)


Jim has a need to advance the date in a particular cell by one month at midnight on the 14/15 of each month (00:00:00 on the 15th), and he wondered how it could be done.

As with many problems in Excel, the answer depends on the nature of the data involved and exactly what you want to do. If the date in the cell is today's date, and you simply want to have the cell display the current month up through the 14th, and then next month after that, then you can use a formula such as the following:


This formula returns the name of a month, not a date. If you prefer to have a date returned, you can use this formula:

MONTH(NOW())+1) & "/" & DAY(NOW()) & "/" & IF(MONTH(

Both of these formulas account for the "end of year wrap-around" when you advance from December to January. A shorter version of this last formula can be created if you use the DATE function instead of the DATEVALUE function:


This formula, unlike the DATEVALUE example, always returns a date that is the first day of any given month.

If you really want to advance the value of a particular date in a cell, then you must use a macro to do the task. Further, you must make sure that the macro only runs once a month, at a particular time on a particular day. For instance, if you wanted the macro to run at 00:00:00 on the 15th of each month, you would need to set up the macro so that it checked the date and time, and then ran at that particular date and time. You would also need to make sure that the workbook containing the macro was open over that date and time.

The following macro will fetch the date from a cell and increase it by a month. The macro assumes that you have a named range, DateCell, which refers to the cell to be updated.

Sub IncreaseMonth()
    Dim dDate As Date
    dDate = Range("DateCell").Value
    Range("DateCell").Value = _
      DateSerial(Year(dDate), _
      Month(dDate) + 1, Day(dDate))
End Sub

To make sure that the macro runs at the appropriate time, you would need another macro. The following macro is designed to be run whenever the workbook is opened:

Private Sub Workbook_Open()
If Day(Now) = 14 Then
    Application.OnTime ("23:59:59"), "IncreaseMonth"
End If
End Sub

Notice that this particular macro sets the OnTime method so that it runs the IncreaseMonth macro at 23:59:59 on the 14th. This date and time was chosen because it is easier to catch than is 00:00:00 on the 15th.

Remember that the IncreaseMonth macro will only run if you open the workbook on the 14th, and then leave the workbook open until the 15th.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2180) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Automatically Advancing by a Month.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...


Size Limit for Documents

Word can handle large documents, but how large is large? This tip examines the issue and provides some advice on how ...

Discover More

Forcing Input to Uppercase

If you type information into a workbook, you may want to make sure that what you type is always stored in uppercase. There is ...

Discover More

Specifying the Y Value in X of Y Page Numbering

Page numbers in Excel headers and footers have always been a source of frustration for users. This tip recounts one ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (menu)

Weekdays in a Month

Want to find out how many of a particular weekday occur within a given month? Here's how you can find the desired ...

Discover More

The EDATE Function

Want to figure a date a certain number of months in the future or past? The EDATE function may be just what you need for your ...

Discover More

Unique Date Displays

Need to print an elapsed date in a strange format? It's easier to do than may appear at first glance. Here's a discussion on ...

Discover More

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 0?

2017-04-26 04:09:30

Michael (Micky) Avidan


Check if the proposed formula answers your question.

(see Figure 1 below)
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2017)

Figure 1. 

2017-04-25 21:15:09


I too would like to know how to automatically advance the date a year.

I have a spreadsheet with contract expiration dates that automatically renew each year. I'd love to know a formula to have the date automatically jump one year (or 2, depending on the contract) based on the start date. So if a contract start date was 24 May 2015, I'd like the expiration to automatically jump to 23 May 2018 once 24 May 2017 hits. Is this possible? Thanks!

2017-04-24 13:18:04


I have a question-- I am working on a sheet where I am using sheet one as YTD (overall total and row for monthly) then on sheet 2 doing a monthly break down. Is there are formula that will pull to YTD the monthly number advancing each month so that way the formula doesn't have to be redone each time? EX,- when April info is added into monthly sheet it is pulled into ytd without have to change the cell on the main sheet?

2017-03-03 11:09:16

Patrick Brethen

How would I do this if want to advance a date once a year?

I track age changes of employees based on an anniversary. So for example, I need to list employee ages as of 9/1 each year. How do I automate this so when I open the workbook it auto-populates the age as of the most recent 9/1 anniversary?


2016-09-17 13:52:01

Ohisio John

Dear Allen Wyatt,

I used this function between Months. e.g from September to October. The function works well. This is how I did it but when the system, I meant when entering into a new Month, it showed me From October To October (the same Month). It does not show me From October To November. What could the error ?.

for September is below

for October is below

Please help.

2015-11-05 00:01:22


hello to get the current month I think the bellow formula is more useful and shorter:


2014-08-04 14:10:27



Using the EDATE function incrementing 31-Oct-2013 by 1 month gives 30-Nov-2013, incrementing 31-Oct-2013 by 4 months would give 28-Feb-2104 (and incrementing 31-Oct-2011 by 4 months would give 29-Feb-2012 as 2012 is a leap year).

@SM 10
I don't know idf you've figured this out by now - it's a year since you posted your request. But for anyone else the following function does what you want:

=TEXT(EDATE(A1-21,1),"mmmm") - assuming the date is in cell A1

2014-08-03 09:30:01

Michael (Micky) Avidan

To my opinion (if I correctly understood the task) the best and shortest way will be:
*** In the old versions (2000-2007) the EDATE function is part of the Analysis Toolpak Add-In, which comes with Excel, but needs to be activated.
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2015)

2014-08-02 18:33:14


If date is is 31.10.2013 then how you will increase by one month. If you do this it will increase to 1.12.2013

2013-04-26 10:31:10


I want to do a similar type of formula as above however I want to be able to display a specific month depending on the date.

for example
If the date entered between 22/01/2013 and 21/02/2013 I want to display February.
If the date entered between 22/02/2013 and 21/02/2013 I want to display March.
If the date entered between 22/03/2013 and 21/04/2013 I want to display April.
And so on and so on....

How can I do this using a simple formula?

This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.