Add days, months or years to a date in Excel
Adding days is simple addition; months and years need a function. EDATE, DATE with YEAR and MONTH, and what happens when you add a month to 31 January.
To add days to a date in Excel, add a number: =B2+14. To add
months, use EDATE: =EDATE(B2,1). To add years, use EDATE with 12
months for each year.
Here is a small subscription box business. Customers join on any day. They get a 14-day trial, then pay every month or every 3 months. Column C holds the number of months.
| Row | A | B | C | D | E |
|---|---|---|---|---|---|
| 1 | Customer | Joined | Months | Trial ends | Next payment |
| 2 | S-301 | 15 Jan 2027 | 1 | 29 Jan 2027 | 15 Feb 2027 |
| 3 | S-302 | 31 Jan 2027 | 1 | 14 Feb 2027 | 28 Feb 2027 |
| 4 | S-303 | 30 Nov 2026 | 3 | 14 Dec 2026 | 28 Feb 2027 |
Days: plain addition
A date in Excel is a number of days, so adding days is just a plus sign. In D2,
=B2+14 gives 29 Jan 2027. Fill it down.
It crosses the end of a month or a year with no help. 30 Nov 2026 plus 14 is 14 Dec 2026. For
weeks, add 7 for each week: =B2+7*4 is 4 weeks later.
If the date must skip weekends, use WORKDAY instead. The working days article shows how.
Months: EDATE
Months are not all the same length, so you cannot add a fixed number of days. EDATE takes a start date and a number of months.
In E2, type =EDATE(B2,C2). It gives 15 Feb 2027, the same day
one month later. Fill it down.
If the cell shows a number like 46433, the formula is fine. Format the cell as a date with Ctrl+Shift+3.
EDATE works in every current version of Excel. A negative number of months goes back in time.
What is one month after 31 January?
There is no 31 February, so something has to give. EDATE gives the last day of the month instead. Row 3 shows 28 Feb 2027.
The same rule works for row 4. 30 Nov 2026 plus 3 months would be 30 February. EDATE gives 28 Feb 2027. In a leap year the last day is 29 February, so 31 Jan 2028 plus 1 month is 29 Feb 2028.
The DATE way, and where it rolls over
You can also build the date from its parts. YEAR, MONTH and DAY take the start date apart. DATE puts it back together, with 1 added to the month.
=DATE(YEAR(B3),MONTH(B3)+1,DAY(B3)) gives 3 Mar 2027, not 28
February.
The formula asks for DATE(2027,2,31). February 2027 has 28 days. DATE does not stop there. It counts the 3 extra days into March.
Here are both methods side by side.
| Start | Add | EDATE | DATE(YEAR, MONTH+n, DAY) |
|---|---|---|---|
| 15 Jan 2027 | 1 month | 15 Feb 2027 | 15 Feb 2027 |
| 31 Jan 2027 | 1 month | 28 Feb 2027 | 3 Mar 2027 |
| 31 Jan 2028 | 1 month | 29 Feb 2028 | 2 Mar 2028 |
| 30 Nov 2026 | 3 months | 28 Feb 2027 | 2 Mar 2027 |
| 31 Mar 2027 | -1 month | 28 Feb 2027 | 3 Mar 2027 |
Look at the last row. One month before 31 March, the DATE way gives 3 March. That is still in March, which is almost never what anybody means.
The two agree on any day up to the 28th. They only differ at the end of a month. So a DATE formula can work for months. Then a customer joins on the 31st, and it fails.
What I would do: use EDATE for payments, contracts and reminders. Use the DATE way only if your rule really says "roll into the next month". The DATE, YEAR, MONTH and DAY article covers that rollover in more detail.
Why not add 30 days?
Because a month is 28 to 31 days. =B2+30 turns 15 Jan 2027 into
14 Feb 2027. It turns 31 Jan 2027 into 2 Mar 2027 and skips February.
Each payment then moves a little earlier or later than the day the customer joined. After a year the dates no longer match the day on the contract, and nobody knows why.
Years, and 29 February
For years, use EDATE with 12 months for each year. =EDATE(B2,12)
is one year later, and =EDATE(B2,24) is two.
The DATE way is =DATE(YEAR(B2)+1,MONTH(B2),DAY(B2)). It works on
every day but one. For a start on 29 Feb 2024, it gives 1 Mar 2025. EDATE gives 28 Feb 2025.
Adding 365 days is worse. 1 Mar 2027 plus 365 is 29 Feb 2028, because 2028 has one extra day. The date you get is one day early.
Questions people ask
How do I get the last day of the month after adding months?
Use EOMONTH. =EOMONTH(B2,1) gives the last day of the next month,
whatever day B2 is. =EOMONTH(B2,0) is the last day of B2's own month.
How do I take months away from a date?
Use a negative number. =EDATE(B2,-3) is 3 months before B2. It
follows the same month-end rule, so 31 Mar 2027 minus 1 month is 28 Feb 2027.
Can I add months and days together?
Yes. Add the days after EDATE. =EDATE(B2,1)+14 is one month and
14 days after B2. Add the months first, so the month-end rule uses the real start date.
Why does my new date show as a number?
Because a date is a number, and the cell has no date format yet. Nothing is wrong. The dates are numbers article explains why.