Track Excel Inventory and Production with Formulas Instead of VBA
Question details
Create a formula-based Excel inventory system that tracks production quantities, required parts, completed parts, and current inventory balances without using VBA.

- Product
- Microsoft Excel workbook
- Device & OS
- not provided
- Scenario
- The user needs to manage inventory and production data by part number and automatically update totals as production quantities are entered.
- Observed behavior
- The required formulas depend on the workbook layout, including how part numbers, opening inventory, planned quantities, completed quantities, and required quantities are organized.
Create a non-confidential sample workbook that uses the same column names and table layout as the production file. Make sure each part number is entered consistently, without extra spaces or different formats, before building lookup and SUMIFS formulas.
Build an inventory balance table with SUMIFS formulas
Use this approach when production records are listed in one table and inventory balances must update automatically by part number.
Set up separate Excel tables for inventory and production so formulas expand automatically when you add rows. A unique part number should identify the same item in both tables.
Select the inventory range and choose Insert > Table. Include columns such as Part Number, Opening Inventory, Parts Required, Quantity to Make, Quantity Completed, and Available Balance. Create a second table named Production with at least Part Number and Quantity Completed columns.
In the Inventory table's Quantity Completed column, enter =SUMIFS(Production[Quantity Completed],Production[Part Number],[@[Part Number]]). This adds every completed production entry that has the current row's part number.
In the Available Balance column, enter =[@[Opening Inventory]]+[@[Quantity Completed]]-[@[Parts Required]]. Adjust the column names in the formula to match your table headers.
In a Remaining to Make column, enter =MAX(0,[@[Quantity to Make]]-[@[Quantity Completed]]). This shows how many more units must be completed to meet the production plan.

Use XLOOKUP and conditional formatting to match and flag part numbers
Use this method when required quantities are stored in a separate planning or bill-of-materials table, or when you need visual alerts for matched and low-stock parts.
Track inventory and completed production in WPS Spreadsheet
WPS Spreadsheet can create a no-code inventory and production tracker with tables, SUMIFS calculations, XLOOKUP lookups, and conditional formatting. Import the existing workbook, organize production records by part number, and use formulas to keep required quantities and available balances current.
- 1. Open the inventory workbook: Open WPS Spreadsheet, then select Menu > Open and choose the existing .xlsx or .xls inventory workbook.
- 2. Convert data ranges into tables: Select each data range and choose Insert > Table so production and inventory entries can use structured references.
- 3. Add production and balance formulas: Enter SUMIFS formulas for completed quantities and subtract required quantities from opening inventory plus completed quantities in the balance column.
- 4. Add visual inventory alerts: Select the Available Balance column, then choose Home > Conditional Formatting to apply a rule for values below zero or below your reorder level.

Frequently Asked Questions
Can I build an inventory system in Excel without VBA?
Yes. Use Excel Tables with SUMIFS, XLOOKUP, IF, and conditional formatting. These features can calculate production totals and inventory balances automatically without macros.
Which formula totals completed production for each part number?
Use =SUMIFS(Production[Quantity Completed],Production[Part Number],[@[Part Number]]) in the inventory table. It totals all completed entries in the Production table that match the current part number.
How do I calculate the remaining quantity to make?
Use =MAX(0,[@[Quantity to Make]]-[@[Quantity Completed]]). The MAX function prevents the result from becoming negative when production exceeds the planned amount.
How can I highlight inventory parts that appear in the production list?
Select the inventory part-number range and create a Home > Conditional Formatting > New Rule formula using =COUNTIF(Production[Part Number],A2)>0. Replace A2 with the first part-number cell in your selected range.
Why is a sample workbook needed for the correct formulas?
Formula references depend on the actual column names, table names, and whether quantities are stored in one production log or multiple sheets. A sample with the same structure allows formulas to be matched accurately to the layout.




