Count Both Start and End Dates in an Excel Date Difference
Question details
Calculate the number of days between two dates, including both the start and end dates.

- 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.
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.
Add 1 to the Excel date subtraction formula
Use this formula to count both the start and end dates in a date range.
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.
Select an empty cell, enter =B1-A1+1, and press Enter. The example returns 15.
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.

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. Open a spreadsheet: Open WPS Spreadsheets and create a workbook or open an existing Excel file.
- 2. Enter the dates: Enter the start date in A1 and the end date in B1.
- 3. Enter the formula: Select an empty cell, type =B1-A1+1, and press Enter.
- 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.

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.




