How to Deduct Multiple Inventory Parts with a Bill of Materials in Excel
Question details
The user needs to deduct all component parts of an assembly from their inventory by using a Bill of Materials (BOM) mapping table that links groups to required part quantities.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Managing manufacturing or assembly inventory where selling or using one 'group' or assembled product must systematically reduce the stock of multiple underlying component parts.
- Observed behavior
- To calculate the current stock, total component usage must be deduced by multiplying the groups used by the component quantity per group, and then subtracting that total from incoming stock quantities.
Ensure you have an accurate list of incoming stock quantities and a clearly defined mapping table detailing exactly which component part numbers belong to each assembly group.
Calculate Deductions Using SUMIFS and Helper Columns
Use a combination of transaction records, a mapping table, and SUMIFS formulas to accurately calculate component usage and current stock levels.
This method involves establishing two separate tables: one for recording assembly group transactions and another for defining your Bill of Materials (BOM). By multiplying the usage and aggregating the data with SUMIFS, you can maintain accurate stock counts.
Create a table with 'Date', 'Group', and 'Quantity Used' columns to log every time an assembly group is produced or sold.
Set up a mapping table containing 'Group', 'Part Number', and 'Quantity per Group' to define the components needed for one unit of each assembly.
Add a helper column to your mapping table or use a SUMPRODUCT formula to multiply the 'Quantity per Group' by the total 'Quantity Used' of that specific group from your transaction table.
In your main inventory sheet, use the SUMIFS function to calculate the total required deduction for each 'Part Number'. Then, subtract this calculated total from your initial 'Incoming Quantity' to find the current stock.

Summarize Component Usage Using a PivotTable
Combine your transaction and BOM data into a single dataset and use a PivotTable to quickly summarize total part deductions.
Manage Your Bill of Materials Inventory Using WPS Office
WPS Spreadsheet provides powerful data processing tools, advanced formulas like SUMIFS, and dynamic PivotTables to help you build an automated and accurate inventory deduction system.
- 1. Open your inventory workbook: Launch WPS Spreadsheet and open the file containing your transaction logs and BOM mapping tables.
- 2. Apply calculation formulas: Use the built-in SUMIFS or SUMPRODUCT functions within the formula bar to dynamically calculate the deductions for each component part.
- 3. Summarize with PivotTables: Navigate to the 'Insert' tab and select 'PivotTable' to easily group and summarize your component usage data without needing complex code.

Frequently Asked Questions
What if a single component is used in multiple different assembly groups?
Using the SUMIFS function or a PivotTable will naturally handle this. These methods aggregate the total usage of a specific component by matching the 'Part Number' criteria, regardless of which different assembly groups triggered the usage.
Is Power Query better than SUMIFS for calculating inventory deductions?
Power Query is highly recommended for large datasets or complex BOM structures. It allows you to merge the transaction and mapping tables and group the parts automatically without bogging down your workbook with thousands of calculating formulas.
How do I handle multi-level Bill of Materials in Excel?
For multi-level BOMs (where a sub-assembly is made of smaller parts), a simple mapping table isn't enough. You will need a parent-child hierarchy table and may require more advanced Power Query steps or VBA scripting to calculate the fully exploded component requirements.
Why is my SUMIFS formula returning zero for my part deductions?
This usually occurs if there is a formatting mismatch (e.g., numbers stored as text) or if there are trailing spaces in your 'Part Number' or 'Group' names. Ensure that the text in your transaction table exactly matches the text in your mapping table.




