Consultants and agencies bill different tasks at different rates. SUMPRODUCT multiplies each task’s hours by its rate and totals the bill in one cell — and SUMIF rolls hours up by person or role.
The example
Three tasks at different hourly rates.
| A | B | C | |
|---|---|---|---|
| 1 | Task | Hours | Rate |
| 2 | Design | 10 | $120 |
| 3 | Dev | 20 | $150 |
| 4 | QA | 8 | $90 |
| 5 | Total bill | $4,920 |
The formula
Total the billable amount:
How it works
SUMPRODUCT pairs hours with rates automatically:
- It multiplies each row’s hours by its rate, then sums the products — the whole bill in one formula.
- No per-row “amount” column required, though you can add one (
=B2*C2) for the printed invoice. - To total hours (not dollars) for one person, use
SUMIF(names, "Ana", hours). - To total dollars for one person, add a criteria term:
=SUMPRODUCT((names="Ana")*hours*rates).
One blended rate? If everyone bills the same, skip SUMPRODUCT and use =SUM(hours)*rate. SUMPRODUCT earns its keep precisely when rates vary by task, person, or seniority.
Try it: interactive demo
Lines as “hours,rate”.
Variations
Hours for one person
Roll up by name:
Dollars for one person
Criteria inside SUMPRODUCT:
Add a markup
Bill above cost:
Pitfalls & errors
Equal-length ranges. Hours and rates must span the same rows or SUMPRODUCT returns #VALUE!.
Watch time formats. If hours are stored as time (8:30) rather than a number (8.5), multiply by 24 first, or the math is off by a factor of 24.
Blank rate = free work. A missing rate multiplies to 0. Validate that every billed task has a rate.
Practice workbook
Frequently asked questions
How do I bill hours at different rates in Excel?
How do I total billing for one person?
My total is 24× too big — why?
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