How many finished units can you build from what’s on hand? Each component limits production to stock ÷ per-unit need; the smallest of those limits — the constraint — is the answer.
The example
Limited by the scarcest part.
| A | B | |
|---|---|---|
| 1 | Part | Builds |
| 2 | Screws 400 / 8 | 50 |
| 3 | Panels 60 / 1 | 60 → min 50 |
The formula
The formula:
How it works
How it works:
- For each component,
stock / qty_per_unitis how many units that part alone supports. ROUNDDOWN(…, 0)— you can’t build a partial unit.- The MIN across all components is the constraint — the most you can build.
- The part hitting that minimum is the one to reorder first.
The constraint names your shortage. Whichever component produces the smallest stock/per-unit is the bottleneck part — building more requires restocking it first, not the parts you have plenty of. An INDEX/MATCH on the MIN identifies the limiting part by name, turning the build calc into a procurement priority.
Try it: interactive demo
Stock and per-unit need for two parts.
Variations
Per-component builds
One part:
Limiting part
Name it:
Shortfall to a target
How much to order:
Pitfalls & errors
Round down. Partial units don’t count — ROUNDDOWN each component.
MIN, not SUM. The scarcest part limits the build, not the total stock.
Match per-unit needs. Use the correct quantity-per-unit from the BOM for each part.
Practice workbook
Frequently asked questions
How do I find how many units I can build from inventory in Excel?
Which part should I reorder first?
Why MIN and not the total stock?
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