EDATE()

Note

In Excel 2003, this function is available as an add-in.

Syntax. EDATE(start_date,months)

Definition. This function returns the serial number of the date that is the indicated number of months before or after the start date.

Arguments

  • start_date (required). The date that represents the start of the calculation.

  • months (required). Indicates the number of months before or after the start date. A positive value for the months returns a future date, and a negative value returns a past date.

Background. The EDATE() function calculates the date for the specified number of months before or after the start date. Alternatively, you can use the YEAR(), MONTH(), and DAY() functions to divide the start date into three parts. Increase the month value as required, and then re-compile the three parts with the DATE() function to generate a regular date (serial number).

=DATE(YEAR(start_date),MONTH(start_date)+months,DAY(start_date))

If the start date is not a valid date, the EDATE() function returns the #VALUE! error. If a month is not an integer, the decimal places are truncated.

See Also

For more information about saving dates in Excel, see the section titled The Excel Date System in Chapter 2.

Example. Assume that you want to calculate the end of an 18-month construction project. The formula

=EDATE("01/02/2010",18)

returns 07/02/2011 (see Figure 7-3).

Here are some further examples:

  • =EDATE("01/02/2010",24) returns 01/02/2012.

  • =EDATE("01/03/2010",0) returns 01/03/2010.

  • =EDATE("01/04/2010",-5) returns 08/04/2009.

Calculating the end date of projects.

Figure 7-3. Calculating the end date of projects.

See Also

DATE(), DATEDIF(), DAYS360(), EOMONTH(), NETWORKDAYS(), NETWORKDAYS.INTL(), WORKDAY(), WORKDAY.INTL()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.174.253