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

  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 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…