Attendance Tracker in Excel or Google Sheets (Formulas Included)
A simple spreadsheet tells you, for every subject, your attendance percentage, how many classes you can still skip, and how many you need to recover. Here's how to build one in about ten minutes. The formulas work in both Excel and Google Sheets.
Prefer not to maintain formulas? The same subject-wise tracker now exists on this site: the attendance tracker marks present/absent per subject, saves in your browser, prints, and exports to CSV for the sheet below.
If you'd rather not build it, the online calculator does the same thing, including a PDF report.
Step 1: set up the columns
| Column | A | B | C | D | E | F | G |
|---|---|---|---|---|---|---|---|
| Header | Subject | Held | Attended | Attendance % | Target | Can skip | Need to attend |
| Row 2 | Maths | 40 | 36 | formula | 75% | formula | formula |
Put your target (for example 75%, or 80% / 85% if that's your rule) in column E so each subject can have its own. Not sure of your rule? Check your university's page.
Step 2: add the formulas
Attendance % (D2):
=IF(B2=0,"",C2/B2)
Format column D as a percentage.
Classes you can still skip (F2):
=MAX(0,ROUNDDOWN(C2/E2-B2,0))
This is the safe bunk formula: attended ÷ target − held, rounded down.
Classes needed to reach the target (G2):
=MAX(0,ROUNDUP((E2*B2-C2)/(1-E2),0))
This is the recovery formula. At 75% it simplifies to 3 × held − 4 × attended.
Copy row 2's formulas down for every subject.
Step 3: add an overall row
At the bottom, add totals. Use raw counts, not an average of percentages:
Held total: =SUM(B2:B10) Attended total: =SUM(C2:C10) Overall %: =C11/B11
If your university checks each subject separately, the overall row is for information only. See subject-wise vs overall attendance.
Step 4: colour warnings
Select column D and add conditional formatting rules:
- ≥ target + 5 ptsGreen: comfortable, safe skips ≥ 2
- target to target + 5Amber: at most 1–2 safe skips, do not miss this week
- below targetRed: show classes needed in a row
- Red when
=D2<E2(below target) - Amber when
=AND(D2>=E2,F2<=2)(above target but 2 or fewer skips left) - Green otherwise
In Google Sheets: Format → Conditional formatting → "Custom formula is". In Excel: Home → Conditional Formatting → New Rule → "Use a formula".
Optional: a daily register
To log each class instead of typing totals, add one sheet per subject with dates across columns and P/A in each cell. Then:
Held: =COUNTA(B2:ZZ2) Attended: =COUNTIF(B2:ZZ2,"P")
Link those cells into your summary sheet.
Example output
| Subject | Held | Attended | % | Can skip | Need |
|---|---|---|---|---|---|
| Maths | 40 | 36 | 90.00% | 8 | 0 |
| Physics | 38 | 26 | 68.42% | 0 | 10 |
| Chemistry | 42 | 35 | 83.33% | 4 | 0 |
| English | 30 | 25 | 83.33% | 3 | 0 |
All at a 75% target. Physics would show red, and the sheet tells you exactly how many classes fix it.
Frequently asked questions
What's the Excel formula for attendance percentage?
=Attended/Held, formatted as a percentage. For example =C2/B2.
How do I count P and A in Excel?
Use =COUNTIF(range,"P") for present and =COUNTIF(range,"A") for absent.
Can I use this for employees?
Yes. See the employee attendance guide for half days and paid leave.
Found this useful? Share it, or add us to your Google preferred sources.
Related guides
The exact formula to calculate attendance percentage, how to handle labs, half days and rounding, and six worked examples you can check against your own numbers.
ReadTwo formulas: how many classes you can skip right now and stay above 75%, and how many you can afford for the rest of the semester. With tables for 75%, 80% and 85%.
ReadThe recovery formula, a ready table for common situations, and the point at which attending every class is no longer enough.
ReadMonthly attendance for students and staff: the formula, how to treat half days, holidays and leave, and a ready-made table for a 20–26 day month.
Read