How to Create Employee Monthly Leave Record Format in Excel (With Easy Steps)

Get FREE Advanced Excel Exercises with Solutions!

Excel is an excellent tool for tracking different types of parameters. Leave tracker for employees is a very important part of tracking and measuring their performance in an organization. In this tutorial, we are going to see how you can create a dynamic employee monthly leave record format in Excel that auto-updates with entries.


How to Create Employee Monthly Leave Record Format in Excel (With Easy Steps)

The goal here is not just to make a chart that contains the records of leave, but to make a dynamic record and report of the entries. We will aim for a calendar-wish dynamic record that makes it easy to summarize all the leaves taken and visualize the whole situation. And we will finally add a graph at the end so that it looks more presentable and easy to get the whole story. All the steps are divided into different sections to track the sub-steps of them and their purpose easily.


Step 1: Make List for All Types of Leaves

First, create a spreadsheet that contains all of the types of leaves the organization grants. Let’s assume, for our demo leave record format, there are a total of six types of leaves. We include this in this spreadsheet.

employee monthly leave record format in excel

Let’s also add a list of all the months. This, too, will occur many times after this and make the later work easier. To enter months and years, let’s input them like this first.

Then select cell E4 and press Ctrl+1 to format the cell. In the format cells box, go to the Numbers tab and select the Custom category on the left of the box. On the right side of it, type in mmmm-yyyy in the Type field.

After that, click on OK. As a result, you will find that the date format will look something like this.

Now fill up the column for the rest of the months.

Next, make a list of all the employees and their IDs that will help us track their leaves.

Read More: How to Create Leave Tracker in Excel


Step 2: Create Dataset to Record All Leaves Taken

We need a chart for all the leaves taken by employees if we want to track the monthly leave record format in Excel. To do that, let’s make a chart that can track all the employees and the leaves they have taken. We are gonna need a combination of IFERROR and VLOOKUP functions here. Follow these steps.

  • We have selected the following headings for the dataset.

employee monthly leave record format in excel

  • Here, we want to make a drop-down style input for the employees. To do that, select the range from cell C5 to where you want to make the list and go to the Data tab.
  • Then select Data Validation from the Data Tools group.

employee monthly leave record format in excel

  • Now in the Data Validation box, select the Settings tab, and in the Validation criteria section, select List in the Allow field, and in the Source field, manually select the IDs from the Lists spreadsheet or write down the following manually.

=Lists!$G$7:$G$16

employee monthly leave record format in excel

  • Then click on OK.
  • Now select cell D5 and write down the following formula.

=IFERROR(VLOOKUP(C5,Lists!$G$5:$H$14,2,0),"")

employee monthly leave record format in excel

🔍 Breakdown of the Formula

IFERROR(VLOOKUP(C5,’Lists’!$B$9:$C$18,2,0),””)

👉 VLOOKUP(C5,’Lists!$B$9:$C$18,2,0) looks for value in cell C5 in the range B9:C18 in the sheet called “Leave Calendar”. Argument “2” indicates the function will return a value from the second column, which is the short-code for leaves. And the final argument “0” indicates it has to be an exact match of cell C5.

👉 The previous function is supposed to look for an exact match and return the value of the second column in the row it found the match. But there are cases where no match occurs. In case of that, we add the IFERROR portion of the formula. So that our charts’ cells won’t fill up with error warnings. The IFERROR(VLOOKUP(C5,’Lists!$B$9:$C$18,2,0),””) formula returns an empty string if the value doesn’t match the VLOOKUP function.

  • After that, press Enter and replicate the formula for the rest of the cells in the column by clicking and dragging the fill handle icon till the end.
  • Now we want to add a list as inputs in the Leave Type column too. For that, select cell F5 at the end of the list and add data validations by selecting Data Validation from the Data Tools group in the Data group.

  • Similarly, select List in Allow field, and in the Source field, write down the following.

=Lists!$C$5:$C$10

  • After that, click on OK.
  • For Vacation IDs, select cell B5 and write down the following formula.

=C5&E5

employee monthly leave record format in excel

  • Finally, press Enter. The format to track employee monthly leave records is now complete.

Now, fill out the formula for your leaves. You can also add these later on.

employee monthly leave record format in excel

Let’s name the spreadsheet “Leave Table” before moving on to the next part of the process.

Read More: How to Create Employee Leave Record Format in Excel


Step 3: Create Dynamic Monthly Leave Record Format

Now on to the main thing, we need a calendar-like format that can record the employee monthly leave tracker in Excel. You need to enable the Developer tab first. Then follow these steps that help to break down this long process. We also need the usage of the INDEX, IFEOMONTH, TEXT, IFERROR, VLOOKUP, COUNTIF, and SUM functions here. Follow these steps to see how to finally make an employee monthly leave record format from all of the above charts.

  • First, go to the Developer tab and click on Insert. Then select Combo Box from Form Controls.

employee monthly leave record format in excel

  • Select a place by clicking and dragging on the spreadsheet. Then right-click on it and select Format Control from the context menu.

  • Now select the Control tab in the Format Control box.
  • In the input range field, write down the following formula.

Lists!$E$5:$E$16

  • Then write down the following in the Cell link field.

$J$3

  • And in the Drop down lines field write down 12 as we want all of the months to show in the list.

  • After that, click on OK.
  • Now select the month in it and it will look something like this.

  • After that, select cell Y4 and write down the following formula.

=INDEX(Lists!E5:E16,'Leave Calendar'!S4)

employee monthly leave record format in excel

  • After pressing Enter it will now look something like the figure below. These two cells will be helpful for future cell references.

  • Now put in the Employee IDs and Employee Names in this spreadsheet.

employee monthly leave record format in excel

  • After that, select cell D7 and write the following formula in it.
=Y4

  • Now select cell E7 and write down the following formula in it.

=IF(D7="","",IF(EOMONTH($Y$4,0)<D7+1,"",D7+1))

employee monthly leave record format in excel

🔍 Breakdown of the Formula

IF(D7=””,””,IF(EOMONTH($Y$4,0)<D7+1,””,D7+1))

👉 (EOMONTH($Y$4,0) returns the last date of the month value in cell Y4.

👉 IF(EOMONTH($Y$4,0)<D7+1,””,D7+1) checks if the previously mentioned function is equal or less of that of cell D7(the left of the cell itself). If the condition is true, this function returns a string. Else, it returns the following number.

👉 Finally, IF(D7=””,””,IF(EOMONTH($S$4,0)<D7+1,””,D7+1)) checks cell D7 contains empty string or not. If it does, it returns an empty string. Otherwise it moves on to the function previously discussed. This whole function ensures that our number of days ends at the exact number of month we have selected in the combo box.

  • Then select the cell again and click and drag the fill handle to cell AH7.
  • After that, select the range D7:AH7 and press Ctrl+1 to format them.
  • Next, select the Number tab in the Format Cells box, and in the Type field of the Custom section, type in dd.

  • After that, click on OK. The spreadsheet will look like this at this point.

  • Then select cell D8 and write down the following formula.

=TEXT(D7,"ddd")

employee monthly leave record format in excel

  • Now click and drag the fill handle icon to cell AH8 to make it look like this.

employee monthly leave record format in excel

  • At this instant, let’s hide the month reference and starting date.
  • After that, select the range D8:AH8 and press Ctrl+1 to format.
  • This time, in the Format Cells box, go to the Alignment tab and select 90 degrees as orientation.

  • Now, make the fonts bold to look good, and finally, it will look something like this.

employee monthly leave record format in excel

  • After that, select the range D6:AH6 and select Merge & Center from the Alignment group in the Home tab.

  • Now write the following in the merged cell and format it as an mmmm in the custom box.
=K3

  • After that click on OK and the spreadsheet will now look like this.

  • Now let’s fill it with color to make it more appealing.

employee monthly leave record format in excel

  • Next, select cell D9 and write down the following formula.

=IFERROR(VLOOKUP($B9&D$7,'Leave Table'!$B:$F,5,0),"")

employee monthly leave record format in excel

🔍 Breakdown of the Formula

IFERROR(VLOOKUP($B9&D$7,’Leave Table’!$B:$F,5,0),””)

👉 VLOOKUP($B9&D$7,’Leave Table’!$B:$F,5,0)looks for value in range B9:D7 in columns B through F in the sheet called “Leave Table”. Argument “5” indicates the function will return a value from the fifth column. And the final argument “0” indicates it has to be an exact match.

👉 The previous function is supposed to look for an exact match and return the value of the fifth column in the row it found the match. But there are cases where no match occurs. In case of that, we add the IFERROR portion of the formula. So that our charts’ cells won’t fill up with error warnings. The IFERROR(VLOOKUP($B9&D$7,’Leave Table’!$B:$F,5,0),””) formula returns an empty string if the value doesn’t match the VLOOKUP function.

  • After pressing Enter you will have the cell automatically filled up from the data of the previous spreadsheet.

  • Now fill the formula for the whole chart by clicking and dragging the fill handle icon to the end first and then to the right.

employee monthly leave record format in excel

  • Now fill in these cells beside the chart as shown in the figure below.

  • After that, select cell AI9 and write down the following formula.

=COUNTIF($D9:$AH9,AI$8)

employee monthly leave record format in excel

  • Now, press Enter. Next, replicate the formula till the cell AN18 by first clicking and dragging the fill handle icon down and then to the right and you will have the chart to look something like this.

employee monthly leave record format in excel

  • Let’s grey out the values with 0 to make the number of leaves stand out.

employee monthly leave record format in excel

  • Now, let’s make a column for total leaves.

  • After that, select cell AO9 and write down the following formula in it.

=SUM(AI9:AN9)

employee monthly leave record format in excel

  • Once you press Enter, you will have the total leaves taken by the first employee.

  • Next, select the cell again and click and drag the fill handle icon to the end of the column to replicate the formula for them and you will finally have the employee monthly leave record format ready in Excel.

employee monthly leave record format in excel

Our final employee leaves record format will look something like this.

employee monthly leave record format in excel

Let’s name the spreadsheet “Leave Calendar” as it represents a monthly calendar. You can also change the month from the combo box we have added and data entered in the “Leave Table” will automatically update the data to the appropriate month.

Read More: How to Track Employee Vacation Time in Excel


Step 4: Verify Employee Leave Record with Data

At this instant, let’s test if our record format is indeed dynamic and works for new data or not.

To begin with, let us first enter data in the spreadsheet we have created in step 2 called “Leave Table”.

We can see from the list above that he had already taken two sick leaves prior to this. And total leaves he had taken on the previous dataset was 2. Now go back to the employee monthly leave record format we have created in the same Excel workbook in step 3.

Keep in mind that we only changed data in the “Leave Table” sheet and it is automatically updated in the “Leave Calendar” sheet too.

Read More: How to Create Maternity Leave Calculator in Excel


Step 5: Generate Final Report

For better visualization of the whole story and to make our data more presentable, we need to plot charts from the organized data. Follow these steps to plot one from this employee’s monthly leave record format in Excel.

  • First, select three ranges- B6:C18, and AI6:AN18 in the “Leave Calendar” by holding Ctrl on your keyboard and clicking and dragging with your mouse.
  • Then go to the Insert tab on your ribbon and select Recommended Charts from the Charts

employee monthly leave record format in excel

  • As a result, the Insert Chart box will pop up. Now select the All Charts tab in it. Then on the right side of the box, select Column as this is more suitable for the visualization of this type of data. And then select the chart you prefer from the right side of the box.

  • After clicking on OK, you will have a graph appear on top of the spreadsheet.

  • Finally, let’s make some modifications to make it more pleasing and we will have our final product.

employee monthly leave record format in excel

As we can see from the graph the fourth employee has taken 3 days of sick leave and the fifth employee has taken a day of casual leave and two days of maternity leave. Whereas the ninth employee didn’t take any leave at all. The rest of them have taken at least one leave of absence.

This chart created is also dynamic. Any data entered in the second spreadsheet also will update the graph automatically.


Download Free Template

You can download the workbook used for the demonstration of the step-by-step guide from the link below. You can also use this as a template for your customized dataset.


Conclusion

That is how you can make a dynamic employee leave record format in Excel. Hope you will be able to reliably make an employee monthly leave record format of your own in Excel. I hope you found this guide helpful and informative. If you have any questions or suggestions, let us know below.

What is ExcelDemy?

ExcelDemy Learn Excel & Excel Solutions Center provides free Excel tutorials, free support , online Excel training and Excel consultancy services for Excel professionals and businesses. Feel free to contact us with your Excel problems.
Abrar-ur-Rahman Niloy
Abrar-ur-Rahman Niloy

Hi! my name is Abrar-ur-Rahman Niloy. I have completed B.Sc. in Naval Architecture and Marine Engineering. I have found my calling, if you like, in Data Science and Machine Learning and in pursuing so, I have realized the importance of Data Analysis. And Excel is one excel-lent tool do so. I am always trying to learn everyday, and trying to share here what I am learning.

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo