ExcelExcel 2013+
DAYS function in Excel
Returns the number of days between two dates
=DAYS(end_date, start_date)DAYS syntax and parameters
Two arguments, two required.
- end_dateanyRequired
Start_date and End_date are the two dates between which you want to know the number of days.
- start_dateanyRequired
Start_date and End_date are the two dates between which you want to know the number of days.
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 Google Sheets
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 Excel gets this done.
- DATEReturns the serial number of a particular dateDateGoogle Sheets
- DATEDIFCalculates the number of days, months, or years between two dates. This function is useful in formulas where you need to calculate an age.DateGoogle Sheets
- DATEVALUEConverts a date in the form of text to a serial numberDateGoogle Sheets
- DAYConverts a serial number to a day of the monthDateGoogle Sheets
- DAYS360Calculates the number of days between two dates based on a 360-day yearDateGoogle Sheets
- EDATEReturns the serial number of the date that is the indicated number of months before or after the start dateDateGoogle Sheets