Excel & Google Sheets Function
DAYS function in Excel (with interactive examples)
DAYS calculates the exact number of calendar days between an end date and a start date.
Syntax
=DAYS(end_date, start_date)Live Interactive Exercise — Try it nowNo login required
Interactive practice grid (DAYS reference)
Try our live spreadsheet engine: total Q1 sales in cell B5 using =SUM(B2:B4).
B5fx
| A | B | |
|---|---|---|
| 1 | Month | Sales |
| 2 | Jan | $1,100.00 |
| 3 | Feb | $1,350.00 |
| 4 | Mar | $1,550.00 |
| 5 | Total | type here |
Insert:
Arguments explained
| end_date | Required | Later date (comes FIRST in DAYS). |
| start_date | Required | Earlier date. |
Common errors & fixes
Negative result: DAYS puts end_date FIRST (opposite of DATEDIF which puts start_date first).
Excel vs Google Sheets
Identical in Google Sheets.
Practise DAYS in a full 4-minute lesson
Every lesson is free to study — build real speed with instant feedback.
Free 1-Page Excel, Google Sheets & SQL Interview Cheat Sheet
The 25 formulas, keyboard shortcuts, and SQL patterns tested most in analyst interviews — emailed instantly, zero spam.