ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 59 · Dates

Days between dates in Excel

Because dates are numbers, you can subtract them. =C2-B2 gives the days from the start to the end. Add 1 if you want to count both the first and last day.

Practice this lesson →Pro lesson. The first 4 lessons are free.

What you will learn

  • Subtract dates to count days
  • Add 1 to count both the first and last day

How it works

=C2-B2 gives the number of days from the start to the end.

To count both days (like a trip from Monday to Friday is 5 days), add 1: =C2-B2+1.

Formulas at a glance

=C2-B2days between
=C2-B2+1days, counting both

Example

Write the formula to count the days between the start and end of Camp.

ABCDE
1TripStartEndDays betweenTrip days
2Camp6/8/20266/12/2026
3Beach7/1/20267/15/2026
4Grandma8/3/20268/9/2026
5Ski12/26/20261/2/2027

Click D2 and type =C2-B2, then press Enter.

The answer is 4.

When to use it

  • Length of a trip or project
  • Days until a deadline
  • How many days late a payment is

Common mistakes

  • Forgetting +1 for tripsMonday to Friday is 4 days apart but 5 trip days.
  • Getting a date as the answerFormat the result as a number.
  • Subtracting the wrong wayEnd date minus start date.

Practice it on a real sheet

Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.

Days between dates in Excel: how it works, with examples · ExcelUnpack