# EDATE formula generator

> Describe what you need and get a EDATE formula for Excel and Google Sheets, run on real data before you copy it. Plus 8 tested EDATE examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/edate · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

EDATE returns the date a given number of months before or after a start date, keeping the same day of the month.

Describe the task at [EDATE formula generator](https://spreadsheetpractice.com/tools/formula-generator/edate) and get a EDATE formula for Excel and Google Sheets, tested on real data.

## Tested EDATE examples

### Add months to a date

`=EDATE(B2,C2)`

Excel. Result on the sample sheet: 4 rows (D2:D5). [See it and try it](https://spreadsheetpractice.com/formulas/add-months-to-a-date)

### Get the same date last year

`=EDATE(A2,-12)`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/same-date-last-year)

### Calculate an end date from a start date and a term in months

`=EDATE(B2,C2)-1`

Excel. Result on the sample sheet: 5 rows (D2:D6). [See it and try it](https://spreadsheetpractice.com/formulas/calculate-an-end-date-from-a-term-in-months)

### Calculate a rolling 12-month total

`=SUM(B2:B13)`

Excel. Result on the sample sheet: 4 rows (C13:C16). [See it and try it](https://spreadsheetpractice.com/formulas/rolling-12-month-total)

### Build a summary table with SUMIFS

`=SUMIFS($D$2:$D$12,$B$2:$B$12,$F2,$A$2:$A$12,">="&G$1,$A$2:$A$12,"<="&EOMONTH(G$1,0))`

Excel. Result on the sample sheet: 3 rows (G2:I4). [See it and try it](https://spreadsheetpractice.com/formulas/summary-table-with-sumifs)

### Sum by fiscal year

`=SUMPRODUCT((YEAR(EDATE($A$2:$A$9,6))=E2)*$C$2:$C$9)`

Excel. Result on the sample sheet: 2 rows (F2:F3). [See it and try it](https://spreadsheetpractice.com/formulas/sum-by-fiscal-year)

## Questions

### What does the EDATE formula generator do?

You describe the task in plain English, and it writes the formula, using EDATE where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does EDATE do?

EDATE returns the date a given number of months before or after a start date, keeping the same day of the month.

### Can I learn to write EDATE formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the EDATE function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
