[Google Sheets] Count the days between two dates

Created on November 30, 2026

Use DATEDIF with the starting date, ending date, and the unit "D" for days.

=datedif(A1,B1,"D")

Here is the result when the formula is entered in cell C1.

The DATEDIF result in C1 for the dates in A1 and B1

Google SpreadSheets