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-B2 | days between |
=C2-B2+1 | days, counting both |
Example
Write the formula to count the days between the start and end of Camp.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Trip | Start | End | Days between | Trip days |
| 2 | Camp | 6/8/2026 | 6/12/2026 | ||
| 3 | Beach | 7/1/2026 | 7/15/2026 | ||
| 4 | Grandma | 8/3/2026 | 8/9/2026 | ||
| 5 | Ski | 12/26/2026 | 1/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.