Calculation Issues

Count Both Start and End Dates in an Excel Date Difference

Elise WilliamsElise Williams Dec 2, 2026 868 views

Question details

Calculate the number of days between two dates, including both the start and end dates.

Count Both Start and End Dates in an Excel Date Difference
Product
Microsoft Excel
Device & OS
not provided
Scenario
Count May 1 through May 15 as 15 days rather than 14 days.
Observed behavior
The desired result includes both the first and last calendar dates.
Before you start

Enter the start and end dates as recognized Excel dates, with the end date on or after the start date. The formula below assumes the cells contain dates without time values.

Solution 1Recommended

Add 1 to the Excel date subtraction formula

Use this formula to count both the start and end dates in a date range.

1
Enter the dates

Type the start date in cell A1 and the end date in cell B1. For example, enter May 1 and May 15 of the same year.

2
Calculate the inclusive difference

Select an empty cell, enter =B1-A1+1, and press Enter. The example returns 15.

3
Format the result as a number

If the result appears as a date, select the formula cell and choose General or Number from the number format menu on the Home tab.

Add 1 to the Excel date subtraction formula
Dates with times: If the cells also contain times, use =INT(B1)-INT(A1)+1 to count calendar dates without the time portions.
Count inclusive days in WPS

Calculate inclusive date differences in WPS Spreadsheets

Use the same date subtraction formula in WPS Spreadsheets to count both the first and last days of a date range.

  1. 1. Open a spreadsheet: Open WPS Spreadsheets and create a workbook or open an existing Excel file.
  2. 2. Enter the dates: Enter the start date in A1 and the end date in B1.
  3. 3. Enter the formula: Select an empty cell, type =B1-A1+1, and press Enter.
  4. 4. Check the result format: If the result displays as a date, select the result cell and choose General or Number from the Home tab's number format menu.
Count both start and end dates with a simple formulaOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet cells and number formats
microsoft office alternative - wps office

Frequently Asked Questions

Why does subtracting two dates return one fewer day than expected?

Excel subtracts the underlying date values to find the elapsed days between them. Add 1 with =B1-A1+1 to include both calendar dates.

What does the formula return if the start and end dates are the same?

The formula =B1-A1+1 returns 1 when A1 and B1 contain the same date without times.

How do I count calendar days if my cells contain times too?

Use =INT(B1)-INT(A1)+1 to remove the time portions before counting the dates.

Why does my result look like a date instead of a number?

Select the result cell and choose General or Number from the number format menu on Excel's Home tab.