Date & time
DAYS
Number of days between two dates.
Syntax
DAYS(end_date, start_date)Example: =DAYS(C2,B2)
Available in: Excel 2013+
Try it
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =DAYS(B2,A2)
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Start | End | Holiday | Time | Result | |
| 2 | 3/15/2026 | 6/20/2026 | 5/1/2026 | 14:45 | 97 | |
| 3 | 1/31/2026 | 2/28/2026 | 5/9/2026 | 09:30 | ||
| 4 | 12/24/2025 | 1/9/2026 |
Result in F2: 97