Include Start and End Dates with the Excel DAYS Function
Question details
Learn how to count calendar days inclusively when using the Excel DAYS function.

- Product
- Microsoft Excel DAYS function
- Device & OS
- not provided
- Scenario
- The user needs a formula that counts both the starting date and the ending date in a date range.
- Observed behavior
- DAYS(end_date,start_date) returns elapsed days between two dates, so one endpoint is not included in the displayed total.
Make sure both cell values are valid Excel dates rather than text. Confirm that the end date is on or after the start date before applying an inclusive count.
Add 1 to the Excel DAYS result to include both dates
Use this formula when you need an inclusive date count that includes the start date and end date.
The DAYS function calculates the number of days elapsed from the start date to the end date. Add 1 to that result to count both endpoints of the range.
In the result cell, enter =DAYS(end_date,start_date)+1. For example, if the end date is in B2 and the start date is in A2, enter =DAYS(B2,A2)+1.
Press Enter to return the inclusive number of calendar dates. For example, January 1 through January 3 returns 3 rather than 2.

Subtract dates directly and add 1 for an inclusive count
Use a simple subtraction formula when your dates are stored in worksheet cells and you do not specifically need the DAYS function.
Count Start and End Dates in WPS Spreadsheets
WPS Spreadsheets supports familiar Excel-compatible date formulas, including DAYS. Enter a DAYS formula and add 1 to calculate an inclusive count that includes both dates in your range.
- 1. Open your worksheet in WPS Spreadsheets: Open WPS Office, select Spreadsheets, and open the workbook containing your start and end dates.
- 2. Select the result cell: Click the empty cell where you want the inclusive number of days to appear.
- 3. Enter the DAYS formula: Type =DAYS(B2,A2)+1, replacing B2 and A2 with your end-date and start-date cells.
- 4. Confirm the calculation: Press Enter and format the result cell as General or Number from Home > Number Format if necessary.

Frequently Asked Questions
Why does Excel DAYS return one less than the number of dates in my range?
DAYS returns elapsed days between the start and end dates, rather than counting both dates as separate calendar days. Add +1: =DAYS(end_date,start_date)+1.
What formula counts January 1 through January 1 as one day?
Use =DAYS(end_date,start_date)+1. When both dates are January 1, DAYS returns 0 and adding 1 returns 1.
Can I use date subtraction instead of the DAYS function?
Yes. Use =end_date-start_date+1, such as =B2-A2+1. This produces the same inclusive calendar-day count for valid dates.
Why is my inclusive date formula showing a date instead of a number?
The result cell may be formatted as Date. Select the cell, then choose Home > Number Format > General or Number.




