Calculation Issues

Modify an Excel Annual Leave Tracker to Record Hours

Steven ParkerSteven Parker Nov 27, 2026 868 views

Question details

The user needs an annual leave tracker that records and totals leave hours for employees with different working schedules.

Modify an Excel Annual Leave Tracker to Record Hours
Product
Microsoft Excel
Device & OS
not provided
Scenario
An annual leave tracker uses AL codes in date columns to mark full-day leave, but employees need to record leave in hours.
Observed behavior
The tracker counts full-day entries rather than hours, and its annual total may not include all entries across the year.
Before you start

Check how the current tracker identifies employees, dates, and AL entries, and decide where hourly leave will be recorded. Identify the annual-total cells and the year they should cover before replacing any formulas.

Solution 1Recommended

Add a Leave Hours Log and Sum Each Employee’s Annual Total

Use a separate log when employees work different hours or take partial days, then total the numeric hours for each employee and year.

The example below assumes the summary sheet has an employee name in A2 and a four-digit year in B1. Adjust the cell references and ranges to match your workbook.

Enter each leave event once in the hours log. If you retain AL codes on the calendar, use them as visual markers rather than adding them to the hours total again.

1
Create the hours log

Add a worksheet named Leave Log. Enter Employee in A1, Date in B1, and Hours in C1.

2
Enter leave records

On Leave Log, enter one employee, date, and numeric hours value per row. For example, enter 5 for a five-hour leave day or 2.5 for two and a half hours. Use actual Excel dates in column B.

3
Replace the annual-total formula

On the summary sheet, enter the employee name in A2 and the year in B1. In the annual-total cell, enter =SUMIFS('Leave Log'!$C$2:$C$1000,'Leave Log'!$A$2:$A$1000,A2,'Leave Log'!$B$2:$B$1000,">="&DATE($B$1,1,1),'Leave Log'!$B$2:$B$1000,"<"&DATE($B$1+1,1,1)). Replace the ranges or cell references if your layout differs.

4
Check the result

Add test entries for the same employee in March and April, then check that the annual-total cell includes both hours values. Extend all three formula ranges if records go beyond row 1000, and verify that employee names match.

Add a Leave Hours Log and Sum Each Employee’s Annual Total
Existing AL entries: The formula sums only numeric hours in the log; it does not convert existing AL codes automatically. Enter the appropriate hours for existing leave records if they need to appear in the total.
Track leave hours in WPS Spreadsheets

Build an Hours-Based Leave Log in WPS Spreadsheets

Open your tracker in WPS Spreadsheets, add an hours log, and use SUMIFS to total each employee’s leave for the selected year.

  1. 1. Open the tracker: In WPS Spreadsheets, select Open and choose your Excel leave tracker.
  2. 2. Add a log sheet: Add a worksheet named Leave Log and enter Employee, Date, and Hours in cells A1 through C1.
  3. 3. Record leave hours: Enter each employee’s name, leave date, and numeric hours in columns A through C, one leave event per row.
  4. 4. Calculate and check the total: On the summary sheet, enter the SUMIFS formula from the solution above in the annual-total cell, adapting its references to your workbook. Test entries in different months, then select Save.
Record partial-day and full-day leave as numeric hoursUse SUMIFS to total leave by employee and yearOpen and save Microsoft Excel XLSX workbooksWork in a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

How do I record a partial day of annual leave?

Add a row to Leave Log with the employee’s name, the leave date, and the hours taken. For example, enter 2.5 in the Hours column for two and a half hours.

Why does the annual total miss leave entered in later months?

The existing formula may reference only part of the tracker or count AL codes incorrectly. Check the formula bar for its referenced ranges, and make sure the hours, employee, and date ranges in SUMIFS include every log row.

Will the formula convert existing AL codes into hours?

No. Enter the appropriate numeric hours for each existing leave event in the hours log. The formula sums those hours rather than counting AL codes.

How can I total leave for a different year?

Change the four-digit year in the summary sheet’s B1 cell. The example formula includes dates from January 1 of that year up to, but not including, January 1 of the following year.