
Calculate the number of calendar days between two dates. DAYS is useful when you need a straight day count without removing weekends or holidays.
The DAYS function returns the number of calendar days between two dates. It gives you a straight day difference, so weekends and holidays still count like any other day.
This makes DAYS useful when you want elapsed time in the simplest sense. Shipping time, storage fees, countdowns, and calendar-based thresholds are all common examples.
DAYS is best used when the worksheet only needs the straight calendar gap between two dates. It keeps the calculation simple and readable, which is helpful for elapsed-time checks, due-date comparisons, and quick reports where weekends and custom calendars do not need special handling.
Use DAYS when you need the raw day gap and do not want business-day rules.
Positive results usually mean the end date is later. Negative results mean the order is reversed.
=DAYS(end_date, start_date)
DAYS takes the end date first and the start date second. That order is easy to mix up, especially if you are used to subtracting cells directly.
If both values are valid Excel dates, DAYS returns the difference in whole calendar days. It does not remove Saturdays, Sundays, or holidays.
If either input is not recognized as a real date, Excel can return an error.
DAYS is only one way to measure time between dates. The right choice depends on what kind of day count you need.
| Function | What It Counts | Best For | Example |
|---|---|---|---|
DAYS |
Calendar days | Simple elapsed time between two dates | =DAYS(B2,B1) |
NETWORKDAYS |
Working days | Schedules and lead times that exclude weekends | =NETWORKDAYS(B1,B2) |
DATEDIF |
Completed units | Ages, tenures, and full months or years | =DATEDIF(B1,B2,"d") |
B2-B1 |
Raw serial difference | Quick date math when both cells already contain real dates | =B2-B1 |
A simple way to think about it is this: use DAYS when you want the calendar gap and want the formula to say that intention clearly.
One common use for DAYS is any report where every day matters equally. If an item sat in storage for 12 days, or a deadline is 5 days away, DAYS gives you that number directly.
It also helps when you want a clearer formula than plain subtraction. A formula like =DAYS(B2,B1) is a little easier to read later because it immediately tells you that the calculation is about dates.
DAYS for countdowns and elapsed calendar time.That negative result can actually be useful. It tells you a target date has already passed instead of hiding that situation behind a positive number.
This is the basic use of DAYS: count the calendar gap between a start date and an end date.
=DAYS(B2, B1)
If B1 is January 1 and B2 is January 15, the result is 14.
In cell D2, calculate the number of days between the dates in B2 and C2.
DAYS also works well with TODAY() when you want a live countdown.
=DAYS(B2, TODAY())
This updates automatically whenever the workbook recalculates.
In cell D3, calculate how many calendar days remain until the date in C3.
If you flip the arguments, the result changes sign. That is useful when overdue items should show as negative numbers.
=DAYS(B1, B2)
A negative result means the first date is earlier than the second date.
In cell D4, test whether the gap between B4 and C4 is more than 30 days.
Because the result is numeric, you can plug it straight into rate-based formulas.
=DAYS(B2, B1) * 150
This is a simple pattern for storage fees, penalties, or daily charges.
In cell D5, multiply the day count between B5 and C5 by 150.
DAYS is a good fit when you need the plain calendar difference between two dates and nothing more. It stays simple, readable, and easy to reuse in larger formulas.
DAYS returns the number of calendar days between two dates.Tell your friends about this post