New: the AiroHR Employee and HR apps are on the App Store for iPhone and iPad.Both apps now on the App Store Get the apps
AiroHR
×
Chat with us on WhatsApp

Attendance sheet format in Excel: codes, formulas and paid days

An attendance sheet has one row per employee and one column per day of the month. Mark each day with a short code (P, A, HD, L, WO, H), count the codes with COUNTIF, and add them up to get paid days and loss of pay for the salary register.

Last reviewed: 17 November 2026 · By the AiroHR team

Key points

  • Use one code per day: P present, A absent, HD half day, L paid leave, WO weekly off, H holiday.
  • Paid days = present + half of half days + paid leave + weekly offs + holidays.
  • Loss of pay (LOP) days = days in the month − paid days.
  • Keep overtime hours in their own column: overtime is paid at twice the normal rate and needs the worker's consent.
Attendance sheet worked: 22 days present, 1 half day, 1 paid leave, 4 weekly offs and 1 holiday give 28.5 paid days in a 30-day month; ₹18,000 × 28.5 ÷ 30 = ₹17,100 earned.
Paid days from the day codes, from the guide's worked example.

Key facts (as of 17 November 2026)

  • The four Labour Codes apply from 21 November 2025 (PIB).
  • Working hours: 8 to 12 hours a day and 48 hours a week, depending on the rules for the kind of work (PIB).
  • Overtime: only with the worker's consent, at no less than twice the normal rate of wages (PIB).
  • We found no single government Excel format; state rules set the statutory register forms.

Updated 17 November 2026.

What is an attendance register?

An attendance register is the month's record of each employee's working days: one row per person, one column per date, with a mark for present, absent, half day, leave, weekly off or holiday. Its totals give paid days and loss-of-pay days, which the salary register uses to work out each person's earned pay.

This page gives a working Excel layout. The statutory register forms you must keep come from the labour rules of your state, so check those before you treat any sheet as the legal register.

Which codes should an attendance sheet use?

Six codes cover most workplaces: P for present, A for absent, HD for half day, L for paid leave, WO for weekly off and H for a paid holiday. Use one code per cell, always in capitals and with no spaces, so that COUNTIF counts every day correctly and no day is counted twice.

CodeMeaningCounts as
PPresent1 paid day
HDHalf day0.5 paid day, 0.5 LOP
LPaid leave (CL, SL, EL)1 paid day
WOWeekly off1 paid day
HPaid holiday1 paid day
AAbsent or unpaid leave1 LOP day

If you need to tell leave types apart, keep separate columns for CL, SL and EL balances, but mark the day itself as L so the paid-day formula stays simple.

How do you lay out the sheet in Excel?

Put the month's first date in cell A1 and the headings in row 2. Columns A and B hold the employee code and name, columns C to AG hold days 1 to 31, and columns AH onwards hold the totals. The first employee goes in row 3; copy the formulas down for everyone else.

ColumnHeadingFormula (row 3)
AEmployee codeTyped
BNameTyped
C to AGDay 1 to day 31One code a day; leave the extra days of a short month blank
AHPresent=COUNTIF(C3:AG3,"P")
AIHalf days=COUNTIF(C3:AG3,"HD")
AJPaid leave=COUNTIF(C3:AG3,"L")
AKWeekly offs=COUNTIF(C3:AG3,"WO")
ALHolidays=COUNTIF(C3:AG3,"H")
AMAbsent=COUNTIF(C3:AG3,"A")
ANPaid days=AH3+AI3*0.5+AJ3+AK3+AL3
AODays in month=DAY(EOMONTH($A$1,0))
APLOP days=AO3-AN3
AQOvertime hoursTyped from the overtime record
ARCheck=IF(COUNTA(C3:AG3)=AO3,"OK","Fill every day")

The check column catches a row where a day was left empty or a code was typed twice. Add conditional formatting on C3:AG3 (for example, red when the cell equals "A") so absences stand out.

How do you calculate paid days from attendance?

Paid days are present days plus half of each half day plus paid leave, weekly offs and paid holidays: =AH3+AI3*0.5+AJ3+AK3+AL3. Loss-of-pay days are the days in the month minus paid days. Earned pay for each salary item is then fixed pay × paid days ÷ days in the month.

Some employers pay on a fixed 26-day or 30-day month instead of the calendar days. Whatever you choose, use the same divisor every month and in the salary register, so the two sheets agree.

Worked example: a 30-day month

An employee on a fixed monthly salary of ₹18,000 has this month: 22 days P, 1 HD, 1 L, 4 WO, 1 H and 1 A, which makes 30 days in all.

ItemWorkingResult
Paid days22 + 1 × 0.5 + 1 + 4 + 128.5
LOP days30 − 28.51.5
Earned salary18,000 × 28.5 ÷ 30₹17,100
Salary cut for LOP18,000 − 17,100₹900

PF, ESI and professional tax are then worked out on the earned amounts, as shown in the salary register format.

How should overtime be recorded on an attendance sheet?

Keep overtime hours in a separate column, not as extra days. Under the Labour Codes, overtime needs the worker's consent and is paid at no less than twice the normal rate of wages, so you need the hours, not days, to work out the payment. Record the date and hours of each overtime spell as well.

The overtime calculation guide shows how to turn monthly wages into an hourly rate and price the overtime hours.

What goes wrong with attendance sheets in Excel?

  1. Codes are typed in different ways ("p", "P ", "Present"), so COUNTIF misses some days.
  2. Weekly offs and holidays are left blank instead of coded, so paid days come out short.
  3. Late marks, short hours and night shifts are decided by eye, differently each month.
  4. The sheet is filled from memory at month end instead of from the punch record.
  5. Leave taken is marked on the sheet but never deducted from the leave balance.

Attendance in AiroHR

AiroHR builds each day's attendance from biometric machines and selfie and GPS punches in the staff app, applies your shift, late and overtime rules, and passes paid days straight to payroll. The monthly attendance page downloads to Excel when you need the sheet.

Attendance software Salary register format

Where to confirm

Commentary this guide was written from

Work it out, then stay up to date

Use the free salary slip generator, or get each month's PF, ESI, PT and TDS dates by email with free compliance alerts.

Related guides

The formulas on this page are a working layout, not a statutory form. Check the register forms your state requires and the leave, holiday and overtime rules that apply to your staff. Last reviewed: 17 November 2026.

FAQ

Attendance sheet questions, answered

What is an attendance register?

A monthly record of each employee's working days, with one row per person and one column per date, marked present, absent, half day, leave, weekly off or holiday. Its totals give paid days and loss-of-pay days for the salary register.

How do you count present days in Excel?

Use COUNTIF on the row of day codes, for example =COUNTIF(C3:AG3,"P") where C3 to AG3 hold days 1 to 31. Use the same formula with "HD", "L", "WO", "H" and "A" for the other codes.

How do you calculate paid days?

Add present days, half of the half days, paid leave, weekly offs and paid holidays. In Excel: =AH3+AI3*0.5+AJ3+AK3+AL3. Loss-of-pay days are the days in the month minus paid days.

How is salary cut for loss of pay?

Earned salary is fixed monthly salary multiplied by paid days and divided by days in the month. For ₹18,000 with 28.5 paid days in a 30-day month, earned salary is ₹17,100, so ₹900 is cut.

Is there a government format for an attendance register?

We found no single government Excel format. The statutory register forms come from the labour rules of your state, so check those and keep your working sheet in line with them.

Stop counting days by hand

Book a demo and we will build a month's attendance and paid days from your punches.

Book a demo

More guides: all payroll & compliance guides · free compliance alerts by email