Use an Employee Anniversary Year in an Excel Attendance Calendar
Question details
The user wants to calculate attendance and leave using each employee's anniversary year rather than the calendar year.

- 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.
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.
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.
Enter the employee's hire date in cell B2, or identify the existing hire-date cell in the attendance calendar.
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.
In B4, enter =DATE(YEAR(B3)+1,MONTH(B2),DAY(B2)). The current period runs from B3 through the day before B4.
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.
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.

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. 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. 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. 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. 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. Save the workbook: Select Menu > Save As and choose an Excel workbook format if you need to share the calendar with Excel users.

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.




