Overtime is one of the easiest costs to lose control of. A few extra hours here and there look harmless on a timesheet, but across a department and a whole year they can add up to the cost of another employee. Managers usually only find out when the payroll total jumps.
This guide shows you how to calculate overtime cost in Excel from a simple overtime register, by employee and by department, and how to see overtime as a share of basic pay.
The overtime cost formula
Hourly rate = Basic monthly pay ÷ Standard hours per month
Step 1: Set up the Staff sheet and the settings
On a sheet called Staff, list each employee with their department and basic monthly pay. Add an hourly rate column. With standard hours in a settings cell on the same sheet (for example K3):
=C2/$K$3
On the Overtime sheet, put the two multipliers in settings cells too: 1.5 in K1 for normal overtime and 2 in K2 for Sunday and public holiday overtime. If a rate ever changes, you change one cell.
Step 2: Record overtime in a register
On a sheet called Overtime, record one row for each approved overtime claim: employee, department, hours and type. Then add two calculated columns.
Hourly rate in E2, looked up from the Staff sheet:
=INDEX(Staff!D:D,MATCH(A2,Staff!A:A,0))
Cost in F2, using the right multiplier for the type of overtime:
=C2*E2*IF(D2="Sunday/Holiday",$K$2,$K$1)
Use a drop-down list for the Type column (Data tab, then Data Validation, then List) so it can only contain the two exact words the formula expects.
Step 3: Summarise by department
On a Summary sheet, list your departments in column A and use SUMIFS to total hours and cost:
B2: =SUMIFS(Overtime!C:C,Overtime!B:B,A2)
C2: =SUMIFS(Overtime!F:F,Overtime!B:B,A2)
D2: =SUMIFS(Staff!C:C,Staff!B:B,A2)
E2: =C2/D2
Column D adds up basic pay for the department, and column E shows overtime as a percentage of it. That is the figure that tells you whether overtime is under control.
Reading the results
Total overtime for the month is 393.00, or 10.1% of basic pay. But Operations, at 16.6%, accounts for 292.00 of it. Within Operations, Farai Ncube’s 17 hours cost 168.00. When one department or person dominates overtime, the usual questions are: is the work planned properly, is the team understaffed, and is every hour approved in advance?
To rank employees by overtime cost, use a PivotTable (Insert, then PivotTable) with Employee in Rows and Cost in Values, sorted largest to smallest.
Common mistakes to avoid
- Hours entered as time. If overtime is typed as 7:30, Excel stores it as a fraction of a day. Multiply by 24 to turn it into 7.5 hours, or record decimal hours from the start.
- Typing the multiplier into each formula. When the rate changes you will miss some. Keep rates in settings cells and lock them with $ signs.
- Using the wrong pay figure. Check whether your policy bases overtime on basic pay or on basic plus certain allowances, and be consistent.
- Free-text overtime types. “Sunday”, “sun” and “Public hol” will all be treated as normal overtime. Use a drop-down list.
- Looking only at cost. Hours matter too. Long overtime hours are a health and safety risk as well as a cost.
Skip the setup: use our ready-made report
The Overtime Cost Report calculates cost by employee, department and month, shows your top ten overtime earners and overtime as a percentage of basic pay. Set your rates, paste your register, done.
Get the Overtime Cost Report Get the full HR & Payroll Analysis Toolkit ($35)
Next steps
Overtime cost feeds straight into your monthly payroll review. See How to compare two months of payroll in Excel, or put all your HR figures on one page with an HR dashboard in Excel.
