On this page12 sections
- Choose your codes first
- Lay out the month
- The formulas that do the work
- A worked month
- Attendance isn't the same as absence
- Keep leave records private and complete
- Mistakes that break an attendance sheet
- Make an attendance sheet in Foxcolab Sheets
- Build the month
- Make the codes foolproof
- Share it and close each month
- Related
In short
To make an attendance sheet, list people down the left and the month's dates across the top, then mark every day with a short code: P for present, A for absent, HD for a half day, leave codes such as CL, SL and EL, WO for a weekly off and H for a holiday. COUNTIF turns each row into present days, leave, unpaid days and paid days. Foxcolab Sheets keeps the sheet end-to-end encrypted.
Key takeaways
- Give every day a code, including weekly offs and holidays. A blank cell can mean "absent" or "forgot to mark".
- COUNTIF counts each code in a row, and half days count as 0.5 so totals match payroll.
- NETWORKDAYS.INTL(start, end, 11, holidays) gives working days for a Sunday-only weekend.
- Separate planned leave from unplanned absence. The US Bureau of Labor Statistics leaves vacation out of its absence rate.
- Foxcolab Sheets encrypts attendance and leave records on your device, so Foxcolab can't read who was off sick or why.
Last reviewed 3 December 2026 by Foxcolab Team
An attendance sheet lists your people down the left and the days of the month across the top, with one short code in every cell: present, absent, half day, a type of leave, the weekly off or a holiday. COUNTIF formulas at the end of each row turn those codes into present days, leave taken, unpaid days and paid days, ready for payroll. This guide gives you the codes, the layout, the formulas and a worked month. Then it shows how to build the sheet in Foxcolab Sheets, where attendance and leave records are end-to-end encrypted and Foxcolab can't read them.
Choose your codes first#
Codes are the whole system, so settle them before you build anything. Keep the list short, put it at the top of the sheet, and match it to your leave policy:
| Code | Means | Counts as |
|---|---|---|
| P | Present | 1 day present |
| A | Absent without leave | 1 unpaid day |
| HD | Half day | 0.5 present, 0.5 unpaid |
| CL | Casual leave | 1 paid leave day |
| SL | Sick leave | 1 paid leave day |
| EL | Earned (annual) leave | 1 paid leave day |
| WO | Weekly off | Not a working day |
| H | Public holiday | Not a working day |
Mark every day, including weekly offs and holidays. A blank cell might mean someone was off, or that nobody marked the day, and the sheet can't tell the difference. Whether a code is paid or unpaid is a policy decision. Change the "Counts as" column to match yours, and check the leave rules that apply where your people work.
Lay out the month#
One sheet per month keeps each month's record intact and easy to sign off:
| Cell | Holds | Example |
|---|---|---|
| C1 | The first day of the month | Dec 1, 2026 |
| F1 | Working days this month (formula) | 26 |
| A5:A40 | Employee ID | E-104 |
| B5:B40 | Name | Ananya Gupta |
| C3:AG3 | Dates 1 to 31 (formula) | Dec 1 … Dec 31 |
| C4:AG4 | Day of the week (formula) | Tue |
| C5:AG40 | One code per person per day | P |
| AH:AM | Totals for each person (formulas) | 24.5 |
Keep each person on the same row in every month's sheet. Formulas that add up a year of leave then only need the same cell references on each sheet.
The formulas that do the work#
Type these in the first cell named, then fill them right (rows 3 and 4) or down (the totals):
C3 Date =IF(COLUMN()-3<DAY(EOMONTH($C$1,0)),$C$1+COLUMN()-3,"")
C4 Day =IF(C3="","",TEXT(C3,"ddd"))
F1 Working days =NETWORKDAYS.INTL(C1,EOMONTH(C1,0),11,Holidays!A2:A20)
AH5 Present =COUNTIF(C5:AG5,"P")+0.5*COUNTIF(C5:AG5,"HD")
AI5 Paid leave =COUNTIF(C5:AG5,"CL")+COUNTIF(C5:AG5,"SL")+COUNTIF(C5:AG5,"EL")
AJ5 Unpaid days =COUNTIF(C5:AG5,"A")+0.5*COUNTIF(C5:AG5,"HD")
AK5 Paid days =DAY(EOMONTH($C$1,0))-AJ5
AL5 Not marked =DAY(EOMONTH($C$1,0))-COUNTA(C5:AG5)
AM5 Attendance =IFERROR(AH5/$F$1,0)
C41 Present per day =COUNTIF(C5:C40,"P")+0.5*COUNTIF(C5:C40,"HD")DAY(EOMONTH($C$1,0)) is the number of days in the month, so the date row stops at 28, 30 or 31 on its own. In NETWORKDAYS.INTL, the weekend code 11 means Sunday is the only day off. Use 1 for Saturday and Sunday, or a seven-character mask such as "0000011", where each character is a day starting Monday and 1 means a day off. List public holidays on a sheet named Holidays.
Not marked should be 0 for every row before you close the month. Format AM as a percentage.
A worked month#
Here's December 2026 for three example employees. The month has four Sundays (the 6th, 13th, 20th and 27th) and a company holiday on Friday the 25th, so working days are 31 − 4 − 1 = 26.
| Name | Codes in the month | Present | Paid leave | Unpaid | Paid days | Attendance |
|---|---|---|---|---|---|---|
| Ananya Gupta | P 24, HD 1, SL 1, WO 4, H 1 | 24.5 | 1 | 0.5 | 30.5 | 94.2% |
| Rohan Mehta | P 22, CL 2, A 2, WO 4, H 1 | 22 | 2 | 2 | 29 | 84.6% |
| Sara Thomas | P 20, EL 5, SL 1, WO 4, H 1 | 20 | 6 | 0 | 31 | 76.9% |
Each row adds up to 31 codes, so Not marked is 0. Paid days feed straight into payroll: Rohan is paid for 29 of 31 days, and a salary slip shows the other 2 as loss of pay. How to make a salary slip shows the formula.
Attendance isn't the same as absence#
Sara has the lowest attendance, but she took five days of planned annual leave. Rohan's two unplanned absences are the ones worth a conversation. The US Bureau of Labor Statistics draws the same line: its absence figures count illness, injury, family obligations and similar reasons, and leave out "vacation or personal days" and holidays. In 2025 it measured an absence rate of 3.2% and a lost worktime rate, hours absent as a share of hours usually worked, of 1.7% for full-time employees (BLS, table 47).
To track unplanned absence per person, add one more column:
AN5 =IFERROR((COUNTIF(C5:AG5,"A")+COUNTIF(C5:AG5,"SL")+0.5*COUNTIF(C5:AG5,"HD"))/$F$1,0)That gives Ananya 1.5 ÷ 26 = 5.8%, Rohan 2 ÷ 26 = 7.7% and Sara 1 ÷ 26 = 3.8%.
Keep leave records private and complete#
An attendance sheet is a health record by another name. Every SL code says someone was ill. Mark the day and nothing more: no diagnosis, no doctor's note in a comment. In the US, the FMLA rules ask employers to record the dates of FMLA leave (and the hours, when it's taken in part days), keep the records for at least three years, and keep medical certifications and histories as confidential records "in separate files/records from the usual personnel files" (29 CFR 825.500). Other countries set their own retention periods, so check yours before deleting old months.
Mistakes that break an attendance sheet#
| Mistake | What happens | Fix |
|---|---|---|
| Leaving days blank | Nobody knows if a blank is a day off or a missed entry | Mark every day, and check Not marked is 0 |
| Free-text entries | "Sick", "sl" and "SL " count as three different things | Use a dropdown of codes |
| Counting a half day as a full day | Paid days don't match payroll | Count HD as 0.5 in both present and unpaid |
| One sheet for the whole year | Last month's totals change when someone edits January | One sheet per month, locked when it closes |
| Reasons in comments | Health details spread to everyone with access | Keep medical details in a separate restricted record |
| People on different rows each month | Yearly leave totals add up the wrong person | Duplicate last month's sheet to start the next |
Make an attendance sheet in Foxcolab Sheets#
Attendance records show who was sick, who was absent without pay and who takes leave when. Foxcolab Sheets encrypts every spreadsheet on your device with its own key, and cells, titles and comments are encrypted before they sync. Foxcolab stores only encrypted data, so it can't read your attendance or leave records, and only the people you share the sheet with can open them. Sheets comes with every Foxcolab account, the free plan included.
Build the month#
Create the spreadsheet
In your Sheets library, click New, then Blank spreadsheet. Name it Attendance 2026. Right-click the first sheet's tab, choose Rename and call it Dec.
Add the holiday list
Choose Insert → Sheet, rename it Holidays, and type the year's public holidays as dates in A2 down.
Type the formulas
On Dec, type the first day of the month in C1, then the date, day, working days and total formulas from this guide. Fill the date and day formulas right to column AG, and the totals down for every person.
Keep names and dates in view
Choose View → Freeze → 2 columns. Then select a cell in row 4, open View → Freeze again and choose Up to row 4.
Make the codes foolproof#
Add a code dropdown
Select C5:AG40 and choose Data → Data validation → Add rule. Set Criteria to Dropdown and use Add item for P, A, HD, CL, SL, EL, WO and H. Keep Display style on Chip so each code gets its own color, choose Reject the input, add Help text such as "P, A, HD, CL, SL, EL, WO or H" and click Done.
Make absences stand out
With C5:AG40 selected, choose Format → Conditional formatting → Add rule. Under Format cells if, pick Text is exactly, enter A, choose a red Fill color and click Done.
Shade Sundays
Add a rule on C3:AG40 with Custom formula is and =WEEKDAY(C$3)=1, and a light grey fill. The dollar sign keeps every cell looking at its date in row 3.
Highlight the current day
Add one more rule on C3:AG40 with Custom formula is and =C$3=TODAY(), so whoever marks attendance lands on the right column.
Add drop-down lists and data validation in Sheets and Use conditional formatting in Sheets cover every option.
Share it and close each month#
- Who marks attendance: click Share and invite team leads as Editor. Give HR or payroll Viewer access, and set Access expires for an outside accountant. Switch off Viewers can download, print and copy if viewers shouldn't keep copies. Share a spreadsheet in Sheets covers every option.
- Protect the totals: select AH5:AN40, choose Data → Protect sheets and ranges → Add a protected range or sheet, pick Only the owner and you and click Done. Editors can mark codes but can't change a formula.
- Check edits: File → Show changes lists who changed which cell. Filter by Who and When before you approve the month.
- Close the month: when payroll has run, choose File → Version history → Name current version, for example "Dec 2026 closed". Then protect the whole sheet.
- Start the next month: right-click the tab, choose Duplicate, rename the copy Jan, change C1 to the new month and clear the codes. Everyone stays on the same row, so a yearly leave total such as =COUNTIF(Dec!C5:AG5,"EL")+COUNTIF(Jan!C5:AG5,"EL") adds up the right person.
Running shifts instead of fixed days? How to make a timesheet records start and end times and overtime, and How to make an employee schedule plans the rota before anyone clocks in.
Related#
- Add drop-down lists and data validation in Sheets
- Use conditional formatting in Sheets
- How to make a timesheet
- How to make a salary slip
Attendance and leave records belong to your people. Create a free account and build your attendance sheet in a spreadsheet Foxcolab can't read, or see plans for your own domain and more storage. Tracking attendance for a whole company? See Foxcolab for enterprise or talk to sales.
Frequently asked questions
How do I calculate attendance in a spreadsheet?
Mark each day with a code, then count the codes. With codes in C5:AG5, present days are =COUNTIF(C5:AG5,"P")+0.5*COUNTIF(C5:AG5,"HD"), and attendance is present days divided by the month's working days. Use NETWORKDAYS.INTL to work out the working days for your weekly off and holidays.
What codes should an attendance sheet use?
Keep them short and few. P for present, A for absent without pay, HD for half day, one code per leave type your policy has (such as CL for casual leave, SL for sick leave and EL for earned leave), WO for the weekly off and H for a public holiday. Put the list and what each code means at the top of the sheet.
Should I write the reason for sick leave in the attendance sheet?
No. Mark the day with a sick leave code and keep any medical details in a separate, restricted record. In the US, the FMLA rules require medical certifications and histories to be kept as confidential medical records, separate from usual personnel files.
Can employees mark their own attendance?
Yes, if a manager reviews it. Share the sheet with editors, use a dropdown so only valid codes can be entered, and protect the formula columns. In Foxcolab Sheets, Show changes lists who changed which cell and when, and the whole sheet is end-to-end encrypted.

Written by
Foxcolab TeamThe Foxcolab team, who build the apps and help people set them up.
More from FoxcolabDid this guide help you get it done?
One click, no account needed.