A retainer buys a block of hours each period. Track hours used against the allotment, and flag overage — SUMIF totals logged hours, and a subtraction shows what’s left.
The example
20-hour retainer, 14 logged.
| A | B | |
|---|---|---|
| 1 | Item | Value |
| 2 | Retainer | 20 |
| 3 | Used 14 | → 6 left |
The formula
The formula:
How it works
How it works:
SUMIF(month, this_month, hours)totals the hours logged in the current period.- Subtract from the retainer allotment for hours remaining.
- A negative result is overage — bill it at the overage rate or roll it forward.
- Wrap remaining in
MAX(…, 0)and overage inMAX(used - allotment, 0)to split cleanly.
Split remaining and overage explicitly. =MAX(allotment - used, 0) gives hours left (never negative) and =MAX(used - allotment, 0) gives billable overage. Two clean cells beat one signed number — clients see exactly what’s included and what’s extra, and the overage cell feeds straight into an invoice line.
Try it: interactive demo
Retainer hours and hours used.
Variations
Hours remaining (floored)
Never negative:
Overage hours
Billable extra:
Overage charge
At overage rate:
Pitfalls & errors
Reset each period. Filter hours to the current month with SUMIF, or last period bleeds in.
Define rollover. Decide whether unused hours carry forward before flooring at 0.
Overage rate. Overage often bills higher than the retainer rate — use the right one.
Practice workbook
Frequently asked questions
How do I track retainer hours in Excel?
How do I separate remaining hours from overage?
How do I bill overage?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class