Cellwise Try it free

Excel guide · 3 min read

Attendance tracker formulas in Excel

Quick answerMark each day with a code (P present, A absent, L late, E excused), then count with COUNTIF: =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.

ABCDEFGH
1StudentMon 2 NovTue 3 NovWed 4 NovThu 5 NovFri 6 NovHolidays
2Maya PatelPPPPPNov 11, 2026
3Liam ChenPAPLPNov 26, 2026
4Sofia RussoPPEPPNov 27, 2026
5Noah BrooksAAPPL
6Grace KimPPPLP
7Owen FraserPAP

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

  1. Select the attendance cells (B2:F7 here).
  2. Go to Data > Data Validation, set Allow to List and type P,A,L,E in Source. Click OK.
  3. Freeze names and dates in place: click B2, then View > Freeze Panes > Freeze Panes.
  4. 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").

=COUNTIF(B3:F3,"P")+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.

=(COUNTIF(B5:F5,"P")+COUNTIF(B5:F5,"L"))/(COUNTA(B5:F5)-COUNTIF(B5:F5,"E"))

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.

=IF((COUNTIF(B5:F5,"P")+COUNTIF(B5:F5,"L"))/(COUNTA(B5:F5)-COUNTIF(B5:F5,"E"))<0.9,"Follow up","OK")

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.

=COUNTIF(B2:B7,"P")+COUNTIF(B2:B7,"L")

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.

=NETWORKDAYS(DATE(2026,11,1),DATE(2026,11,30),H2:H4)

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

Related guides

Updated