Function Problems

Include Start and End Dates with the Excel DAYS Function

Aamir Naveed AkramAamir Naveed Akram Nov 12, 2026 868 views

Question details

Learn how to count calendar days inclusively when using the Excel DAYS function.

Include Both Start and End Dates with 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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the inclusive DAYS formula

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.

2
Press Enter to calculate

Press Enter to return the inclusive number of calendar dates. For example, January 1 through January 3 returns 3 rather than 2.

Add 1 to the Excel DAYS result to include both dates
Both endpoint dates are counted: Adding 1 includes the first date and the last date when the date range is valid.
Calculate inclusive date ranges easily

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. 1. Open your worksheet in WPS Spreadsheets: Open WPS Office, select Spreadsheets, and open the workbook containing your start and end dates.
  2. 2. Select the result cell: Click the empty cell where you want the inclusive number of days to appear.
  3. 3. Enter the DAYS formula: Type =DAYS(B2,A2)+1, replacing B2 and A2 with your end-date and start-date cells.
  4. 4. Confirm the calculation: Press Enter and format the result cell as General or Number from Home > Number Format if necessary.
Use =DAYS(end_date,start_date)+1 to count both dates in a rangeCalculate date intervals with Excel-compatible spreadsheet formulasOpen, edit, and save Microsoft Excel XLSX and XLS filesUse a lightweight spreadsheet interface with familiar formula editing tools
microsoft office alternative - wps office

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.