Change how many of each product you sell and watch total profit react. SUMPRODUCT multiplies each product’s margin by its volume and totals the result — a live what-if for your sales mix.
The example
Total contribution from a product mix.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Margin | Units |
| 2 | Widget | $15 | 400 |
| 3 | Gadget | $22 | 250 |
| 4 | Total contribution | $11,500 |
The formula
Total contribution from the mix:
How it works
SUMPRODUCT makes the mix a single what-if:
- List each product’s margin per unit and the volume you plan to sell.
SUMPRODUCT(margins, volumes)totals margin×volume across all products in one cell.- Change any volume — or add a row — and total contribution updates live: a built-in what-if.
- Subtract fixed costs for total profit:
=SUMPRODUCT(margins, volumes) − fixed.
Constrained mix? If a resource limits you (machine hours, budget), add a usage column and a check: =SUMPRODUCT(usagePerUnit, volumes) against the limit. For a true optimum under constraints, Excel’s Solver maximizes contribution subject to those limits.
Try it: interactive demo
Lines “margin,units”; total contribution updates.
Variations
Total profit
Less fixed costs:
Resource check
Against a limit:
Revenue mix
Prices instead of margins:
Pitfalls & errors
Equal-length ranges. Margins and volumes must span the same rows or SUMPRODUCT errors.
Margin, not price. For profit impact use contribution margin per unit, not the sticker price.
Optimization needs Solver. SUMPRODUCT evaluates a mix; finding the best mix under constraints is a Solver job.
Practice workbook
Frequently asked questions
How do I model a product mix in Excel?
How do I get total profit from the mix?
How do I find the best mix under constraints?
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