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.
| Row | A | B | C | D | E | F | G |
|---|---|---|---|---|---|---|---|
| 1 | Name | Hours | Rate | Gross | OT after | 40 | |
| 2 | Ada | 40 | 20 | Formula goes in D2. formula | |||
| 3 | Ben | 45 | 20 | Formula goes in D3. formula | |||
| 4 | Cara | 38 | 25 | Formula goes in D4. formula | |||
| 5 | Drew | 42 | 18 | Formula 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.