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.)

Google Sheets attendance tracker with AH7 selected, showing =IF($A7="","",COUNTIFS($C$5:$AG$5,1,$C7:$AG7,AH$6)) in the formula bar. Weekends and 26-27 Nov are grey, A and S codes are red, and the summary columns show 12 present days for Dana K.
Screenshot: Google Sheets, Nov 2026
Excel for Mac attendance grid with AH7 selected; the formula bar shows =IF($A7="","",COUNTIFS($C$5:$AG$5,1,$C7:$AG7,AH$6)), returning 12. Weekends and 26–27 November are grey; A and S and the nonzero Not recorded and Code on day off warnings have peach-red fills. Hanna B. is at 87.5% with 1 not-recorded workday; Rosa D. is at 95.8% with 1 code on a day off.
Screenshot: Microsoft Excel for Mac, Nov 2026

The codes and what they’re worth

CodeMeaningCounts as days attended
PPresent1
LLate, but present1
HHalf day0.5
AAbsent, unplanned0
SSick0
VVacation or approved leave0

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%.

Google Sheets attendance tracker with AP11 selected, showing the Not recorded COUNTIFS formula. Hanna B. has an empty 17 Nov cell, so AP11 is 1 and her attendance is 87.5%; Rosa D. has a P on Sunday 8 Nov, flagged as 1 in Code on day off.
Screenshot: Google Sheets, Nov 2026

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.

Downloads

Oscar

Spreadsheet nerd who writes about Excel and Google Sheets formulas.

Tested in Google Sheets (xlsx imported with File > Import), November 17, 2026; Microsoft Excel for Mac 16.115 (Microsoft 365), November 17, 2026; LibreOffice Calc 25.2 recalculation, November 17, 2026; As of cutoff for the P to V counts re-tested in Google Sheets and LibreOffice Calc 25.2, December 5, 2026.

Next in Templates & Trackers Free Habit Tracker Template for Google Sheets and Excel