Forum Discussion
Excel Attendance Tracker Spreadsheet Formula Help
- Nov 30, 2023
samza18 I'm surprised that this particular template is still being used. It's full of 'features' and is notoriously difficult to adjust/expand. To address your specific issue, this template assumes that employees are NEVER scheduled to work Saturdays and Sundays, nor will they EVER be scheduled to work on any of the listed public holidays. Any type of absence on any of these days is therefore excluded from the absence day count.
On the tab "Employee Leave Tracker" the number of working days covered by a period of absence is calculated in column F with the NETWORKDAYS function. That is the number picked-up by the counters on row 20 in the Calendar View. If you have no need for this sort of date intelligence and just want to count the number of days during a period of absence, change the formula in F4 to:
=[@[End date]]-[@[Start date]]+1
It should copy itself down the entire table column.
Or perhaps use a hybrid form where you add an extra column (call it Days) that just counts days with the above formula and keep the original one but rename it to (for example) "W_Days" first. Then adjust the first argument in the SUMIFS formulas on row 20 to sum either "Days" or "W_Days".
samza18 I'm surprised that this particular template is still being used. It's full of 'features' and is notoriously difficult to adjust/expand. To address your specific issue, this template assumes that employees are NEVER scheduled to work Saturdays and Sundays, nor will they EVER be scheduled to work on any of the listed public holidays. Any type of absence on any of these days is therefore excluded from the absence day count.
On the tab "Employee Leave Tracker" the number of working days covered by a period of absence is calculated in column F with the NETWORKDAYS function. That is the number picked-up by the counters on row 20 in the Calendar View. If you have no need for this sort of date intelligence and just want to count the number of days during a period of absence, change the formula in F4 to:
=[@[End date]]-[@[Start date]]+1
It should copy itself down the entire table column.
Or perhaps use a hybrid form where you add an extra column (call it Days) that just counts days with the above formula and keep the original one but rename it to (for example) "W_Days" first. Then adjust the first argument in the SUMIFS formulas on row 20 to sum either "Days" or "W_Days".
- Riny_van_EekelenDec 01, 2023Platinum Contributor
samza18 Glad you could get it to work. With regard to other / better templates, no I don't really know any. Sorry.