Dates function
EDATE function in Google Sheets and Excel
EDATE moves a date forward or back by a number of whole months, keeping the day of the month.
Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet
- Excel 2016
- Excel 2019
- Excel 2021
- Excel 2024
- Microsoft 365
- Google Sheets
Syntax
EDATE(start_date, months)Arguments in [brackets] are optional. Google Sheets writes it EDATE(start_date, months).
Example
=EDATE(C2,3) reads: Take Amara's start date in C2 and move it three months later.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Name | Dept | Started | Born | Salary | Level | Check-in | As of |
| 2 | Amara Osei | Sales | 15 Apr 2019 | 2 Aug 1990 | $58,000 | 2 | 15 Jul 2019 | 30 Jun 2026 |
| 3 | Ben Fischer | Support | 9 Jan 2023 | 21 Nov 1996 | $41,000 | 1 | 9 Apr 2023 | |
| 4 | Lina Chen | Engineering | 1 Sep 2016 | 14 Mar 1987 | $88,000 | 4 | 1 Dec 2016 | |
| 5 | Diego Alvarez | Sales | 28 Jun 2021 | 30 Jun 1993 | $52,000 | 2 | 28 Sep 2021 | |
| 6 | Eva Novak | Finance | 12 Feb 2018 | 5 Dec 1985 | $74,000 | 3 | 12 May 2018 | |
| 7 | Farid Haddad | Engineering | 4 Mar 2024 | 19 Jan 1998 | $68,000 | 2 | 4 Jun 2024 | |
| 8 | Grace Kim | Support | 19 Oct 2020 | 27 Sep 1991 | $45,000 | 2 | 19 Jan 2021 | |
| 9 | Hugo Martin | Finance | 11 May 2015 | 8 Apr 1979 | $88,000 | 4 | 11 Aug 2015 | |
| 10 | Ines Varga | Engineering | 14 Nov 2022 | 28 Feb 1995 | $79,000 | 3 | 14 Feb 2023 | |
| 11 | Kenji Mori | Sales | 25 Aug 2025 | 16 Jul 2000 | $39,000 | 1 | 25 Nov 2025 |
G2 shows 15 Jul 2019: three months after Amara's start date.
How the spreadsheet calculates it
Gives the date 3 month(s) after C2 (negative goes back).
- 1. EDATE: Gives the date
3month(s) afterC2(negative goes back).date=`C2`: the starting datemonths=`3`: how many months to move; negative goes back
More EDATE examples
=EDATE(C2,6)The end of a six-month probation from the start date.=EDATE(C2,12*5)The fifth work anniversary.=EDATE(TODAY(),-3)The date three months ago.=IF(EDATE(C2,6)<=$H$2,"Passed","In probation")Whether the probation has ended by the As of date.
Paste any of these into the formula explainer to see it step by step.
Tips
- Use negative months to look back, such as a date six months before a deadline.
- Fill a schedule down with
EDATE($B$1,ROW()-1)or point each row at the one above. - For the end of the month instead of the same day, use
EOMONTH.
What EDATE is used for
Probation end dates, renewal and expiry dates for contracts and subscriptions, warranty periods, and monthly payment schedules where each date is one month after the last.
Arguments
| Argument | Required | What it is |
|---|---|---|
| start_date | Yes | The date to move. |
| months | Yes | How many months to move: positive goes forward, negative goes back. Decimals are cut to whole months. |
Common mistakes
Adding days instead: months have different lengths.
Expecting the 31st to stay the 31st: when the target month is shorter, EDATE returns its last day, so 31 Jan + 1 month is 28 Feb 2026.
Getting a number like 43661: give the result cell a date format.
In Google Sheets
Google Sheets has EDATE with the same two arguments (start_date, months), so contract and probation dates calculate the same way in both apps.
Errors you may see with EDATE
Questions
How do I add months to a date in Excel?
EDATE(date, months): EDATE(C2,3) is three months later, EDATE(C2,-3) three months earlier. Adding 30 or 90 days drifts, because months have different lengths.
How do I add years?
Move by 12 months per year: EDATE(C2,12*5) is the fifth anniversary.
What happens on the 31st?
If the target month has no such day, EDATE gives that month's last day: EDATE(DATE(2026,1,31),1) is 28 Feb 2026.
How do I list monthly dates for a payment plan?
Put the first date in one cell and move each row on by its row count: with the first payment in B2, EDATE($B$2,ROWS($B$2:B2)-1) filled down gives the same day in every following month. In Microsoft 365, EDATE(B2,SEQUENCE(12)-1) makes all twelve at once.
Sources
Official documentation the facts on this page were checked against.