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.
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.
Learn more about Allen...
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: End-of-Month Calculations.
There are many ways you can use Excel to calculate the date at the end of the next month. One such way, using the EOMONTH function, as described in other ExcelTips. There are ways you can do it, however, without using that add-in function.
For instance, one approach is to AutoFill for the last days. (Sounds almost religious, doesn't it?) Let's say you wanted the last days of a series of months in the first column, beginning at A4. All you need to do is this:
The result is that the area you drag over in step 5 is filled with end-of-month dates for the next however many months. Pretty cool! A slight variation on these steps could also be used:
If you are not an AutoFill type of person, and instead prefer to use formulas, you could enter the starting end-of-month date in cell A4, and then the following formula in A5:
This formula calculates the date for the first day of the month two months in the future, and then subtracts one from it. The result is the last day of the next month. The formula wraps around the end of years just fine, since the DATE function increments the years properly if the month value provided is greater than 12.
Another formulaic approach is to use the following:
This formula works because it adds 32 to the starting date (to make sure you are past the end of the following month), and then subtracts the number of days the result is past the end of the month.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2181) 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: End-of-Month Calculations.
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!