Excel guide · 3 min read
Attendance tracker formulas in Excel
=COUNTIF(B3:F3,"P") counts days present. For the attendance rate, divide days attended by days recorded: =(COUNTIF(B5:F5,"P")+COUNTIF(B5:F5,"L"))/(COUNTA(B5:F5)-COUNTIF(B5:F5,"E")).Sample data
Every result on this page was calculated from this sheet by the same spreadsheet engine the Cellwise app uses.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Student | Mon 2 Nov | Tue 3 Nov | Wed 4 Nov | Thu 5 Nov | Fri 6 Nov | Holidays | |
| 2 | Maya Patel | P | P | P | P | P | Nov 11, 2026 | |
| 3 | Liam Chen | P | A | P | L | P | Nov 26, 2026 | |
| 4 | Sofia Russo | P | P | E | P | P | Nov 27, 2026 | |
| 5 | Noah Brooks | A | A | P | P | L | ||
| 6 | Grace Kim | P | P | P | L | P | ||
| 7 | Owen Fraser | P | A | P |
Set up the grid
One row per person, one column per day, a single letter in each cell. Codes beat ticks or colors because formulas can count them. Keep the codes short and consistent; a drop-down list makes sure nobody types "Pres" or "x".
- Select the attendance cells (B2:F7 here).
- Go to Data > Data Validation, set Allow to List and type P,A,L,E in Source. Click OK.
- Freeze names and dates in place: click B2, then View > Freeze Panes > Freeze Panes.
- Optional: Home > Conditional Formatting > Highlight Cells Rules > Equal To, type A and choose a red fill, so absences stand out.
Count days present, late and absent
COUNTIF counts the cells in a row that match a code. It is not case-sensitive, so p and P both count. Liam has three P days and one L.
Whether late counts as present is a policy decision. If it does, add the two counts. Most schools count late as attended but report it separately, so keep a Late column too: =COUNTIF(B3:F3,"L").
Result: 4
Liam attended 4 days: 3 present and 1 late.
Attendance percentage
Divide days attended by days that count. Two details make this fair. First, use COUNTA on the row, not a fixed 5, so days not yet recorded and days before someone joined do not lower their rate. Owen joined on Wednesday: dividing by 5 would give him 60%, but he attended 2 of 3 days. Second, subtract excused days from the bottom of the fraction, so a documented medical appointment does not count against anyone.
Noah has 2 present, 1 late and 2 absences out of 5 recorded days.
Result: 0.6 shows as 60% with Percent format
Noah attended 3 of 5 days, an attendance rate of 60%.
Flag anyone below a threshold
Wrap the percentage in IF to get a status column. 90% is a common threshold for chronic absence in US schools; workplaces often use a number of absences instead, like =IF(COUNTIF(B5:F5,"A")>=3,"Review","OK").
If the formula is long, put the percentage in its own column (say H) and write =IF(H5<0.9,"Follow up","OK") next to it. Shorter formulas are easier to check.
Result: Follow up
Noah is at 60%, below 90%, so the result is Follow up.
Daily headcount and total absences
Point COUNTIF down a column instead of across a row to get the headcount for one day. On Monday four students are marked P, Noah is absent and Owen's blank (he had not joined yet) is ignored. Adding the L count keeps late arrivals in the headcount.
COUNTIF also works on the whole grid: =COUNTIF(B2:F7,"A") returns 4 absences for the week, handy for a weekly summary line.
Result: 4
4 people attended on Monday 2 November.
How many school or working days in the month
To show a rate against the whole month, you need the number of possible days. NETWORKDAYS counts Monday to Friday between two dates and skips any holidays you list. H2:H4 holds Veterans Day and the Thanksgiving break.
Use one tab per month (right-click the tab > Move or Copy > Create a copy), and a summary tab that adds each person's monthly counts.
Result: 18
November 2026 has 21 weekdays; minus the 3 listed holidays leaves 18 days.
Common mistakes
Dividing by a fixed number of days
Use COUNTA on the row so blank future days and days before someone started do not drag their percentage down.
Codes with spaces or mixed labels
"P " or "Present" will not match "P". Use a Data Validation list so only the allowed codes can be entered.
Tracking attendance with cell colors only
Formulas cannot count fill colors. Use a letter code and let conditional formatting add the color.
FAQ
How do I calculate attendance percentage in Excel?
Divide days attended by days recorded: =COUNTIF(B2:F2,"P")/COUNTA(B2:F2), formatted as a percentage. Subtract excused days from the bottom if they should not count.
How do I count P and A in Excel?
=COUNTIF(B2:F2,"P") counts present days and =COUNTIF(B2:F2,"A") counts absences. Add two COUNTIFs to count present plus late.
How do I make a monthly attendance sheet in Excel?
Put names in column A and each school day across row 1, use a drop-down list of codes, then add COUNTIF totals and a percentage column at the right. Copy the sheet for each month.
Can Excel count weekdays in a month for attendance?
Yes. =NETWORKDAYS(start,end,holidays) returns the number of Monday to Friday days between two dates, minus any holiday dates you list.
Functions used
COUNTIFCounts cells that matchCOUNTACounts non-empty cellsIFPicks a result from a testNETWORKDAYSWeekdays between datesDATEBuilds a date
Related guides
- COUNTIFS with multiple criteria in Excel
- How to count working days between two dates in Excel
- How to calculate percentage in Excel
- COUNTIF not working: causes and fixes
- Excel formulas cheat sheet: the 25 everyone should know
- How to count cells with text in Excel
- How to make a running total in Excel
Updated