How to Create a Monthly Staff Attendance Sheet in Excel (With Easy Steps)

This dataset contains information about employees. Using this dataset, we will create a monthly staff attendance sheet in Excel in 7 easy steps.

7 Easy Steps to Create a Monthly Staff Attendance Sheet in Excel


Step 1: Creating a Monthly Menu

  • Select the cell where you want your month to appear. Here, I selected cell C4.
  • Go to the Data tab.
  • Select Data Tools.

Now, you will see a drop-down menu.

  • Select Data Validation from the drop-down menu.

Creating Month Menu

You will see a dialog box named Data Validation.

  • Select the drop-down option for Allow.

  • Select List from the drop-down menu.

Creating Month Menu

  • Enter all the twelve months’ names as the Source.
  • Select OK.

You will see that you have got a drop-down option for selecting a month in your Excel sheet.

Creating Month Menu

  • Click on the drop-down option.
  • Select your month. Here, I selected July.

Following the previous steps, open the Data Validation dialog box to select the year.

  • Select List as Allow.
  • Eneer the years as the Source.
  • Select OK.

Creating Month Menu

You will see that you have a drop-down option for selecting the year in your Excel sheet.

  • Click on the drop-down option.
  • Select your year. Here, I selected 2022.

Creating Month Menu

We will define the first and last date of the month.

  • Select the cell where you want your first day of the month. Here, I selected cell C7.

  • In cell C7, enter the following formula:
=DATEVALUE("1"&C4&C5)

Here, I selected “1”, C4, and C5 as date_text in the DATEVALUE function. The formula will return on the first day of our selected month and year.

  • Press ENTER, and you will get your Date.

Creating Month Menu

  • Select the cell where you want your last day of the month. Here, I selected cell E7.
  • In cell E7, enter the following formula:
=EOMONTH(C7,0)

Here, in the EOMONTH function, I selected C7 as start_date and 0 as months. The function will return the last day of the current month.

  • Press ENTER.

Read More: How to Create Monthly Attendance Sheet in Excel with Formula


Step 2: Inserting Dates into the Monthly Staff Attendance Sheet in Excel

  • Select the cell where you want the first date. Here, I selected cell F9.
  • In cell F9, enter the following formula:
=C7

Inserting Dates into Monthly Staff Attendance Sheet in Excel

Here, I selected the value in cell C7 as the value in cell F9, which is the first day of the month.

  • Press ENTER, and you will get your date.

We will change to format of the date.

  • Right-click on the date.
  • Select Format Cells.

Here, the Format Cells dialog box will appear.

  • Select Custom.
  • Enter the custom format Type you want.
  • Select OK.

Inserting Dates into Monthly Staff Attendance Sheet in Excel

Now, you can see the desired format.

  • Select the next cell.
  • Enter the following formula:
=IF(F9<$E$7,F9+1,"")

Inserting Dates into Monthly Staff Attendance Sheet in Excel

Here, in the IF function, I selected F9<$E$7 as logical_test, F9+1 as value_if_true, and blank as value_if_false. This formula will return the next date until it reaches the last date of the month.

  • Press ENTER to get the result.

  • Drag the Fill Handle to copy the formula.

Inserting Dates into Monthly Staff Attendance Sheet in Excel

You can see that I have copied the formula.

I copied it unitl I reached the last date of my month.

Inserting Dates into Monthly Staff Attendance Sheet in Excel

Read More: How to Create Employee Attendance Sheet with Time in Excel


Step 3: Inserting Weekdays into the Monthly Staff Attendance Sheet in Excel

  • Select the cell where you want your first weekday of the month. Here, I selected cell F10.
  • In cell F10, enter the following formula.
=TEXT(F9,"ddd")

Inserting Weekdays into Monthly Staff Attendance Sheet in Excel

Here, in the TEXT function, I selected F9 as value and “ddd” as format_text. The formula will return the value in cell F9 in the given format.

  • Press ENTER, and you will get your weekday.

  • Drag the Fill Handle to copy the formula.

Inserting Weekdays into Monthly Staff Attendance Sheet in Excel

Here, you can see that I have copied the formula.

I copied it till I reached the last date of the month.

Inserting Weekdays into Monthly Staff Attendance Sheet in Excel


Step 4: Highlighting Weekly Holidays in the Monthly Staff Attendance Sheet in Excel

  • Select the first cell from where you want to highlight the holidays.
  • Go to the Home tab.
  • Select Conditional Formatting.

Highlighting Weekly Holidays in Monthly Staff Attendance Sheet in Excel

A drop-down menu will appear.

  • Select New Rule.

A dialog box named New Formatting Rule will appear.

Highlighting Weekly Holidays in Monthly Staff Attendance Sheet in Excel

  • Select Use a formula to determine which cells to format.
  • Enter the formula for Format values where this formula is true. Here, I wrote the following formula:
=F$10=”Sun”

The formula will check Row 10 for the value “Sun” and format cells if the value is true.

  • Select Format.

The Format Cells dialog box will appear.

Highlighting Weekly Holidays in Monthly Staff Attendance Sheet in Excel

  • Go to the Fill tab.
  • Select the color you want.
  • Select OK.

Here, the format will be added to the New Formatting Rule dialog box.

  • Select OK.

Highlighting Weekly Holidays in Monthly Staff Attendance Sheet in Excel

At this point, you will not see any change yet.

  • Select the cell you selected before.
  • Select Format Painter.

  • Drag the Fill handle and apply the formatting to your entire dataset.

Highlighting Weekly Holidays in Monthly Staff Attendance Sheet in Excel

Here, you can see that I have applied the formatting to my entire dataset.

Highlighting Weekly Holidays in Monthly Staff Attendance Sheet in Excel

You can see that I have highlighted the weekly holidays in my monthly staff attendance sheet.

I have highlighted all Sundays throughout the month.

Read More: Attendance and Overtime Calculation Sheet in Excel


Step 5: Creating Input Attendance in Monthly Staff Attendance Sheet in Excel

  • Select the cell where you want your input attendance.
  • Go to the Data tab.
  • Select Data Tools.

You will see a drop-down menu.

  • Select Data Validation from the drop-down menu.

Creating Input Attendance in Monthly Staff Attendance Sheet in Excel

A dialog box named Data Validation will appear.

  • Select the drop-down option for Allow.

  • Select List from the drop-down menu.

Creating Input Attendance in Monthly Staff Attendance Sheet in Excel

  • Enter P and A as the Source. P stands for present, and A stands for absent.
  • Select OK.

Now, you will see that you have a drop-down option for input attendance in your Excel sheet.

Creating Input Attendance in Monthly Staff Attendance Sheet in Excel

  • Drag the Fill Handle to copy this Data Validation throughout the attendance sheet.

  • Select the cell where you want your input attendance. Here, I selected cell F11.
  • Click on the drop-down option.
  • Select P if the person is present and A if the person is absent.

You can see I have input attendance for the employee named Adam for July 1, 2022.

Creating Input Attendance in Monthly Staff Attendance Sheet in Excel

Here, I filled out the whole attendance sheet.

I filled it out until I reached the last date of my month.

Creating Input Attendance in Monthly Staff Attendance Sheet in Excel

Read More: Attendance Sheet in Excel with Formula for Half Day


Step 6: Counting Total Working Days

  • Select the cell where you want to count your total Present days. Here, I selected cell AK11.
  • In cell AK11, enter the following formula:
=COUNTIF(F11:AJ11,"P")

Counting Total Working Days

Here, in the COUNTIF function, I selected F11:AJ11 as the range and “P” as the criteria. The formula will count if the cells in the selected range contain “P”. It will return the total Present days.

  • Press ENTER to get the result.

  • Drag the Fill Handle to copy the formula.

Counting Total Working Days

In the following picture, you can see that I have copied my formula for all the cells.

We will count the total Absent days.

  • Select the cell where you want to count your total Absent days. Here, I selected cell AL11.
  • In cell AL11, enter the following formula:
=COUNTIF(F11:AJ11,"A")

Here, in the COUNTIF function, I selected F11:AJ11 as the range and “A” as the criteria. The formula will count if the cells in the selected range contain “A”. It will return the total Absent days.

  • Press ENTER to get the result.

Counting Total Working Days

  • Drag the Fill Handle to copy the formula.

In the following picture, you can see that I have copied my formula for all the cells.

Counting Total Working Days


Step 7: Saving the Excel File as a Template

  • Go to the File tab.

Saving Excel File as Template

  • Select Save As.
  • Select Browse.

A dialog box named Save As will appear.

  • Select the drop-down option to select Save as type.

Saving Excel File as Template

  • Select Excel Template from the drop-down menu.

  • Select Save.

Now, your file will be saved as a template, and you can access it while creating a new Excel file.


Practice Section

Here is a practice sheet for creating a monthly staff attendance sheet.


Download the Practice Workbook


Related Articles


<< Go Back to Employee Attendance Sheet Excel | Excel HR Templates | Excel Templates

Get FREE Advanced Excel Exercises with Solutions!
Mashhura Jahan
Mashhura Jahan

Mashhura Jahan, BSc in Industrial and Production Engineering from Bangladesh University of Engineering and Technology, invested 1.5 years at ExcelDemy. In roles like Excel & VBA Content Developer, Excel Charts, and Dashboard course trainer, she wrote 90+ articles. She was previously part of the forum support team and a junior software analyst on the Excel Add-in project. With interests spanning Excel, VBA, Power Query, Python, Data Science, and Software Development, Mashhura brings a diverse skill set to her... Read Full Bio

6 Comments
  1. unable to find datevalue for FEBURARY rest is working please do the needful.

    • Hi Sikander,
      Hope you are doing well.
      To get the DateValue for February, click on the drop-down option of Month and then select February.

      monthly staff attendance

      Then you will get the DateValue and the rest will be updated automatically.

      2. Monthly Stuff Attendance

      Note: If you want to type the month name in that cell you have to be careful with the spelling of the month name.

      Thanks

      Regards
      Shamima Sultana

  2. Hello, very well explained, but I have two questions:
    1. How can I change the month and day from English to Romanian?
    2. If an employee works on Saturday and/or Sunday, how can I collect those weekend hours separately, in a cell?
    Thank You!

    • Dear Tudor,

      Hope you are doing well. Answer of your questions are given below with explanation.

      1. How can I change the month and day from English to Romanian?

      Select the cell with month and date, cell C7 in our case.
      Right-click with the mouse and select Format Cells.

      monthly staff attendance

      In the Format Cells window, select Romanian (Moldova) under the Locale menu.
      Then, select any type under the Type menu and click the OK button.

      The month and date are changed into Romanian from English. Do the same process for cell E7.

      2. If an employee works on Saturday and/or Sunday, how can I collect those weekend hours separately, in a cell?

      Let’s say the first employee works on Saturday and Sunday for 5 and 6 hours respectively. He works on 4 weekends which you can see in the picture. To sum these values we’ll use the SUMIFS function.
      Apply the formula in any cell where you want the weekend hours, let’s say cell AM11-
      =SUMIFS($F$11:$AJ$11,$F$11:$AJ$11,"<>P",$F$11:$AJ$11,"<>A")

      After pressing Enter you’ll get the total weekend hours. You can use the Fill Handle tool to apply this formula to other employees.

  3. Thank you for this.
    I want to request directions on adding a cumulative totals table of days present/absent month on month for the whole year.

    Thank you.

    • Hello Ken Mambo,

      You are most welcome. To add a cumulative totals table for days present or absent using the article’s attendance sheet, you can follow these steps:

      Add a table with rows representing months and columns for each employee.
      In the cumulative table, for each month use:
      =COUNTIF(Range_of_Attendance, “P”) // For Present Days
      =COUNTIF(Range_of_Attendance, “A”) // For Absent Days

      For cumulative data, use:
      =SUM(January_Cell:Current_Month_Cell)

      This approach will give you cumulative totals month by month.

      Regards
      ExcelDemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo