Days between two dates
Count the calendar days from a start date to an end date.
The formula
Excel and Google Sheets
=DAYS(B2, A2)How it works
B2The end date (comes first in DAYS).
A2The start date.
Example
| A: Start | B: End | C: Result |
|---|---|---|
| 2026-01-01 | 2026-01-31 | 30 |
| 2026-02-15 | 2026-03-01 | 14 |
Tips
- =B2-A2 gives the same number; format the cell as Number, not Date.
- Add 1 if both the start and end day should count.