Excel.Tips.Net Welcome toExcel.Tips.Net

Helpful Links

Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment

Tips.Net Store

ExcelTips FAQ
ExcelTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

Newest Tips

Recording a Macro

Adding a Little Animation to Your Life

Converting a Range of URLs to Hyperlinks

Making the Formula Bar Persistent

Engineering Calculations

Digital Signatures for Macros

Fixing the Decimal Point

 

The EDATE Function

Summary: You can use the EDATE function to determine a date a number of months in the past or future. This function is part of the Analysis ToolPak. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

If you have a need to determine a date that is a known number of months in the future or the past, then the EDATE function can be quick and easy. For instance, if you are working with expiration dates for six-month contracts, you can use the following formula:

=EDATE(NOW(),6)

The function takes the first date provide (in this case, using the NOW() function) and uses the second parameter to determine the number of months future or past that should be calculated. The date parameter you use should resolve to a date serial number, and not be a textual date.

If you use a negative value for the second parameter, then EDATE calculates a date in the past. For instance, if you wanted a date that was three months in the past, then you could use the following:

=EDATE(NOW(),-3)

EDATE returns a date serial number; you may need to format the cell so it uses a date format that formats the returned value as you want it to appear.

You should note that if the EDATE function does not work on your system, it means you have not installed or enabled the Analysis ToolPak. Install the ToolPak and then you should be able to use the function.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3186) applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007

Don't Go in Debt for Christmas! Tired of trying to keep up with the Joneses for Christmas? Want to enjoy the season rather than dread the aftermath? Learn how you can avoid the financial traps that spring up every Christmas.
 
Check out Top Fifteen Tips for Financing Christmas today!