Syntax
=EDATE(start_date, months)Arguments
| Argument | Required | Description |
|---|---|---|
start_date | Required | The starting date |
months | Required | Months to add (negative to go back) |
How to use EDATE
EDATE takes 2 required arguments. Type =EDATE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=EDATE(DATE(2011,1,15), 1)Result =EDATE(DATE(2011,1,31), 1)Result Related date and time functions
- DATEVALUEConverts a date written as text into a date serial number.
- DAYReturns the day of the month (1 to 31) of a date.
- DAYSReturns the number of days between two dates.
- DAYS360Returns the days between two dates on a calendar of twelve 30 day months.
- EOMONTHReturns the last day of the month a number of months before or after a date.
- HOURReturns the hour (0 to 23) of a time.
- ISOWEEKNUMReturns the ISO week number of the year (weeks start on Monday, week 1 contains the first Thursday).
- MINUTEReturns the minute (0 to 59) of a time.
- MONTHReturns the month (1 to 12) of a date.