Home>Blogs>Excel Tips and Tricks>Bill of Materials Template in Excel: Build It Step by Step
Excel Tips and Tricks

Bill of Materials Template in Excel: Build It Step by Step

A bill of materials template in Excel tells you what one product costs to make and whether you have the parts to build the next order. In this tutorial you build both views. The example is Ironwood Furniture Co., a fictional office furniture maker in Grand Rapids, Michigan, with 4 products and 23 purchased parts. The bookcase makes only 30.4% margin against a 40% target, and an order for 120 standing desks is 25 steel frames short.

Bill of materials template in Excel with product cost roll-up and margin alert
The finished cost roll-up: one product is below the target margin.

Watch the Video Tutorial

Video Overview

The video opens with the finished cost roll-up and shortage check. Then you build both step by step: part descriptions and costs inside the bill of materials, material cost per product, margin and status, an alert box, a stacked column chart, and a shortage check that follows one product drop-down and a build quantity.

Production order shortage check in Excel showing one short part
The shortage check: one part short, $3,550 to order.

How the Workbook Is Laid Out

The part master table, tblParts, holds each part once with its unit cost and stock on hand. The bill of materials table, tblBOM, holds product, part number and quantity for ONE finished unit. Shared parts such as the hardware kit appear under every product, but the price lives in one place.

Part master table with unit cost, stock on hand, supplier and lead time
The part master: one row per purchased part.

Step 1: Costs Inside the Bill of Materials

Description, unit cost and extended cost go in the table. Type the first row and Excel fills the column.

=XLOOKUP([@[Part No]],tblParts[Part No],tblParts[Description])

XLOOKUP formula returning the part description in the BOM table
XLOOKUP brings in the description.

=XLOOKUP([@[Part No]],tblParts[Part No],tblParts[Unit Cost])

XLOOKUP formula returning the unit cost in the BOM table
The same lookup brings in the unit cost.

=[@[Qty per Unit]]*[@[Unit Cost]]

Extended cost column in the bill of materials table
Quantity per unit times unit cost.

Step 2: Product Cost Roll-Up

On the roll-up sheet, material cost for each product is a SUMIFS over the table.

=SUMIFS(tblBOM[Extended Cost],tblBOM[Product],B11)

SUMIFS formula for material cost per product
Material cost of the standing desk: $251.85.

Total unit cost adds material, labor and overhead.

=SUM(D11:F11)

Total unit cost column in the cost roll-up
Total unit cost for all four products.

Margin dollars is the list price minus total cost, and margin percent divides that by the list price.

=H11-G11

=I11/H11

Margin dollars and margin percent in Excel
Margin in dollars and percent.

The status compares the margin with the target in D8 (lock it with F4), and COUNTIFS counts the BOM lines.

=IF(J11>=$D$8,"ON TARGET","LOW MARGIN")

=COUNTIFS(tblBOM[Product],B11)

Status column showing on target and low margin
The bookcase is flagged LOW MARGIN.

The alert box counts the low margin products.

=IF(COUNTIF(K11:K14,"LOW MARGIN")=0,"ALL PRODUCTS ON TARGET MARGIN",COUNTIF(K11:K14,"LOW MARGIN")&" PRODUCT(S) BELOW "&TEXT(D8,"0%")&" MARGIN")

Alert box showing one product below 40 percent margin
One live message for the whole sheet.

Step 3: Cost Chart

Select the product names and the three cost columns, then choose Insert, Column Chart, Stacked Column. Title it Unit Cost Build-Up and place it under the table.

Stacked column chart of material, labor and overhead cost
Material, labor and overhead stacked per product.

Now test it: raise the bookcase list price from $189 to $229. The margin moves to $97.45, or 42.6%, and the box turns green.

All products on target margin after a price change
A price change updates the status and the alert.

Step 4: Parts Shortage Check

Choose a product and a build quantity. First pull the product name, then list its parts. Type each formula only in row 16 or the input row and let it spill.

=XLOOKUP(C8,'1. Cost Roll-Up'!B11:B14,'1. Cost Roll-Up'!C11:C14)

=FILTER(tblBOM[Part No],tblBOM[Product]=C8)

FILTER formula listing the parts of one product
FILTER returns only the parts of the chosen product.

=XLOOKUP(B16#,tblParts[Part No],tblParts[Description])

=FILTER(tblBOM[Qty per Unit],tblBOM[Product]=C8)

=D16#*H8

Required quantity calculated from quantity per unit and build quantity
Required quantity for 120 desks.

=XLOOKUP(B16#,tblParts[Part No],tblParts[On Hand])

=IF(E16#>F16#,E16#-F16#,0)

Short quantity formula comparing required and on hand stock
Short quantity, row by row.

=IF(G16#>0,"SHORT","OK")

=G16#*XLOOKUP(B16#,tblParts[Part No],tblParts[Unit Cost])

Status and reorder cost for the short part
The steel desk frame is SHORT with a $3,550 reorder cost.

Step 5: Summary Cards and Status Box

=ROWS(B16#)

=COUNTIF(H16#,"SHORT")

=SUM(I16#)

=MIN(INT(F16#/D16#))

These show the parts in the BOM, the parts short, the reorder cost and the maximum units you can build now (95).

Shortage summary cards with reorder cost and maximum buildable units
Four cards answer the production question.

=IF(D12=0,"READY TO BUILD "&H8&" UNITS",D12&" PART(S) SHORT - ORDER "&TEXT(F12,"$#,##0"))

When a purchase order for 40 frames arrives, change on hand from 95 to 135 and the box shows READY TO BUILD 120 UNITS.

Ready to build status after receiving parts
Green: ready to build.

Switch to the office chair with a build quantity of 200 and five parts are short. Stock on hand is shared, so check orders one by one and reserve the parts for each.

Shortage check for the ergonomic office chair order
Five parts short for 200 chairs.

Parts List or Bill of Materials Template?

QuestionPlain parts listThis template
What does one unit cost?Add it by handSUMIFS roll-up with labor and overhead
Which product misses margin?Not visibleStatus column and alert box
Can we build this order?Check part by partFILTER shortage check
A part price changesEdit many rowsChange it once in the part master

Want the Ready-to-Use Version?

Get the Bill of Materials Template in Excel and Google Sheets from Next Gen Templates, with all features built. To learn the formulas in depth, join Excel + AI Mastery: 100 Essential Formulas and Real-World Projects. Use code BF40 for 40% off, valid till 1 December 2026, 23:59 IST. Microsoft’s FILTER function documentation explains spill results.

Related Tutorials

Frequently Asked Questions

What is a bill of materials?

A bill of materials lists every part needed to make one unit of a product, with the quantity of each part. Adding the unit cost of each part turns it into a product cost.

How do I calculate product cost from a bill of materials in Excel?

Multiply quantity per unit by unit cost on every line, total the lines for each product with SUMIFS, then add labor and overhead.

How do I check whether I have enough parts for a production order?

List the parts of the product with FILTER, multiply the quantity per unit by the build quantity, and compare the result with the stock on hand.

Why use IF instead of MAX for the short quantity?

MAX returns one number for the whole range. IF compares row by row, so each part gets its own short quantity.

What does the # sign mean after B16?

It refers to the whole spilled range that starts in B16, so the formulas grow or shrink when you choose another product.

Which Excel version do I need?

XLOOKUP, FILTER and spill ranges need Microsoft 365 or Excel 2021 or later.

By PK, An Excel Expert. Ironwood Furniture Co. and all names and numbers are fictional example data for learning.

Conclusion

XLOOKUP brings prices into the parts list, SUMIFS rolls them up to a product cost, and FILTER with spill ranges checks every production order before it starts.

PK
Meet PK, the founder of PK-AnExcelExpert.com! With over 15 years of experience in Data Visualization, Excel Automation, and dashboard creation. PK is a Microsoft Certified Professional who has a passion for all things in Excel. PK loves to explore new and innovative ways to use Excel and is always eager to share his knowledge with others. With an eye for detail and a commitment to excellence, PK has become a go-to expert in the world of Excel. Whether you're looking to create stunning visualizations or streamline your workflow with automation, PK has the skills and expertise to help you succeed. Join the many satisfied clients who have benefited from PK's services and see how he can take your Excel skills to the next level!
https://www.pk-anexcelexpert.com