Excel For HR
Excel For HR
Excel For HR
PROFESSIONALS
7
essential
functions
that will cut
your work
from hours
to minutes
D E F E A T E X C E L . C O M
7 Essential Functions That Will Cut Your Work From
Hours to Minutes
defeatexcel.com /
Recruitment, training & development, compensation & benefits, payroll, employee relations, staff retention, ...
HR professionals are often seemed to have the easiest jobs in the company.
Or is it?
In reality, what goes behind the scenes are the endless amount of human resource information system (H.R.I.S.)
inputs, preparing reports for the management, and spending face-time with employees just to get the day-to-day
work done.
Here's some Excel magic to help you cut your day-to-day HR work from days and hours to just MINUTES.
1/10
2/10
HR meets Excel
In her book, Vault Guide to Human Resources Careers, Susan Strayer describes HR as "the glue that holds
people and an organization together".
To cope with the heavy workload, some companies outsource part or all of their HR functions, while some uses
H.R.I.S software.
Ready?
#1: TODAY
Many times, HR professionals are required to calculate dates with reference to today's date.
Age of employee, length of service, etc. are all referenced to today's date.
The function TODAY recalculates itself so that you will always have today's date in formulas.
If today is 5th May 2011, TODAY gives you 5th May 2011. If you open the Excel worksheet the next day, TODAY
then gives you 6th May 2011.
3/10
TODAY is a volatile function; it recalculates whenever you as a user takes an
action (e.g. change value of a cell, insert/delete a row or column). In a very
very large Excel spreadsheet, this may slow down your worksheet
considerably. If so, consider using VBA to hard-code today's date in
extremely large spreadsheets.
#2: DATEDIF
To find out the difference between 2 dates, let me introduce you to the function DATEDIF. DATEDIF calculates
the number of days, months or years between 2 dates.
You may encounter these two error messages at times. Here are the possible causes:
#NAME? - check if you have included " " around the unit.
#NUM! - check that start_date is earlier than end_date.
4/10
Say if one of your employee is born on the 3rd December 1984. Find his age this year.
We set the date of birth to be 1 Jan of that year, so that everyone born in that year will be 33 years old.
Another example, to find the length of service of an employee who is employed on 15 Mar 2010.
#3: EDATE
EDATE helps you to set future dates based on the number of months.
5/10
Try it for yourself for a 1-month resignation notice period.
#4: NETWORKDAYS.INTL
Often we may need to figure out the number of working days between two dates.
At this time, many HR professionals will be taking out their desktop calendars and counting the days.
How do we also account for public holidays? If you are using Excel 2010 and later versions,
NETWORKDAYS.INTL is here for the rescue!
Step 1: Create a list of public holidays similar to the picture below, with two columns - Day and Date. Highlight
the data and hit Ctrl + T to format as an Excel table.
Step 2: Under {Table Tools} Design | Properties | Table Name , rename the table name as PublicHolidays.
6/10
Step 3: Time to conjure some Excel magic.
The format for weekend is a series of 7-digit number starting from Monday to Sunday, with 1 for not working and
0 for working. So for an employee not working on Saturdays and Sundays, their weekend will look like
"0000011".
Indeed, 22nd, 26th and 27th Dec 2017 are working days.
Since a large majority of employees worldwide are not working on Saturdays and Sundays, Microsoft Excel has
made the default weekend settings to be "0000011" if you omit it. So for the same example above, you can also
use:
7/10
=NETWORKDAYS.INTL( E1, E2, ,
PublicHolidays[Date])
For holidays, it is very easy to maintain using the Excel table. When the new year comes, e.g. 2018, just
continue to add the Day and Date information below the existing table, and the data will be automatically
included in the calculations.
#5: WORKDAY.INTL
With NETWORKDAYS.INTL, we can calculate the number of working days between 2 dates.
WORKDAY.INTL uses a start_date and number of work days to calculate the end_date. Not very useful it seems.
But its power shines in the HR industry where you can use a negative number of work days to go count
backwards from the date supplied to Excel.
Supposed we have an employee whose last day is 26 Dec 2017. He has 7 days of annual leave left and the
management has agreed to offset the 7 days of annual leave from 26 Dec 2017.
Verify it yourself using a desktop calendar. Keep in mind of the Saturdays and Sundays, and 25 Dec 2017 being
a holiday.
#6: COUNTIF
Many times HR will be required to produce monthly reports. And preparing reports can typically take quite a long
time.
8/10
Well, no more.
We will go through 2 functions, COUNTIF and SUMIF that will speed up your reporting from days and hours to
mere minutes!
Step 1: Using the example below, create a HR personnel list, with columns - Name, Department, and Salary.
Highlight the data and hit Ctrl + T to format as an Excel table.
Step 2: Under {Table Tools} Design | Properties | Table Name, rename the table name as HRlist.
=COUNTIF( HRlist[Dept],
E2)
#7: SUMIF
So COUNTIF is to count items based on a criteria, then SUMIF is to sum the items up based on a criteria.
After counting the headcount for each department, we are left with summing up the salary expense of each
department.
How do we do that?
9/10
=SUMIF( HRlist[Dept], E2,
HRlist[Salary])
We are asking Excel to check the Dept column to find the records matching "Finance" in cell E2. If so, sum up
the corresponding salary.
So are you ready to defeat HR workload with your new found Excel powers? Let me know which is your favourite
function in the comments below.
10/10