Customize an Excel Employee Absence and Leave Tracker
Question details
Customize an employee leave tracker to count half days and report vacation and sick leave separately.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- An employee absence template needs separate totals for allocated leave, used leave, remaining vacation, vacation taken, and sick days.
- Observed behavior
- The template counts half-day holidays as full days and combines sick leave with vacation totals.
Check which cells contain daily absence entries and whether each employee appears on the same row in every monthly sheet. Choose unused columns for the new totals, and agree on distinct codes for full and half days.
Add separate vacation and sick leave formulas
Use distinct absence codes and COUNTIF formulas to calculate partial days and separate annual totals.
This example uses V for a full vacation day, VH for a half vacation day, S for a full sick day, and SH for a half sick day. Each daily cell holds one code. Adjust the sheet names, ranges, and output cells to match your workbook.
On the January sheet, enter V, VH, S, or SH in the appropriate daily cells for each employee. In this example, employee entries occupy C7:AG7.
In an unused total cell such as January!AH7, enter =COUNTIF(C7:AG7,"V")+0.5*COUNTIF(C7:AG7,"VH").
In another unused cell such as January!AI7, enter =COUNTIF(C7:AG7,"S")+0.5*COUNTIF(C7:AG7,"SH"). Copy both formulas to the corresponding employee rows and monthly sheets.
On a summary sheet, enter the employee's vacation allocation in B2. In C2, enter =SUM(January!AH7,February!AH7) for vacation used, and in D2, enter =SUM(January!AI7,February!AI7) for sick days. Add the corresponding references for every other month to each formula.
In E2, enter =C2+D2 for total vacation and sick leave used. In F2, enter =B2-C2 for remaining vacation. Use Home > Number to display one decimal place if needed.

Calculate employee leave in WPS Spreadsheets
Open the tracker in WPS Spreadsheets and use separate COUNTIF formulas for vacation and sick leave, including half-day entries.
- 1. Open the tracker: In WPS Spreadsheets, choose Open and select your Excel leave-tracker workbook.
- 2. Enter absence codes: In each employee's daily cells, use V and VH for full and half vacation days, and S and SH for full and half sick days.
- 3. Add monthly formulas: For daily entries in C7:AG7, enter =COUNTIF(C7:AG7,"V")+0.5*COUNTIF(C7:AG7,"VH") in an unused vacation-total cell. In another cell, enter =COUNTIF(C7:AG7,"S")+0.5*COUNTIF(C7:AG7,"SH") for sick leave.
- 4. Create the annual summary: Copy the monthly formulas to each month. On a summary sheet, use SUM with the monthly total-cell references, enter the vacation allocation, and subtract vacation used from that allocation.
- 5. Save the workbook: Choose File > Save As and select XLSX to keep the tracker in Excel format.

Frequently Asked Questions
How do I count a half vacation day in Excel?
Use a distinct code such as VH, then add 0.5*COUNTIF(C7:AG7,"VH") to the formula that counts full vacation days. Adjust the range to match the employee's daily cells.
How can I stop sick days from reducing the vacation balance?
Count sick leave in a separate cell and calculate remaining vacation as allocated vacation minus vacation used, such as =B2-C2. Do not subtract the combined vacation and sick total.
Why do I need to add each month to the annual formula?
A formula such as =SUM(January!AH7,February!AH7) includes only the sheets listed. Add the matching total-cell reference for every remaining month.
Can one daily cell record both vacation and sick leave?
The example formulas assume one code per cell. To record two types on the same day, use separate fields for each absence entry and calculate each type from those fields.




