Attendance Rate

Excel Formulas › Education & Grading

All versionsCOUNTIF

Attendance rate is days present over days enrolled — or, from a row of P/A marks, the count of “P” over the total. COUNTIF tallies the marks without a helper column.


Quick formula: attendance rate from a row of marks:
=COUNTIF(marks, "P") / COUNTA(marks)
Count the present marks and divide by the total recorded days for the attendance percentage.

Functions used (tap for the full reference guide):

The example

18 present of 20 days.

AB
1ItemValue
2Days present18
3Days enrolled20 → 90%

The formula

The formula:

=COUNTIF(marks, "P") / COUNTA(marks) // present ÷ total

How it works

How it works:

  1. COUNTIF(marks, "P") counts the days marked present.
  2. Divide by COUNTA(marks) — the total days with any mark — for the rate.
  3. Or work from numbers: days_present / days_enrolled.
  4. Count absences the same way with COUNTIF(marks, "A") for a chronic-absence flag.

Chronic absenteeism is often defined as missing 10% or more of enrolled days. Flag it with =IF(absences / enrolled >= 0.1, "At risk", "OK"). Counting tardies separately (a third mark, “T”) lets one row of data drive attendance, absence, and tardy reports at once.

Try it: interactive demo

Live demo

Marks: P present, A absent (space/comma separated).

Attendance:

Variations

From numbers

Present ÷ enrolled:

=days_present / days_enrolled

Absence count

Days missed:

=COUNTIF(marks, "A")

Chronic flag

10% rule:

=IF(absences/enrolled>=0.1, "At risk", "OK")

Pitfalls & errors

Consistent marks. "P" must be typed the same everywhere — COUNTIF is case-insensitive but spacing matters.

Count the right denominator. Use enrolled days, not calendar days, so excused gaps don’t skew it.

Blanks. COUNTA skips empty cells; decide whether a blank means absent or not-yet-recorded.

Practice workbook

📊
Download the free Attendance Rate practice workbook
An attendance sheet with the from-numbers, absence-count, and chronic-flag variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I calculate attendance rate in Excel?
From P/A marks use =COUNTIF(marks, "P") / COUNTA(marks); from numbers use =days_present / days_enrolled.
How do I count absences?
Use =COUNTIF(marks, "A") to tally absent marks in the row.
How do I flag chronic absenteeism?
Use =IF(absences/enrolled >= 0.1, "At risk", "OK") for the common 10% threshold.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Count if contains · Count blank cells · Yes/no from a test

Function references: COUNTIF