WPS Spreadsheet: Count Weekends and Holidays in an Attendance Tracker
Question details
The user needs to count every calendar day in an attendance or leave period, including weekends and holidays.

- Product
- WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- An Employee Leave Tracker uses NETWORKDAYS in its Days column, but the tracker must calculate the full inclusive duration between the start and end dates.
- Observed behavior
- The existing working-day calculation excludes weekends and holidays instead of counting all dates in the absence period.
Open the Employee Leave Tracker in WPS Spreadsheet and identify the Days column, such as cell F4. Confirm whether the report needs calendar days or scheduled working days before changing the calculation.
Replace NETWORKDAYS with an inclusive calendar-day formula
Use this solution when the absence duration should include the start date, end date, weekends, and holidays.
NETWORKDAYS is designed to count scheduled working days, so it excludes weekends and optionally listed holidays. Subtracting the start date from the end date and adding 1 counts every date in the absence period inclusively.
In WPS Spreadsheet, open the Employee Leave Tracker and select the first calculated cell in the Days column, such as F4.
Type =[@[End date]]-[@[Start date]]+1 in the formula bar, then press Enter. This counts both the start and end dates.
Select the completed formula cell and drag its fill handle down the Days column, or use the table's automatic fill option to apply the formula to all employee rows.
Keep working days and add a separate calendar-days column
Use this option when the tracker needs both scheduled workday totals and full calendar-day totals for different reports.
Calculate Inclusive Attendance Days in WPS Spreadsheet
WPS Spreadsheet lets you replace a NETWORKDAYS calculation with an inclusive date subtraction formula, so attendance and leave trackers can count weekends, holidays, and every date between two endpoints.
- 1. Open the tracker: Launch WPS Spreadsheet and open the Employee Leave Tracker workbook.
- 2. Select the Days formula cell: Click the first cell in the Days column, such as F4, where the NETWORKDAYS formula is currently used.
- 3. Enter the inclusive formula: Enter =[@[End date]]-[@[Start date]]+1 in the formula bar and press Enter.
- 4. Apply and verify: Fill the formula down the table, then check a period containing a weekend or holiday to confirm that every calendar date is included.

Frequently Asked Questions
Why does NETWORKDAYS exclude weekends and holidays?
NETWORKDAYS is designed to calculate scheduled working days. It omits weekends and can also omit holidays supplied in its holiday-range argument, so it is not suitable for a full calendar-day total.
How do I count both the start and end dates in WPS Spreadsheet?
Use =[@[End date]]-[@[Start date]]+1 in the Days column. The +1 makes the calculation inclusive of both endpoints.
Can I keep NETWORKDAYS and also calculate calendar days?
Yes. Keep the existing NETWORKDAYS result in its current column, add a Calendar Days column, and enter =[@[End date]]-[@[Start date]]+1 there. Use the appropriate column in each SUMIFS summary.
What should I do if my tracker does not use an Excel table?
Use ordinary cell references instead, such as =E4-D4+1, replacing E4 and D4 with the cells containing the end date and start date. Then fill the formula down the column.




