EDATE
Syntax:
EDATE ( start-date , month-offset )
Description: Computes the serial value of the date that is month-offset months from the date specified by the date date-string, taking into account the current date base value.
Arguments:
Name |
Type |
Description |
---|---|---|
start-date |
number |
The start date. |
month-offset |
number |
The number of months before or after start-date, truncated to integer. A positive value yields a future date; a negative value yields a past date; a zero value yields the date start-date. |
Return Type and Value: number – The serial value of the date that is month-offset months from the date specified by the date date-string, as a whole number.
However, if
start-value is out of range for the current date base value,
#NUM!
is returned.start-value plus month-offset is out of range for the current date base value,
#NUM!
is returned.
For the 1904 date base system:EDATE(DATE(2006,1,31),5)
results in a serial value of 37436
EDATE(DATE(2004,2,29),12)
results in a serial value of 36949
EDATE(DATE(2004,2,28),12)
results in a serial value of 36949
EDATE(DATE(2004,1,15),-23)
results in a serial value of 35840
]