Count days between dates
=DAYS(end_date, start_date)
| Parameter | Description |
|---|---|
end_date |
The end date. |
start_date |
The start date. |
With a start date in A1 and end date in A2:
=DAYS(A2,A1)
Will return the same result as:
=A2-A1
Unlike the simple formula above, the DAYS function can also handle dates in text format, as long as the date is recognized by Excel. For example:
=DAYS("7/15/2016","7/1/2016") // returns 14
The DAYS function returns the number of days between two dates. For example:
=DAYS("1-Mar-21","2-Mar-21") // returns 1
To include the end date in the count, add 1 to the result:
=DAYS("1-Mar-21","2-Mar-21")+1 // returns 2