How to count days between dates
Syntax
=end_date - start_date or =DAYS(end_date, start_date)end_date - start_date- Plain subtraction. Format the result as a number, not a date.
DAYS(end, start)- The same result as a function; note the end date comes first.
NETWORKDAYS(start, end)- Use instead when you only want weekdays.
Example
A project started on the date in B2 and you want how many days it has been running.
=TODAY() - B2Updates every day. Add 1 if both the start and end day should count.
Common mistakes
- The result shows as a date like 1/14/1900. Change the cell format to Number.
- Dates typed as text (left-aligned) give #VALUE!. Re-enter them or convert with DATEVALUE.
Questions people ask
How do I count months or years between dates?
Use DATEDIF: =DATEDIF(B2, C2, "M") for whole months, "Y" for years.
Practice it above: type the formula in the formula bar and press Enter to check.