ExcelReady
CourseFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before the interview. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Function guides
  • Blog

Product

  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Projects
  3. Make an Attendance Tracker in Excel

Make an Attendance Tracker in Excel

By ExcelReady Team·Updated October 30, 2026·5 min read

The short answer

To make an attendance tracker in Excel, put names in column A and dates across row 1, then type a code in each cell: P for present, A for absent, L for late. COUNTIF counts each code per person, and dividing by the days recorded gives an attendance rate. Conditional formatting colors absences and low rates automatically.

Key takeaways

  • Use short codes (P, A, L) in the grid and a drop-down list so everyone types them the same way.
  • =COUNTIF(B2:F2,"A") counts one person's absences; the same formula down a column counts a day's absences.
  • Divide by COUNTA of the row so the rate only counts days that have been filled in.
  • Conditional formatting turns every A red and flags anyone below your target, with no manual coloring.
On this page+
  1. How the attendance tracker is laid out
  2. Step 1: Add dates across the top
  3. Step 2: Add a drop-down list for the codes
  4. Step 3: Count present, absent and late with COUNTIF
  5. Step 4: Work out the attendance rate
  6. Step 5: Count each day's attendance
  7. Step 6: Color absences and low attendance
  8. How to extend the tracker to a month
  9. Practise it

An attendance tracker in Excel is a grid: people down the side, dates across the top and a short code in each cell. COUNTIF turns the codes into totals and rates, and conditional formatting makes problems jump out. This guide builds a one-week tracker for a team of five that you can extend to a month or a school term. It works the same for staff shifts, classes and training sessions.

How the attendance tracker is laid out#

The tracker has one row per person and one column per day, followed by summary columns.

ABCDEFGHIJ
1NameMon 3/3Tue 3/4Wed 3/5Thu 3/6Fri 3/7PresentAbsentLateAttended %
2AnaPPPPP500100%
3BenPAPPL31180%
4ChloePPLPP401100%
5DevAAPPP32060%
6EmaPPPPA41080%

The codes are P (present), A (absent) and L (late). Put a small key above or beside the grid so anyone filling it in knows what each code means.

Step 1: Add dates across the top#

Real dates in the header let you sort, filter and count by date later. Type the first date in B1, for example 3/3/2025. Then in C1, type:

Excel formula
=WORKDAY(B1,1)

Fill it right to F1 with Ctrl+R (Mac: ⌘R). WORKDAY gives the next working day, so the headers skip Saturdays and Sundays. To show the day name as well, select the headers, press Ctrl+1 (Mac: ⌘1), choose Custom and type the format ddd m/d.

Step 2: Add a drop-down list for the codes#

A drop-down list stops typing mistakes such as "p ", "Pres" or "0". COUNTIF only counts what matches exactly (apart from upper and lower case).

  1. Select the grid, B2:F6.
  2. Click Data > Data Validation (on Windows it's in the Data Tools group).
  3. Under Allow, choose List.
  4. In Source, type P,A,L and click OK.

Each cell now has a small arrow with the three codes. Our guide to creating a drop-down list in Excel covers lists that read from cells instead.

Step 3: Count present, absent and late with COUNTIF#

COUNTIF counts the cells in a range that match a condition: =COUNTIF(range, criteria). In G2, count Ana's present days:

Excel formula
=COUNTIF(B2:F2,"P")

In H2 and I2, use the same range with "A" and "L". Then select G2:I6 and press Ctrl+D (Mac: ⌘D) to fill every row. Text criteria always go in double quotes. How to use COUNTIF has more criteria examples, such as counting everything that is not P with "<>P".

A quick check for each row: Present + Absent + Late should equal the number of days filled in. If it doesn't, someone typed a code that isn't on the list.

Step 4: Work out the attendance rate#

Divide the days attended by the days recorded. If late still counts as attended, add the P and L counts. In J2:

Excel formula
=(G2+I2)/COUNTA(B2:F2)

COUNTA counts the filled cells in the row, so blank days that haven't happened yet don't pull the rate down. Format column J as a percentage with Ctrl+Shift+% (Mac: Control+Shift+%). Ben shows 80%: four of five days attended.

If you only want days marked P, use =COUNTIF(B2:F2,"P")/COUNTA(B2:F2). That gives Ben 60%, and it is the formula in the exercise on this page.

If you add a holiday code such as H, take those days out of the bottom of the fraction: =(G2+I2)/(COUNTA(B2:F2)-COUNTIF(B2:F2,"H")).

Step 5: Count each day's attendance#

The same COUNTIF works down a column. In B8, count how many people were present on Monday:

Excel formula
=COUNTIF(B2:B6,"P")

Fill it right to F8. The week reads 4, 3, 4, 5, 3. Tuesday and Friday are the days to look at. This is often the number a manager asks for first.

Step 6: Color absences and low attendance#

Conditional formatting colors cells by rule, so the colors update as codes change.

Turn every A red:

  1. Select B2:F6.
  2. Choose Home > Conditional Formatting > Highlight Cells Rules > Equal To.
  3. Type A, pick Light Red Fill with Dark Red Text and click OK.

Flag the whole row for anyone under 90%:

  1. Select A2:J6.
  2. Choose Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format.
  3. Enter =$J2<0.9 and pick a yellow fill.

The $ before J keeps every cell in the row looking at the rate in column J. Without it, each column would check a different cell. The conditional formatting guide explains formula rules step by step.

How to extend the tracker to a month#

  • More days: fill the date header right for the whole month, then widen the COUNTIF ranges, for example B2:W2.
  • More people: insert rows inside the grid, above the last person, so the ranges grow by themselves.
  • One sheet per month: copy the sheet, change the first date and clear the codes. The formulas stay.
  • Freeze the names and dates: click B2 and choose View > Freeze Panes so they stay in view as you scroll.

Counting codes like this is also good practice for tests: it is one of the practice tasks to do before an Excel test. Next, try an inventory tracker to practise SUMIF and lookups, or an invoice with formulas.

Practise it#

Do the exercise on this page to work out a present rate with COUNTIF and COUNTA. Then practise COUNTIF with text, numbers and cell criteria and practise conditional formatting rules in a live spreadsheet. The COUNTIF function guide is there when you need the full reference.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Row 3 is Ben's week. In G3, work out the share of days Ben was present: count the P codes in B3:F3 with COUNTIF, then divide by the number of days filled in, using COUNTA on the same range.

fx
ABCDEFGH
1
Name
Mon
Tue
Wed
Thu
Fri
Present %
2
Ana
P
P
P
P
P
3
Ben
P
A
P
P
L
4
Chloe
P
P
L
P
P
5
Dev
A
A
P
P
P
6
Ema
P
P
P
P
A
7
8
9

Tip: COUNTIF(B3:F3,"P") counts the present days. COUNTA(B3:F3) counts every filled cell. Divide the first by the second.

Practise this in a lesson

LessonCOUNTIFCount the cells that match a condition, from exact words to number checks like ">=8".LessonConditional formattingMake important numbers stand out: highlight values over a limit, duplicate IDs and the top 3, then color whole rows with a formula rule and a $ on the column.Function guideCOUNTIFCount cells that match one condition with COUNTIF: text, numbers, wildcards and cell references. Real examples and a live exercise.

Frequently asked questions

What codes should I use in an attendance sheet?

+

Keep them short and few: P for present, A for absent and L for late cover most needs. Add codes like H for holiday or S for sick only if you will report on them, and list them in a key above the grid.

How do I count absences in Excel?

+

Use COUNTIF with the row of codes and "A" as the criteria: =COUNTIF(B2:F2,"A"). Fill it down to count every person's absences, or point it at a column to count one day.

Should late count as present?

+

That is a policy choice, not an Excel one. If late counts as attended, add both counts: =(COUNTIF(B2:F2,"P")+COUNTIF(B2:F2,"L"))/COUNTA(B2:F2).

Can the tracker show weekdays only?

+

Yes. Put the first date in B1 and use =WORKDAY(B1,1) in C1, then fill right. Each header is the next working day, so weekends never appear.

Is COUNTIF case-sensitive?

+

No. COUNTIF counts "p" and "P" the same way, so a lowercase code is still counted.

Sources

  • COUNTIF function - Microsoft Support
  • COUNTA function - Microsoft Support
  • Use conditional formatting to highlight information - Microsoft Support

Written and checked by the ExcelReady Team. First published October 30, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How the attendance tracker is laid out
  2. Step 1: Add dates across the top
  3. Step 2: Add a drop-down list for the codes
  4. Step 3: Count present, absent and late with COUNTIF
  5. Step 4: Work out the attendance rate
  6. Step 5: Count each day's attendance
  7. Step 6: Color absences and low attendance
  8. How to extend the tracker to a month
  9. Practise it

Keep reading

Projects· 7 min read

Make an Inventory Tracker in Excel

To make an inventory tracker in Excel, keep two tables: a product list with each item's opening stock and reorder level, and a log with one row for every delivery or sale. SUMIF adds the stock in and out for each product, so current stock is opening plus in minus out. An IF formula and conditional formatting flag items to reorder.

Projects· 6 min read

Create an Invoice in Excel With Formulas

To create an invoice in Excel with formulas, keep a price list on its own sheet and use VLOOKUP to bring each item's description and price into the invoice from its code. Multiply quantity by price for each line, add the lines with SUM, work out tax with ROUND so it shows exact cents, and add a due date by adding the payment terms to the invoice date.

Conditional math· 6 min read

How to Use COUNTIF in Excel (With Criteria Examples)

COUNTIF counts the cells in a range that meet one condition. Write =COUNTIF(range, criteria), for example =COUNTIF(D2:D9,"Open") to count open tickets. Put text and comparisons in double quotes, like ">=8" or "<>Low". Numbers and cell references go in without quotes. For two or more conditions, use COUNTIFS.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback. The first lessons are free, with no download.

Start learning for free