Calculation Issues

Use an Employee Anniversary Year in an Excel Attendance Calendar

Steve KSteve K Dec 2, 2026 869 views

Question details

The user wants to calculate attendance and leave using each employee's anniversary year rather than the calendar year.

Use an Employee Anniversary Year in an Excel Attendance Calendar
Product
Microsoft Excel
Device & OS
not provided
Scenario
An employee attendance calendar needs a 12-month reporting period based on the employee's hire date.
Observed behavior
Working-day and leave calculations should follow the current hire-date anniversary period for each employee.
Before you start

Locate the employee's hire-date cell and the formulas that define the calendar's reporting period and leave totals. Confirm the hire date is a valid Excel date and is not in the future.

Solution 1Recommended

Calculate the Current Anniversary Year and Update Calendar Formulas

Use the hire date to define the current attendance period, then reference its boundaries in working-day and leave calculations.

The example uses B2 for the hire date, B3 for the period start, and B4 for the start of the next period. Replace these references with the cells used by your template.

The exact changes depend on the template. Update any calendar display, working-day, and leave formulas that currently use January 1 or December 31.

1
Enter the hire date

Enter the employee's hire date in cell B2, or identify the existing hire-date cell in the attendance calendar.

2
Calculate the period start

In B3, enter =DATE(YEAR(TODAY())-(DATE(YEAR(TODAY()),MONTH(B2),DAY(B2))>TODAY()),MONTH(B2),DAY(B2)). Format B3 as a date using Home > Number Format if needed.

3
Calculate the next period start

In B4, enter =DATE(YEAR(B3)+1,MONTH(B2),DAY(B2)). The current period runs from B3 through the day before B4.

4
Update working-day calculations

Replace the calendar-year dates in the working-day formula with B3 and B4-1. For a Monday-through-Friday schedule, use =NETWORKDAYS(B3,B4-1); add a holiday range as the third argument if applicable.

5
Update leave totals

Change the leave formula to include dates from B3 up to, but not including, B4. For example, use =SUMIFS(LeaveDaysRange,LeaveDateRange,">="&B3,LeaveDateRange,"<"&B4), replacing the range names with the template's actual ranges.

Calculate the Current Anniversary Year and Update Calendar Formulas
Check anniversary and leave rules: For a February 29 hire date, these DATE formulas use March 1 in non-leap years. Adjust the formulas if your policy uses February 28 instead. If leave records span multiple days, make sure the template counts only the days within the period.
Work with attendance calendars in WPS

Set Up an Anniversary-Year Calendar in WPS Spreadsheet

Use date, working-day, and conditional-sum formulas in WPS Spreadsheet to adapt an attendance calendar to an employee's hire-date anniversary.

  1. 1. Open the calendar: Open WPS Spreadsheet and select Open to choose your attendance calendar. Enter the employee's hire date in B2 or identify its existing cell.
  2. 2. Set the period start: In B3, enter =DATE(YEAR(TODAY())-(DATE(YEAR(TODAY()),MONTH(B2),DAY(B2))>TODAY()),MONTH(B2),DAY(B2)). Replace B2 if the hire date is elsewhere.
  3. 3. Set the next period start: In B4, enter =DATE(YEAR(B3)+1,MONTH(B2),DAY(B2)). Use B3 as the first day and B4-1 as the last day of the current period.
  4. 4. Adjust attendance formulas: Update the calendar's formulas to reference B3 and B4. For example, enter =NETWORKDAYS(B3,B4-1) to count Monday-through-Friday working days, then adjust the leave totals to use the same period.
  5. 5. Save the workbook: Select Menu > Save As and choose an Excel workbook format if you need to share the calendar with Excel users.
Calculate attendance periods from employee hire datesOpen and edit Microsoft Excel XLSX and XLS filesUse working-day and leave-total formulas in a familiar spreadsheet interfaceWork with spreadsheets using the free WPS Office suite
microsoft office alternative - wps office

Frequently Asked Questions

What happens on the employee's anniversary date?

The formula in B3 uses TODAY(), so on the anniversary date it returns that date as the start of the new period. The previous period ends the day before.

How do I exclude holidays from the working-day count?

List holiday dates in a range and include it as the third NETWORKDAYS argument, for example =NETWORKDAYS(B3,B4-1,H2:H20).

How does the formula handle a February 29 hire date?

Excel's DATE function rolls February 29 to March 1 in a non-leap year. If your policy treats February 28 as the anniversary, the period formulas need to be adjusted.

Will changing the period dates update the whole calendar?

Not necessarily. Check the formulas that generate displayed dates, count working days, and total leave. Replace hard-coded calendar-year boundaries with references to the anniversary-period cells.