Share via

Date Formula

Rebecca Pearce 100 Reputation points
2026-05-09T08:01:30.8333333+00:00

What is the Formula to count days between two dates

Microsoft 365 and Office | Excel | For home | Windows
0 comments No comments

Answer accepted by question author

AI answer

2026-05-09T08:01:44.1+00:00

Use one of these common formulas in Excel:

  1. Simple subtraction (both cells contain valid dates):
=EndDateCell - StartDateCell

Example:

=C2 - B2

This returns the number of days between the two dates.

  1. Using the DAYS function:
=DAYS(EndDateCell, StartDateCell)

Example:

=DAYS(C2, B2)

This also returns the number of days between the two dates.


References:

AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.