Automate Raw Material Requirements and Inventory Checks in Excel
Question details
Create a workbook that calculates raw materials needed for product orders and identifies inventory shortages.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user wants to calculate material demand from product orders and compare the totals with available inventory.
- Observed behavior
- The desired workbook lists required materials, their total demand, available stock, shortage quantities, and ordering status.
Gather a product-to-material list with the quantity needed per product unit, an order list, and current inventory quantities. Use consistent product and material names and compatible units across all sheets.
Calculate material demand and shortages with SUMIF
Use this approach to combine demand across multiple products and orders, then flag materials that need replenishment.
The example uses four sheets: BOM, Orders, Inventory, and Requirements. Formulas cover rows 2 through 1000; extend the ranges if your data exceeds those rows.
Each BOM row represents one material used by one product. Inventory quantities should represent stock available for the orders being evaluated.
Create a BOM sheet with Product in column A, Material in B, and Quantity per Unit in C. Create an Orders sheet with Product in A and Order Quantity in B, and an Inventory sheet with Material in A and Available Quantity in B. Put headers in row 1 and data from row 2.
In BOM!D1, enter Required Quantity. In BOM!D2, enter =C2*SUMIF(Orders!$A$2:$A$1000,A2,Orders!$B$2:$B$1000), then fill the formula down for every BOM row.
On the Requirements sheet, add headers Material, Required, Available, Shortage, and Status in A1:E1. Copy the material names from BOM column B into Requirements column A, then select the list and use Data > Remove Duplicates. In B2, enter =SUMIF(BOM!$B$2:$B$1000,A2,BOM!$D$2:$D$1000).
In Requirements!C2, enter =SUMIF(Inventory!$A$2:$A$1000,A2,Inventory!$B$2:$B$1000). In D2, enter =MAX(0,B2-C2). In E2, enter =IF(D2>0,"Order Required","In Stock"). Fill B2:E2 down for all listed materials.
Select the Requirements header row and choose Data > Filter. Filter Required to values greater than zero to show materials needed by the orders, and filter Status to Order Required to see shortages.

Build the inventory check in WPS Spreadsheets
Use WPS Spreadsheets to organize product recipes, calculate order demand with SUMIF, and filter materials that need replenishment.
- 1. Create the source sheets: Open WPS Spreadsheets and create BOM, Orders, Inventory, and Requirements sheets. Enter the product-material quantities, order quantities, and available stock using the column layout in the solution above.
- 2. Calculate BOM demand: In BOM!D2, enter =C2*SUMIF(Orders!$A$2:$A$1000,A2,Orders!$B$2:$B$1000), then fill the formula down.
- 3. Build the requirements list: Copy BOM material names to Requirements column A and use Data > Remove Duplicates. In B2, enter =SUMIF(BOM!$B$2:$B$1000,A2,BOM!$D$2:$D$1000); in C2, enter =SUMIF(Inventory!$A$2:$A$1000,A2,Inventory!$B$2:$B$1000).
- 4. Flag and filter shortages: In Requirements!D2, enter =MAX(0,B2-C2), and in E2, enter =IF(D2>0,"Order Required","In Stock"). Fill the formulas down, then use Data > Filter on the Status column to show Order Required.

Frequently Asked Questions
How do I calculate material demand for several orders of the same product?
Use SUMIF on the Orders sheet to total quantities for that product, then multiply the result by the material quantity per unit on the BOM sheet.
How can I see only materials that need to be ordered?
Select the Requirements header row, choose Data > Filter, and filter the Status column to Order Required. The Shortage column shows the quantity needed.
What happens if a material is missing from the inventory list?
The SUMIF inventory formula returns zero when it finds no match. Check Inventory for missing entries and spelling differences before treating the result as an actual shortage.
Will the formulas include new products and materials automatically?
New source rows within the specified ranges are included after the BOM formulas are filled down. Add new material names to the Requirements list and fill its formulas down; extend the formula ranges if data goes beyond row 1000.




