
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.
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.
Calculate the number of days between Jan 1 in B1 and Jan 15 in B2. Remember that DAYS uses end date first. Formula: =DAYS(B2,B1).
DAYS also works well with TODAY() when you want a live countdown.
=DAYS(B2, TODAY())
This updates automatically whenever the workbook recalculates.
Calculate how many calendar days remain until Jan 15 in B2. Formula: =DAYS(B2,TODAY()).
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.
Test whether the gap between B1 and B2 is more than 30 days. Formula: =DAYS(B2,B1)>30.
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.
Multiply the day count between B1 and B2 by 150. Formula: =DAYS(B2,B1)*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