Calculate the exact number of days between any two dates — one simple formula.
DAYS returns the number of days between two dates. It is the clearest, most readable way to express a date difference in Excel — more self-documenting than subtracting dates directly, though both approaches produce the same result.
DAYS(end_date, start_date)| Argument | What it means |
|---|---|
| end_date required | The later date. Can be a cell reference, date text in quotes, or a DATE formula. |
| start_date required | The earlier date. |
DAYS(end, start) — the end date comes first. If you put start first, you'll get a negative number. This is the opposite of what feels intuitive to most people.
=DAYS(B2, A2)
-- Days between date in A2 and date in B2
=DAYS(TODAY(), A2)
-- How many days since the date in A2
=DAYS(DATE(2026,12,31), DATE(2026,1,1))
-- Days in 2026 (returns 364)These two formulas return identical results:
=DAYS(B2, A2)
=B2 - A2The difference is readability. DAYS(B2, A2) makes the intent immediately clear to anyone reading the formula. B2 - A2 works but requires knowing both cells contain dates.
Type it in a live spreadsheet, get instant feedback. No videos, no downloads.
Start practising free →