FxFormula Drills

Premium exercise · Excel scenario practice

Payroll practice: gross pay with overtime

Practice a payroll formula that pays straight time through 40 hours and time-and-a-half after that, rounded to cents.

G1 is the overtime threshold, 40 hours. Hours up to that threshold earn the hourly rate. Hours above it earn 1.5 times the rate.

In column D, calculate gross pay for each person. Lock the threshold with $. Use MIN and MAX so a short week does not produce negative overtime. Round to cents.

Dataset

Starter sheet. Cells marked formula are where the formula goes.

Starter sheet for this exercise
RowABCDEFG
1NameHoursRateGrossOT after40
2Ada4020Formula goes in D2. formula
3Ben4520Formula goes in D3. formula
4Cara3825Formula goes in D4. formula
5Drew4218Formula goes in D5. formula

Hint

Regular pay is MIN(hours, $G$1) times the rate. Overtime hours are MAX(0, hours − $G$1).

Explanation

This exercise practices MIN, MAX, and ROUND in Excel, including a reference locked with $. The formula goes in D2, D3, D4, D5.

MIN caps straight time at 40 hours and MAX turns a short week into zero overtime hours. 40 hours at 20 is 800, 45 hours at 20 is 950, 38 hours at 25 is 950, and 42 hours at 18 is 774. $G$1 stays locked down the column.

The interactive sheet and a worked solution are part of Formula Drills Premium. The instructions and starter data on this page are the full problem.

Solve this exercise

Practice this formula

Loading the practice grid…