Calculation Issues

WPS Spreadsheet: Count Weekends and Holidays in an Attendance Tracker

Phi Hung VoPhi Hung Vo Nov 12, 2026 869 views

Question details

The user needs to count every calendar day in an attendance or leave period, including weekends and holidays.

WPS Spreadsheet: Count Weekends and Holidays in an Attendance Tracker
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the Days cell

In WPS Spreadsheet, open the Employee Leave Tracker and select the first calculated cell in the Days column, such as F4.

2
Enter the calendar-day formula

Type =[@[End date]]-[@[Start date]]+1 in the formula bar, then press Enter. This counts both the start and end dates.

3
Fill the formula down

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.

Inclusive date count: For example, a leave period from June 1 through June 3 returns 3, regardless of whether one of those dates is a weekend or holiday.

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. 1. Open the tracker: Launch WPS Spreadsheet and open the Employee Leave Tracker workbook.
  2. 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. 3. Enter the inclusive formula: Enter =[@[End date]]-[@[Start date]]+1 in the formula bar and press Enter.
  4. 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.
Count inclusive calendar days directly in an attendance or leave trackerKeep separate working-day and calendar-day calculations when both totals are neededUse a familiar spreadsheet interface with table formulas and fill-down toolsOpen and edit Microsoft Excel XLSX attendance templates with strong format compatibility
microsoft office alternative - wps office

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.