Calculate Half-Day Leave in an Excel Employee Attendance Tracker
Question details
The user needs to record and calculate half-day leave in an 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.
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.
Update the Excel leave formula to count half days
Use a leave type of Half Day to multiply the calculated workdays by 0.5.
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)
If Excel does not apply the formula automatically, use the fill handle on F4 to copy it down the result column.
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.
Select the result column and use Home > Number to display one decimal place, so a half day appears as 0.5.

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. Open the workbook: In WPS Spreadsheet, use Open to select your attendance tracker.
- 2. Check the columns: Locate the start date, end date, leave type, and result columns, as well as the holiday date range.
- 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. 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.

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.




