Business

Employee Attendance and Productivity Tracking in Excel

Define attendance clearly, record absences in an Excel exceptions log, calculate attendance fairly and measure productivity with care, with a free example.

Two managers can look at the same month and report different attendance for the same person. One counts approved leave as absence and the other does not. One treats a half day as present. Unless the rules are written down before the counting starts, the percentage cannot be defended, and it should not be used to judge anyone.

This guide shows how to agree the definitions, record attendance in Excel, calculate it in two clearly labelled ways and add a productivity measure without drawing conclusions the numbers cannot support. All the rules below are examples. Replace them with your organisation's approved policy.

Download the example attendance workbook (.xlsx)

1. Write the rules first

Answer these before you build anything:

  • Which days are working days? Which holidays apply, and to whom?
  • Which kinds of leave exist, and who approves them?
  • How is a half day counted?
  • When is someone late, and does lateness affect attendance or only get recorded?
  • How are remote work, business travel and training counted?
  • Who records entries, by when, and who can correct them?

The example uses a made-up team of eight in March 2026, with Saturday and Sunday off and one example holiday on 23 March. That leaves 21 working days. Its codes are:

CodeMeaningDays awayCounts as approved leave
ALApproved annual leave11
SLApproved sick leave11
HDHalf day, approved0.50.5
UAUnapproved absence10
LTLate arrival, still present00

2. Choose how to record

An attendance register has an entry for every person on every day. It is complete but slow to fill in. An exceptions log records only what differs from normal attendance: leave, absence or lateness. Everyone else counts as present.

The example uses an exceptions log with 19 entries for the month. It is quick, but it has a serious weakness: a forgotten entry makes attendance look better than it was. Use it only if someone confirms each day or week that all absences have been entered. If your organisation must prove who was present, for pay, safety or legal reasons, use a time and attendance record that captures presence directly.

Each row holds the date, employee ID, code and, for late arrivals, the minutes. Drop-down lists limit the IDs and codes. A Check column then flags an unknown ID, an unknown code, a date outside the month, an entry on a weekend or holiday, and two entries for one person on one day. The Summary sheet counts entries needing attention. Do not use the figures until it reads zero.

3. Count working days with a formula

Excel's NETWORKDAYS.INTL function counts working days between two dates, lets you choose the weekend and skips a list of holidays:

=NETWORKDAYS.INTL(A2, B2, 1, $A$6:$A$30)

A2 and B2 are the first and last day of the month. The 1 means Saturday and Sunday are the weekend. Other numbers select other patterns, such as Friday and Saturday, or Sunday only, so check the list in Microsoft's reference. People on different shift patterns need their own working-day counts. The example gives everyone the same one.

4. Calculate attendance in two ways

Days present             = working days − days away
Attendance               = days present ÷ working days
Excluding approved leave = days present ÷ (working days − approved leave days)

The first figure answers "how much of the month was the person at work?" The second answers "of the days they were expected, how many did they attend?" Label both. A figure without its definition will be read in whichever way the reader assumes.

Excel attendance summary for eight sample employees in March 2026 with leave, half days, unapproved days, late arrivals, days present, attendance and attendance excluding approved leave
The Summary sheet with sample data, printed from Microsoft Excel. Select the image to open it full size.

5. Read the results carefully

The sample shows why one percentage is not enough:

  • Celine has the lowest attendance, 85.7%. All of it is three days of approved annual leave. Excluding approved leave, the figure is 100%.
  • Bilal, Danish and Gul all show 90.5%. Gul had two days of annual leave and Danish two days of sick leave. Bilal had two unapproved days, so only Bilal's figure stays at 90.5% when approved leave is excluded.

Ranking people on the first figure would put someone who used approved leave at the bottom. That is unfair, and it may discourage people from taking leave they are entitled to.

For the team, there were 168 possible days (eight people × 21). With 10 days of approved leave and 3 unapproved days, 155 days were attended: 92.3% attendance, or 98.1% excluding approved leave. There were also 5 late arrivals totalling 105 minutes. Calculate team figures from total days, which keeps them correct when people have different numbers of working days.

6. Handle the difficult cases

  • Joiners and leavers: count only the days they were employed. The example workbook does not do this; change that person's working days and note why.
  • Long leave: long approved absences can distort a team percentage. Show them separately in a note, without health details.
  • Corrections: keep a record of what changed, who changed it and why.
  • Disputes: let employees see their own record and say how to challenge an entry.

7. Measure productivity separately

Attendance says whether someone was there. It says nothing about what was achieved. For work with comparable units, output per hour is a simple starting measure:

Output per hour = output ÷ hours worked

The workbook has a separate sheet for four people in the sample's Operations team, with made-up hours and orders processed:

EmployeeHoursOrdersOrders per hour
Ayesha1519066.00
Bilal1407005.00
Celine1368846.50
Hamza1569366.00
Team5833,4265.88

Celine worked the fewest hours and had the highest rate. Bilal's rate is lowest, but the table cannot say why. The orders may have been more complex, a system may have been down, or Bilal may have spent time training someone. Find out before drawing a conclusion.

The team rate is total orders divided by total hours, not the average of the four rates. Compare like with like, add a quality measure such as errors or returns, and do not treat output per hour as a complete view of performance. For several measures together, see the weighted KPI scorecard guide. To check a single person's percentage or a team's hourly rate, use the attendance calculator and the productivity calculator.

8. Protect personal information

Attendance records are personal data, and leave types can reveal sensitive matters such as health.

  • Record only what you need. Do not write diagnoses or medical details in a spreadsheet.
  • Limit who can open the file, and avoid sending it by chat or personal email.
  • Decide how long records are kept and how they are deleted.
  • Tell employees what is recorded and why.

Sheet protection helps prevent accidental changes but is not a security control. A password on the file is a separate Excel feature; access control on the folder or system where it is stored matters as well. Privacy and record-keeping duties differ between countries, so confirm yours.

Advantages and limits of Excel

Advantages: low cost where Excel is already used, visible formulas and easy changes to codes.

Limits: it relies on manual entry, has no built-in leave approval, cannot easily show who edited what, and becomes hard to manage with shifts, several sites or many employees. If pay depends on the records, consider a dedicated attendance or HR system and check its results against your rules.

Common mistakes

  • Starting to count before agreeing definitions.
  • Treating approved and unapproved absence as the same thing.
  • Assuming a blank means present without anyone confirming it.
  • Averaging percentages instead of using total days.
  • Judging performance from attendance or output alone.
  • Sharing a named list more widely than necessary.

Practical next steps

Agree your rules on one page, then record two weeks and compare the log with what supervisors remember. Fix the gaps before reporting percentages. When you need a management view across months and departments, follow the HR attendance dashboard guide. A ready-made HR attendance and leave tracker is also available in the shop.

Frequently asked questions

Should approved leave reduce attendance?

It depends on what you are measuring. Show both figures if there is any doubt, and say which one your policy uses.

Should late arrivals count as absence?

The example records them separately and does not reduce attendance. Any rule that turns lateness into absence or affects pay needs to be in your written policy and permitted by the law that applies.

What is a good attendance percentage?

There is no single figure that suits every organisation. It depends on leave entitlements, the kind of work and what you count. Compare similar periods using the same definitions.

Can I use this for several months?

The example covers one month. Keep one file per month, or add a month column to your own version and include it in every formula. Test the totals after any change.

Does the workbook calculate pay?

No. It counts days and late minutes. It does not calculate salary, deductions or leave balances.

Which functions does the workbook use?

Mainly COUNTIFS, SUMIFS, INDEX, MATCH, EOMONTH and NETWORKDAYS.INTL. It was checked in Microsoft Excel (version 16.0). Other versions and programs were not tested.

References

Links checked on 25 November 2026.

The references cover the Excel features. The attendance rules, definitions and management suggestions are examples for general information. They are not legal or HR advice and do not describe the law in any country. Check your own contracts, policies and the law that applies to you.

Keep reading

Spending hours on the same Excel steps?

We can automate the repeat work in your workbook, with a written scope and price before anything starts.