Skip to content
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.

  1. Days between invoice date and due date — end date first, then start:

    =DAYS(C2, B2)

    Result30

  2. Flag 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…