Due Date Formula in Excel: How to Calculate

Formulas & functions · Updated November 23, 2026

The formula to calculate a due date in Excel is =DATE(YEAR(start_date), MONTH(start_date) + months, DAY(start_date)) for adding a specific number of months, or simply =start_date + days for adding days. For example, if cell A1 contains 1/15/2024 and you want a due date 30 days later, enter =A1+30 in cell B1, which returns 2/14/2024. This article explains the core formulas, how to handle edge cases, and answers common questions about due date calculations.

Why Calculate Due Dates in Excel?

Excel is a common tool for tracking deadlines—invoice due dates, project milestones, subscription renewals, or loan payment schedules. Manually counting days or months is error-prone, especially when dealing with varying month lengths or leap years. Excel’s date functions handle these complexities automatically, so you can enter a start date and a number of days or months, and the formula returns the exact due date, accounting for February 29 and months with 30 or 31 days.

For instance, if you add 1 month to January 31, Excel returns February 29 in a leap year (or February 28 in a non-leap year) because it uses the last day of the target month when the day exceeds the month’s length. This behavior is consistent with most business date logic, but you should be aware of it if you expect a different result.

Basic Formulas for Adding Days or Months

The simplest due date formula is adding a number of days to a start date. With the start date in A1 and the number of days in B1, use:

=A1+B1

This works because Excel stores dates as serial numbers; each day is one whole number. For example, if A1 is 3/1/2024 and B1 is 45, the result is 4/15/2024. You can also hardcode the days: =A1+30.

For adding months, use the EDATE function, which is designed for this purpose: =EDATE(start_date, months). If A1 is 1/31/2024 and you want a due date 3 months later, =EDATE(A1,3) returns 4/30/2024. Note that EDATE always returns the same day of the month, except when that day doesn’t exist in the target month, in which case it returns the last day of that month.

If you need to add years, you can use =DATE(YEAR(A1)+years, MONTH(A1), DAY(A1)), but be aware that this will return an error for February 29 in a non-leap year. A simpler approach is to use =EDATE(A1, years*12), which handles the leap year gracefully.

Calculating Due Dates with Workdays (Business Days)

Many due dates exclude weekends and holidays. Excel’s WORKDAY function adds a specified number of workdays to a start date, skipping weekends and optionally a list of holidays. The syntax is =WORKDAY(start_date, days, [holidays]).

For example, if A1 contains 6/3/2024 (a Monday), and you want a due date 10 workdays later, =WORKDAY(A1,10) returns 6/17/2024 (skipping two weekends). If you have a list of holidays in cells D1:D5, use =WORKDAY(A1,10,D1:D5) to exclude those dates as well.

Note that WORKDAY counts the start date as day 0, so adding 1 workday to a Monday gives Tuesday. If you need to include the start date as day 1, use =WORKDAY(A1, days-1).

For a more flexible version that allows custom weekends (e.g., Friday-Saturday weekend), use WORKDAY.INTL. Its syntax is =WORKDAY.INTL(start_date, days, [weekend], [holidays]), where the weekend argument is a number or string. For instance, =WORKDAY.INTL(A1,10,7) treats Friday and Saturday as the weekend (7 is the code for Fri-Sat).

Handling Due Dates That Fall on Weekends or Holidays

Sometimes you want the due date to be the next business day if the calculated date falls on a weekend or holiday. You can combine WORKDAY with a logical check. For example, to get the next workday after a date in A1, use =WORKDAY(A1-1,1). This subtracts one day, then adds one workday, effectively moving to the next workday if A1 is not a workday.

If you want to round a due date to the next Monday if it falls on a weekend, use =A1 + (8 - WEEKDAY(A1,2)) where WEEKDAY(A1,2) returns 1 for Monday through 7 for Sunday. For a due date in A1, this formula adds the number of days to reach the next Monday. For example, if A1 is Saturday 6/8/2024, WEEKDAY returns 6, so the formula adds 2 days, giving Monday 6/10/2024.

For holidays, you need a more complex formula that loops, but a practical approach is to use WORKDAY with a holiday list and a small adjustment: =WORKDAY(A1+1,0) returns the next workday after A1, but it doesn’t handle the case where A1 itself is a holiday. A common trick is to use =WORKDAY(A1-1,1) as mentioned.

Common Errors and How to Fix Them

A frequent error is seeing #VALUE! when adding days to a text-formatted date. Ensure your date cells are actually dates, not text. You can test by checking if =ISNUMBER(A1) returns TRUE. If not, convert the text to a date using =DATEVALUE(A1) or use the Text to Columns feature (Data > Text to Columns > Delimited > Next > Next > Date > MDY).

Another issue is the #NUM! error, which can occur if you use EDATE with a negative number of months that goes before 1900, or if you use WORKDAY with a negative number of days that goes before the start of the Excel date system (January 1, 1900).

If your due date appears as a number like 45678, the cell is formatted as General. Apply a date format by selecting the cell and pressing Ctrl+Shift+3 (on Windows) or Cmd+Shift+3 (on Mac), or go to Home > Number Format > Date.

When copying formulas, ensure the cell references are correct. If you drag a formula down and the start date reference changes unintentionally, use absolute references like $A$1 to lock it.

Comparing EDATE, DATE, and Simple Addition

Which formula you choose depends on what you’re adding. For days, simple addition is best. For months, EDATE is the most reliable because it automatically adjusts for month lengths and leap years. The DATE function with MONTH+months is more verbose but gives you the same result in most cases; however, it will return an error for February 29 if the target year is not a leap year. For example, =DATE(2025,2,29) returns #VALUE! because 2025 is not a leap year, whereas =EDATE(DATE(2024,2,29),12) returns 2/28/2025.

For years, EDATE with months*12 is the safest. For workdays, WORKDAY is the only standard function that accounts for weekends and holidays.

If you need to calculate a due date based on a specific day of the week (e.g., the first Monday of next month), you’ll combine DATE, WEEKDAY, and MOD functions. For example, to get the first Monday of the month in A1, use =A1 - DAY(A1) + 1 + MOD(8 - WEEKDAY(A1 - DAY(A1) + 1,2),7).

Frequently Asked Questions

How do I add 30 days to a date in Excel?

Simple: if your date is in cell A1, use =A1+30. This works because Excel treats dates as numbers. The result will be a date serial number, so format the cell as a date. For example, 4/1/2024 + 30 = 5/1/2024.

What is the difference between EDATE and DATE in Excel?

EDATE is specifically for adding months to a date and automatically adjusts for month lengths and leap years. DATE is a general function that creates a date from year, month, and day components. When you use DATE(YEAR(A1), MONTH(A1)+3, DAY(A1)), it can return an error if the day doesn’t exist in the target month (e.g., February 30). EDATE handles that by returning the last day of the month.

Can I calculate a due date excluding weekends and holidays?

Yes, use the WORKDAY function. For example, =WORKDAY(A1, 10, D1:D10) adds 10 workdays to the date in A1, skipping Saturdays, Sundays, and any dates listed in D1:D10. If you need a custom weekend, use WORKDAY.INTL.

Why does my due date formula return a number like 45678?

That’s because the cell is formatted as General, not as a date. Excel stores dates as serial numbers, so the formula result is a number. To fix it, select the cell, go to Home > Number Format, and choose a date format like Short Date. Alternatively, press Ctrl+Shift+3 on Windows or Cmd+Shift+3 on Mac.

How do I calculate a due date that is the next business day after a weekend?

If your calculated date is in cell A1, use =WORKDAY(A1-1,1). This subtracts one day, then adds one workday, effectively moving to the next workday if A1 is a weekend or holiday. For example, if A1 is Saturday, the formula returns Monday.

What if I need to add a certain number of years to a date?

Use =EDATE(A1, years*12). This adds the equivalent number of months, which is the safest way to handle leap years. For example, =EDATE(A1, 5*12) adds 5 years. Alternatively, you can use =DATE(YEAR(A1)+5, MONTH(A1), DAY(A1)), but that may error on February 29 in a non-leap year.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.