Attendance sheet in Google Sheets: build one step by step
An attendance sheet in Google Sheets is a grid with student or staff names down the first column and dates across the top. You mark each day with a checkbox or a P/A dropdown, and two short formulas count the days present and work out the percentage. A colour rule then highlights anyone below 75% on its own. This guide builds the whole sheet from a blank file in about 15 minutes, on a computer or an Android phone, and it is free with any Google account.
What you will build
Here is the layout used in this guide. You can change the size later, but starting with the same columns makes the formulas easy to copy.
| Column | What goes in it |
|---|---|
| A | Names (or roll numbers), one per row from row 2 |
| B to Z | One column per class day: 25 days, enough for a month |
| AA | Days present |
| AB | Days held so far |
| AC | Attendance percentage |
Use one tab per month. When a month ends, right-click the tab at the bottom, choose Duplicate, rename the copy, change the first date and clear the marks. The formulas come along with the copy.
Step 1: create the sheet and add names
- Go to sheets.google.com and open a blank spreadsheet. Name it something you will find later, such as "Class 9B attendance 2026".
- In
A1, type Name. FromA2down, paste or type the names. If you already have the list in another sheet or a Google Form response sheet, copy the column across. - Sort the names now, with Data > Sort range, so the order matches your register.
- Freeze the first row and the first column with View > Freeze > 1 row and View > Freeze > 1 column. The names and dates stay in view while you scroll across a month.
Step 2: put the dates across the top
Type the first class day of the month in B1, for example 01/12/2026. Sheets reads dates in the order of your spreadsheet's locale (File > Settings), so set it to India if you write the day first.
Instead of typing every date, let a formula fill them in. In C1, type one of these and drag the small square at the cell's corner to Z1:
=B1+1for every calendar day.=WORKDAY(B1,1)to skip Saturdays and Sundays.=WORKDAY.INTL(B1,1,11)to skip only Sundays, for a six-day school week. The11is the code for "Sunday is the only weekend day".
Both WORKDAY functions also accept a list of holidays as the last argument, for example =WORKDAY.INTL(B1,1,11,$AE$2:$AE$10) if you type the holiday dates in AE2:AE10. To make the headers short, select row 1 and pick a compact date format under Format > Number.
Step 3: mark attendance with checkboxes or P/A
There are two good ways to mark a day. Pick one and use it for the whole sheet, because the formulas in the next step depend on it.
Option 1: checkboxes
Select B2:Z40 (or down to your last name) and click Insert > Checkbox. A ticked box means present. Checkboxes are quick on a phone, since one tap marks a student, and they are hard to mistype.
Behind the scenes, a ticked box is TRUE and an empty one is FALSE, which is what the formulas count.
Option 2: a P/A dropdown
If you need more than present or absent, such as leave or late, use a dropdown. Select the same range, click Insert > Dropdown, and add the options P, A and L. Give A a red colour and P a green one in the dropdown settings, so a glance down the column shows who was missing. The dropdown is a data validation rule, so Sheets warns you if someone types anything else into those cells.
Step 4: count attendance with COUNTIF
Type the headers Present in AA1, Days in AB1 and % in AC1. Then fill row 2 with the formulas for your marking method and drag them down to the last name.
| Cell | Checkboxes | P/A dropdown |
|---|---|---|
| AA2 (present) | =COUNTIF(B2:Z2,TRUE) | =COUNTIF(B2:Z2,"P") |
| AB2 (days held) | =COUNTIF($B$1:$Z$1,"<="&TODAY()) | =COUNTA(B2:Z2) |
| AC2 (percentage) | =IF(AB2=0,"",AA2/AB2) | =IF(AB2=0,"",AA2/AB2) |
Why the two versions of "days held" differ:
- With checkboxes, an empty box looks the same whether the day was missed or hasn't happened yet. So the formula counts only the dates up to today, and every past date with an empty box counts as absent. Mark each day before you close the sheet.
- With P/A, a blank cell means "not marked yet", so
COUNTAsimply counts the days that have a mark.
With the dropdown, L counts as not present in the formula above. If your college counts approved leave as attendance, change AA2 to =COUNTIF(B2:Z2,"P")+COUNTIF(B2:Z2,"L").
Finally, select column AC and choose Format > Number > Percent. The IF keeps the cell empty before the first class, instead of showing a division error.
Step 5: highlight anyone below 75%
Many colleges and schools in India ask for a minimum attendance, often 75%, before you can sit exams. Check your own institution's rule and use that number. A conditional formatting rule colours a whole row the moment it drops below it.
- Select
A2:AC40. - Click Format > Conditional formatting.
- Under Format cells if, choose Custom formula is and type
=AND(ISNUMBER($AC2),$AC2<0.75). - Pick a light red fill and click Done.
The dollar sign in $AC2 locks the column, so every cell in a row looks at that row's percentage, and the whole row turns red, not just one cell. ISNUMBER stops empty rows from turning red at the start of the month.
Bonus for students: classes needed to get back to 75%
If you track your own attendance, one more formula tells you how many classes in a row you need to attend to reach 75%. In AD2, type =MAX(0,3*AB2-4*AA2). It comes from solving (present + x) / (held + x) = 0.75 for x. For example, if you attended 6 of 10 classes, you need 6 more in a row: 12 out of 16 is exactly 75%.
Step 6: do the same on an Android phone
You can build and fill the sheet in the free Google Sheets app, though typing formulas is easier on a computer. Marking attendance on a phone works well:
- Checkboxes: select the cells, tap More (the three dots), then Data validation, and choose Checkbox under Criteria. Each tap on a box ticks or unticks it.
- Conditional formatting: select the range, tap Format (the A icon) and look for Conditional formatting, where you can add the same custom formula.
- Freezing: long-press the row or column header and choose Freeze.
Rotate the phone to landscape when you mark a class: you will see more dates at once and tap the wrong row less often.
Step 7: share it as view-only and protect the formulas
An attendance sheet holds names, and sometimes roll numbers and phone numbers, so share it with care. Click Share, add the people who need to see it, and give them the Viewer role. Give Editor only to a co-teacher who marks attendance too. Avoid "Anyone with the link" for a sheet with personal details. Our guide on how to share a file on Google Drive explains each role and how to stop sharing later.
If other teachers edit the sheet, protect the columns with formulas so nobody overwrites them by mistake. Select AA:AD, click Data > Protect sheets and ranges, and set who can edit that range. Everyone else can still tick boxes in the date columns.
At the end of the month, you may need a printed copy for the office or the notice board. Hide any private columns, then save Google Sheets to PDF in landscape with Fit to width, so all 25 days fit on one page. If you would rather start from a ready-made file, browse our Excel and Word templates, which open in Google Sheets too.
Common mistakes and how to fix them
- The percentage shows a large decimal, like 0.8. Column AC isn't formatted as a percentage yet. Use Format > Number > Percent.
- Totals stay at zero. Check that the range in the formula covers the date columns of that row. With P/A, also check for a space after the letter, because "P " is not the same as "P".
- The red rule colours the wrong rows. The range must start in row 2 and the formula must say
$AC2, matching the first row of the range. - Dates show as numbers like 46357. That is how Sheets stores dates. Format row 1 as a date again.
Frequently asked questions
Can students mark their own attendance in Google Sheets?
They can, but then every student needs edit access and can change other rows too. A safer option is a short Google Form with a name question that sends each check-in to a responses sheet, while you keep the attendance sheet itself view-only.
How do I count leave or late as half a day?
With the P/A dropdown, add an option such as H and use =COUNTIF(B2:Z2,"P")+0.5*COUNTIF(B2:Z2,"H") in the Present column. The percentage formula stays the same.
Does the attendance sheet work offline?
In the Android app, you can make a file available offline from its menu and mark attendance without data. The changes sync the next time the phone connects.
One search tip a week, plus our new guides: follow dedigger on WhatsApp.
