How to Create an Attendance Sheet in Google Sheets

In this tutorial, you will receive a free monthly employee attendance sheet with formulas in Google Sheets. To use it effectively, follow the instructions provided in this tutorial.

The formulas are designed to summarize the leave categories you input for each employee under the respective days of the week. This feature enhances the attendance sheet, making it both distinctive and user-friendly.

Feel free to customize the template according to your preferences by adding row borders, titles, and other formatting elements. You can also replace the leave categories with those prevailing in your organization.

To access the template, click the button below.

Attendance Sheet

Leave Categories and Customization

One of the specialties of my attendance sheet in Google Sheets is its flexibility in customization. Let’s begin with leave categories.

I’ve incorporated the following six common leave categories into my employee attendance sheet. Feel free to tailor them to align with your organization’s specific leave policies and categorizations.

  • P: Present
  • A: Absent
  • H: Holiday
  • SL: Sick Leave
  • CL: Casual Leave
  • PL: Privilege Leave

How do I modify the leave categories?

Navigate to column AR. You can customize the existing leave categories in AR1:AR10. Add more in the column or remove any as needed. The values in column AS are optional. A maximum of 10 leave types is supported.

Leave Categories in the Attendance Sheet Template

Utilization of Leave Categories in the Attendance Template

We have implemented the above leave categories in four sections of the attendance sheet template: in the attendance area, in the summary area, to create a legend string, and within conditional formatting.

These settings do not require any adjustments. I provide this information to help you understand how to use the sheet for recording employee attendance.

Optional Formula for Category String and Summary Labels

1. Legend String Formula in cell B3:

=TEXTJOIN(", ", TRUE, QUERY(TRANSPOSE(FILTER(HSTACK(AR1:AR10&": ", AS1:AS10), AR1:AR10<>"")),, 9^9))

It generates the legend string “P: Present, A: Absent, H: Holiday, SL: Sick Leave, CL: Casual Leave, PL: Privilege Leave”. The formula is flexible and will adjust according to your entered leave categories in the AR1:AS10 range.

This is a somewhat complex formula and is optional. If you are interested in understanding it, I recommend reading about the TEXTJOIN function and the flexible join formula in QUERY.

2. Formula in Cell AG5 for Field Labels in AG5:AP5:

=TOROW(AR1:AR10, 1)

This TOROW formula takes the range AR1:AR10, removes any empty cells, and arranges the non-empty values in a single row.

3. Drop-Downs in B6:AF100:

We used the categories in AR1:AR10 to create drop-downs in the B6:AF100 range, the attendance area in the sheet.

Instead of manually typing the leave type, double-click on any cell to select the leave type from a drop-down.

Drop-downs for Selecting the Leave Types in the Attendance Sheet

4. Highlighting in B6:AF100:

I’ve employed 10 custom formula rules to highlight each selected category in the range B6:AF100. If you are dissatisfied with the color selection, you can modify it.

Click on any cell in the range and navigate to Format > Conditional formatting. Select the rule you want to change the color for.

Highlight Rules in the Attendance Template

Four Essential Formulas for Creating an Attendance Sheet

We discussed two formulas above. They are optional and added for flexibility in the layout. You can manually enter the values returned by these formulas. This is not the case with the following formulas.

I’ve included four essential formulas in the free attendance sheet.

Essential Formulas in the Attendance Sheet

Formula #1:

=EOMONTH(AC1, 0)

Manually enter the month start date in cell AC1. This EOMONTH formula returns the end-of-month date in cell AC2.

Formula #2:

=SEQUENCE(1, AC2-AC1+1, AC1)

This formula in cell B4 takes the start date in cell AC1 and the end date in cell AC2 to generate a sequence of dates during that period in the range B4:AF4.

  • 1: Number of rows
  • AC2-AC1+1: Number of columns
  • AC1: Starting sequence from

Formula #3:

=ArrayFormula(IF(LEN(B4:AF4), TEXT(B4:AF4, "DDD"),))

In cell B5, this formula returns the corresponding names of the days of the week in the range B5:AF5.

The TEXT function formats the data, and the LEN part excludes blank cells in the last columns based on the number of days in the month.

Formula #4:

=BYROW(B6:AF, LAMBDA(v, MAP(AG5:AP5, LAMBDA(r, LET(test, COUNTIF(v, r), IF(test=0, ,test))))))
  • This is the key formula that returns the summary of attendance categories in each row.
    • The COUNTIF function returns the count of each category in AG5:AP5 in the first row of the range B6:AF.
    • The MAP function is employed to iterate over each category in the header AG5:AP5.
    • To repeat this for each row in the range B6:AF, the BYROW function is used.

How to Utilize the Attendance Sheet Template

Simply enter the month’s start date in cell AC1, employee names in A6:A, and select attendance categories in B6:AF. The sheet will take care of the rest.

Resources

In this tutorial, you received a free attendance template and all the details to use it effectively. I’ve also provided brief descriptions of the formulas in use.

Additionally, we offer some other professional free templates. Here are a few of them.

  1. Dynamic Yearly Calendar Template in Google Sheets
  2. Fully Flexible Fiscal Year Calendar In Google Sheets
  3. Reservation and Booking Status Calendar Template in Google Sheets
  4. Calendar View in Google Sheets (Custom Template)
  5. Hourly Time Slot Booking Template in Google Sheets
  6. Create Gantt Chart Using Formulas in Google Sheets
  7. Array Formula to Split Group Expenses in Google Sheets
  8. Create a Habit Tracker in Google Sheets: Step-by-Step Guide
Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Compare Two Tables for Differences in Excel

To compare two tables with similar data for differences, you can use the XLOOKUP...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

Summarize Data and Keep the Last Record in Google Sheets

In Google Sheets, we can summarize data (like sum, average, min, max, count) using...

More like this

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

Summarize Data and Keep the Last Record in Google Sheets

In Google Sheets, we can summarize data (like sum, average, min, max, count) using...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.