DAYS Function
Return the number of days between two dates. end_date and start_date are date serial numbers or dates in text form; the end date comes first. The result is negative when the end date is before the start date. Text that is not a date returns #VALUE!.
Syntax
DAYS(end_date, start_date)
Category: Date & Time. Minimum arguments: 2. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=DAYS(DATE(2026,1,3),DATE(2026,1,1))
The formula returns 2.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.