FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

DAYS in Google Sheets

DAYS with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the DAYS Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Length of a project

AB
1StartEnd
21/1/20243/1/2024

Formula: D2: =DAYS(B2,A2)

Result: 60

2024 is a leap year, so January and February add up to 60 days.

Arguments in the wrong order

AB
1StartEnd
21/1/20243/1/2024

Formula: D2: =DAYS(A2,B2)

Result: -60

Swapping the dates simply flips the sign of the answer.

Days in a year

A
1

Formula: A1: =DAYS(DATE(2025,1,1),DATE(2024,1,1))

Result: 366

From January 1, 2024 to January 1, 2025 is 366 days.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =DAYS(B2,A2)

Example spreadsheet for DAYS
ABCDEF
1StartEndHolidayTimeResult
23/15/20266/20/20265/1/202614:4597
31/31/20262/28/20265/9/202609:30
412/24/20251/9/2026
Result in F2: 97
Practice this in a lesson: Tenure, Deadlines, Weekdays

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.