Free Attendance Tracker Template (Excel and Google Sheets)
Monthly attendance tracker that skips weekends and holidays, counts P, L, H, A, S and V codes, and flags missing entries and codes on days off.
On this page
Most attendance sheets go wrong in the same two places: a percentage divided by the wrong number of days, and blanks nobody notices until payroll. This template is built around those two. It knows which days are workdays, it only counts codes on those days, and two columns tell you which rows still need attention.
Download attendance-tracker.xlsx. Each person gets one row and each day one column with a single letter code. The count of present days for the person in row 7 is:
=IF($A7="","",COUNTIFS($C$5:$AG$5,1,$C$4:$AG$4,"<="&Settings!$B$3,$C7:$AG7,AH$6))
Row 5 marks every workday with 1, row 4 holds the dates, and AH6 holds the code P. The formula counts P only on workdays that fall on or before the As of date on Settings (B3). A code typed on a weekend day doesn’t inflate anyone’s attendance, and a code entered ahead of time for a later date, such as a booked vacation day, doesn’t change today’s percentage. Every code column uses the same cutoff as the denominator below. (The screenshots below were taken before the As of cutoff was added to this formula, so their formula bar shows the shorter version.)
The codes and what they’re worth
| Code | Meaning | Counts as days attended |
|---|---|---|
| P | Present | 1 |
| L | Late, but present | 1 |
| H | Half day | 0.5 |
| A | Absent, unplanned | 0 |
| S | Sick | 0 |
| V | Vacation or approved leave | 0 |
The same table sits on the Settings sheet (A6:C12) so the meanings travel with the file. The grid has a drop-down list limited to these six letters. In Excel, data validation only checks what someone types into a cell, not what gets pasted, so a week pasted from another file can bring in a stray X without a warning.
Which days count as workdays
Row 4 builds the dates of the month from Settings!B2. Row 5 decides whether each one is a workday:
=IF(C4="","",IF(AND(WEEKDAY(C4,2)<6,COUNTIF(Settings!$E$7:$E$16,C4)=0),1,0))
WEEKDAY(date,2) numbers Monday as 1 and Sunday as 7, so <6 keeps Monday to Friday, and the COUNTIF drops anything listed under Company holidays on Settings. The sample lists 26 and 27 November. With those, November 2026 has 19 workdays (K2), and 12 of them fall on or before the As of date of 17 November (C2):
=COUNTIFS($C$5:$AG$5,1,$C$4:$AG$4,"<="&Settings!$B$3)
If your team works Saturdays, change <6 to <7. If you’d rather do the counting in one function, NETWORKDAYS gives the same 12 for this month; Working days excluding holidays covers it. The per-day row is here because the counting formulas and the grey shading both need to know about each individual day.
Why one person is at 87.5%
Hanna B. in row 11 has 9 P, 1 L and 1 H, so Days attended (AN11) is 9 + 1 + 0.5 = 10.5. Attendance % (AO11) divides by workdays so far minus vacation:
=IF($A11="","",IF($C$2-AM11<=0,"",AN11/($C$2-AM11)))
That’s 10.5/12, or 87.5%. Half a day of it is the half day. The other full day is 17 November, which is empty, and the Not recorded column (AP11) shows 1. An empty workday counts against the person exactly like an absence, which is why the column turns red. Fill in the day and the gap disappears: entering P for 17 November in the test file set Not recorded to 0.
Not recorded counts empty cells on workdays up to the As of date:
=IF($A11="","",COUNTIFS($C$5:$AG$5,1,$C$4:$AG$4,"<="&Settings!$B$3,$C11:$AG11,""))
The vacation days are subtracted from the denominator instead of being treated as absence. Omar S. in row 10 took a full week (5 V) and still shows 100%: 7 present days out of 12 − 5 = 7. If your policy counts leave against attendance, change the formula to divide by $C$2 alone.
Codes typed on a day off
Rosa D. in row 13 has a P on Sunday 8 November. The P column ignores it (11 P, not 12), and Code on day off (AQ13) shows 1:
=IF($A13="","",COUNTIFS($C$5:$AG$5,0,$C13:$AG13,"<>"))
Either the code went into the wrong column or she worked an extra shift. The sheet can’t tell which, so it doesn’t guess. With a plain COUNTIF($C13:$AG13,"P") in the P column instead, the test row added up to 12.5 days out of 12, an attendance rate of 104%.
Setting it up for your team
On Settings, change B2 to the first day of your month and B3 to the day you’re counting up to (replace it with =TODAY() if you want it to move by itself). Put your company holidays in E7:E16 as real dates. A holiday typed as the text 2026-11-26 isn’t safe: Google Sheets’ COUNTIF and Excel for Mac 16.115 still matched it and treated 26 November as a day off, but LibreOffice Calc didn’t, so the same file counted 19 workdays in November in Sheets and Excel and 20 in LibreOffice, with no error in any of them. Then replace the names and teams in A7:B18 and clear C7:AG18.
Twelve rows are formatted. To add more, copy row 18 down so the summary formulas come along. Lowercase codes are fine for counting: a p already in the file counted as P, because COUNTIFS ignores case. In Excel for Mac 16.115, putting p on an empty workday also increased that person’s P count by one. In Google Sheets, typing p or v into the grid was accepted and stored as P and V; typing X was rejected with the message “Use P, L, H, A, S or V (see Settings).”
For a new month, save a copy of the file first. The month is driven by one cell, so changing B2 on the only copy relabels last month’s codes with the new month’s dates.