Google Sheets
DAYS function in Google Sheets
Returns the number of days between two dates.
=DAYS(end_date, start_date)DAYS syntax and parameters
Two arguments, two required.
- end_dateanyRequired
- start_dateanyRequired
DAYS examples
Formulas you'll actually reuse.
Days between invoice date and due date — end date first, then start:
=DAYS(C2, B2)Result
30Flag invoices whose due date has passed:
=IF(DAYS(TODAY(), C2) > 0, "Overdue", "Open")
DAYS in Excel
Same name — your formula ports as-is.
Try DAYS in the playground
Edit the example — nothing to install.
Preloaded with the DAYS formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Google Sheets gets this done.
- DATEConverts a provided year, month, and day into a date.DateExcel
- DATEDIFCalculates the number of days, months, or years between two dates.DateExcel
- DATEVALUEConverts a provided date string in a known format to a date value.DateExcel
- DAYReturns the day of the month that a specific date falls on, in numeric format.DateExcel
- DAYS360Returns the difference between two days based on the 360 day year used in some financial interest calculations.DateExcel
- EDATEReturns a date a specified number of months before or after another date.DateExcel