SheetsLessons
Date & Time function

DAYS function in Google Sheets

DAYS returns the number of days between two dates. It gives the same answer as subtracting one date from the other, but the end date comes first, which some people find easier to read.

Syntax

=DAYS(end_date, start_date)
end_date
The later date.
start_date
The earlier date.

Practice DAYS

Task 1 of 1

How many days did the first project run, from start to finish? Use DAYS. Answer in D2.

D2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

DAYS examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCD
1TaskStartDueHolidays
2Kickoff1/5/20261/9/20261/19/2026
3Design1/12/20262/13/20262/16/2026
4Build2/16/20264/30/20265/25/2026
5Launch5/4/20265/29/2026
Project schedule (column D lists public holidays)
FormulaResultWhat it shows
=DAYS(C3, B3)32Days from the Design start to its due date.
=C3-B332Plain subtraction gives the same result.
=DAYS(B3, C3)-32Swap the arguments and the result turns negative.
=DAYS("2026-12-25", "2026-01-01")358Date-like text works too.
=NETWORKDAYS(B3, C3)25For working days only, use NETWORKDAYS.

Tips and common mistakes

  • The end date comes first: DAYS(end, start). Reversing them gives a negative number, not an error.
  • DAYS doesn't count the start day. Monday to Friday of the same week is 4.
  • For whole months or years between dates, use DATEDIF.

Related functions