Calculation Issues

Calculate Half-Day Leave in an Excel Employee Attendance Tracker

Elise WilliamsElise Williams Nov 25, 2026 869 views

Question details

The user needs to record and calculate half-day leave in an employee attendance tracker.

Calculate Half-Day Leave in an Excel Employee Attendance Tracker
Product
Microsoft Excel Employee Attendance Tracker
Device & OS
not provided
Scenario
An employee's leave is entered in the Employee Leave Tracker sheet and needs to count as half a workday.
Observed behavior
The tracker calculates full-day leave but does not provide a way to calculate half days.
Before you start

Open the Employee Leave Tracker sheet and check that its table has Start Date, End Date, and Type of Leave columns and a named holiday range called lstHolidays. Check your workweek: the formula below treats Sunday as the only weekend day.

Solution 1Recommended

Update the Excel leave formula to count half days

Use a leave type of Half Day to multiply the calculated workdays by 0.5.

1
Replace the formula

On the Employee Leave Tracker sheet, select cell F4 and enter: =NETWORKDAYS.INTL([@[Start Date]],[@[End Date]],11,lstHolidays)*IF([@[Type of Leave]]="Half Day",0.5,1)

2
Fill the table

If Excel does not apply the formula automatically, use the fill handle on F4 to copy it down the result column.

3
Enter a half-day record

Enter the leave dates and select or type Half Day in the Type of Leave column. If a dropdown does not offer that option, update its source through Data > Data Validation.

4
Show fractional days

Select the result column and use Home > Number to display one decimal place, so a half day appears as 0.5.

Update the Excel leave formula to count half days
Check the dates and workweek: The formula halves every workday in a record marked Half Day. Use separate rows when a leave period contains both full and half days. Weekend code 11 excludes Sunday only; change it to 1 if both Saturday and Sunday are weekends.
Calculate leave in WPS Spreadsheet

Track half-day leave with WPS Spreadsheet

Open an attendance workbook in WPS Spreadsheet and use a workday formula to calculate full- and half-day leave.

  1. 1. Open the workbook: In WPS Spreadsheet, use Open to select your attendance tracker.
  2. 2. Check the columns: Locate the start date, end date, leave type, and result columns, as well as the holiday date range.
  3. 3. Enter the formula: In the result cell, enter a formula using your sheet's references. For example, if A2 and B2 contain dates, C2 contains the leave type, and E2:E20 contains holidays, enter =NETWORKDAYS.INTL(A2,B2,11,$E$2:$E$20)*IF(C2="Half Day",0.5,1).
  4. 4. Fill and save: Drag the result cell's fill handle down, enter Half Day for a half-day record, and use File > Save As to save the workbook as XLSX.
Calculate half-day leave as 0.5 workdaysAccount for holidays and the chosen weekend patternOpen and save Microsoft Excel XLSX workbooksUse a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula use 11 for the weekend?

In NETWORKDAYS.INTL, weekend code 11 treats Sunday as the only weekend day. Use code 1 instead if both Saturday and Sunday should be excluded.

How do I record a period with one half day and several full days?

Enter the half day and full days as separate rows. A row marked Half Day reduces every workday in that row's date range by half.

What is lstHolidays in the formula?

It is a named range containing holiday dates. In Excel, open Formulas > Name Manager to check that lstHolidays exists and points to the correct cells.

Why can't I select Half Day from the leave type list?

The dropdown may not include that value. Select a Type of Leave cell and check Data > Data Validation to find and update the list source.