No. 23, Nanling Road, Xin'er Community, Xinqiao Street, Bao'an District, Shenzhen, Guangdong, China
+86 133 1687 7162Discuss requirements and production
PCB Assembly Guides

Use Excel to Reconcile BOM Revisions and Purchase Quantities

Illustrative photograph of a board with surface-mounted and through-hole components.

Calculate installed quantities from the approved revision and variant. Subtract usable project inventory, add approved material allowances separately, then calculate order quantities using the actual MOQ and pack multiples. Check the Excel results against part numbers, reference designators, and exceptions.

Use Excel to Reconcile BOM Revisions and Purchase Quantities

Subtracting BOMs row by row can turn a sort change into a false shortage or mix per-board quantities with batch quantities. Save the original files, approved revisions, variants, and current production plan before preparing working copies. The tables and formulas below are a reviewable spreadsheet example. Live inventory and purchase approvals are separate.

Compare both revisions using the same production plan. If the board quantity changed, show the effects of the design change and the production plan change separately. Standardize units first. Reels, packages, and individual parts need a common unit before comparison.

Build a detail table by revision and variant

Convert the prepared detail range to an Excel table named Lines. The English column names below are for the sample formulas. Store the original manufacturer, complete part number, and unit in separate columns. Each row identifies a reviewed set of parts and reference designators by their data, independent of worksheet row order.

Build a detail table by revision and variant
Example column nameWhat to enter and check
KeyApproved match ID tied to manufacturer, full manufacturer part number, and unit
Rev / VariantRevisions R0 and R1 and the actual variant. Keep different assembly variants separate.
RefsVerified physical assembly reference designators. Expand ranges such as R1–R4.
FitPopulated or DNP. Resolve any unknown status before proceeding.
PerBoardQuantity placed per board for this row. For approved DNP, enter 0 and keep the designator and reason.
BoardsApproved board quantity for this variant. Avoid multiplying an already extended batch quantity.
DemandDemand for this line equals PerBoard × Boards. Enter values as numbers.

Validate matches before totaling quantities

Demand for the same part can be totaled across variants. Count each physical reference designator only once within a revision and variant. After expanding designators, reconcile the populated count with the per-board quantity. Multi-unit schematic symbols may represent one physical part. Keep different suffixes, packages, grades, and units separate. Keep the alternate approval record and identify which part will actually be purchased.

Assign a stable match ID such as P001 to each confirmed manufacturer, full part number, and unit combination. Preserve the original identifiers and use exact approved matches. SUMIFS is case-insensitive and interprets wildcards. Keep *, ?, and ~ out of the sample keys and avoid keys that differ only by case. Ask engineering to resolve uncertain matches.

Combine keys from both revisions and retain additions, removals, and DNP

Create a Summary table with every Key from either revision. Mark added, removed, DNP-only, and changed quantities separately. Verify that a missing row is an intentional deletion. Blank cells require confirmation before counting as zero demand.

After checking status and quantity, enter the formula below in the Demand column of Lines. In Summary, Old and New total R0 and R1 respectively, and Delta subtracts old demand from new. Use criteria and sum ranges of the same length from the same table. The examples use English function names and comma separators. Check function names, separators, table names, and results in your Excel environment.

Convert the totals range to an Excel table named Summary and add the Key, Old, New, and Delta columns.

Line detail and revision summary formulas
Target columnExample formula
Demand in Lines=[@PerBoard]*[@Boards]
Old in Summary=SUMIFS(Lines[Demand],Lines[Key],[@Key],Lines[Rev],"R0")
New in Summary=SUMIFS(Lines[Demand],Lines[Key],[@Key],Lines[Rev],"R1")
Delta in Summary=[@New]-[@Old]

For this quantity example, the plan is unchanged across both revisions at 60 sensor boards and 40 controller boards. All rows use the same approved part Key. R2 on the controller moves to DNP in the new revision. Keep that row for the audit trail.

A revision example with the same part and production plan
RevisionVariant / statusReference designatorQuantity placed per boardBoardsRequirements
R0Sensor / populatedR1, R2260120
R0Controller / populatedR1, R224080
R1Sensor / populatedR1, R2260120
R1Controller / populatedR114040
R1Controller / DNPR20400

Old demand was 200 parts and new demand is 160, a change of −40. Confirm inventory, approved extras, and purchasing constraints to calculate how many to buy.

Old = 120 + 80 = 200; New = 120 + 40 + 0 = 160; Delta = 160 − 200 = −40

Account for inventory and purchasing pack size separately

In Usable, enter released stock available to this project in the same unit and free of other commitments. Count each lot once. List open receipts, quarantined stock, reservations, and stock with unclear ownership separately. Supplier website availability is distinct from stock available to this project. Extra is the approved quantity for trials, losses, or spares for this run. Confirm the exact quantity.

Account for inventory and purchasing pack size separately
Example statusQuantity in piecesHow to count it
Approved available inventory for this project50Include in Usable
Other stock already reserved10Exclude from Usable in this example
Other stock on hold5Exclude from Usable until released
Approved extra parts8Include the approved quantity in Extra

This formula applies to integer part counts in a single unit. Confirm the actual purchase minimum (MOQ) and pack size (Pack). Pack must be a positive integer. When there is a shortage, order a full pack multiple that meets the MOQ. If there is no shortage, the purchase quantity is 0. Hold the calculation for approval if any input is unknown. Enter 0 or 1 only when confirmed.

In Summary, add Extra, Usable, MOQ, and Pack as inputs and Shortage, ToBuy, and Excess as calculated columns.

Account for inventory and purchasing pack size separately
Summary columnExample formula
Shortage · nonnegative quantity needed=MAX(0,[@New]+[@Extra]-[@Usable])
ToBuy · planned purchase quantity=IF([@Shortage]=0,0,ROUNDUP(MAX([@Shortage],[@MOQ])/[@Pack],0)*[@Pack])
Excess · planned remaining quantity=[@Usable]+[@ToBuy]-[@New]-[@Extra]

This example assumes no open purchase order covers the remaining demand. Before approval, check existing purchase orders (POs), demand allocation, and expected receipt dates to prevent duplicate orders. Track incoming quantities separately from usable on-hand stock. Hold the recommendation if PO coverage or delivery timing is uncertain.

In this example, new demand is 160, extras are 8, and usable stock is 50, leaving a shortage of 118. With an assumed MOQ of 100 and a pack multiple of 25, plan to purchase 125 parts with 7 remaining. These seven parts are a planning balance. Actual consumption, losses, returns, and sellable stock require separate records.

Shortage = MAX(0,160 + 8 − 50) = 118; ToBuy = ROUNDUP(MAX(118,100)/25,0) × 25 = 125; Excess = 50 + 125 − 160 − 8 = 7

Send exceptions to their owners before release

Send exceptions to their owners before release
Release blockersAction and output
Duplicate designators, ambiguous part numbers, or unclear unitsResolve against original files and approvals before totaling quantities
Blank status, numbers stored as text, negative quantities, or a pack size of zeroCorrect the inputs and keep formula errors or unknown values visible until resolved. Reserve 0 for an actual zero.
Unexplained additions, removals, DNP changes, or board quantity changesDocument the reason, impact, and approver for each change
Unconfirmed inventory snapshot, reservations, or extrasHold the purchase recommendation and record the owner and quantity to confirm
Formula totals differ from manual checksCheck filters, ranges, and units. Reconcile line demand and totals.

Deliver the revision-controlled demand comparison, documentation for usable stock, shortage and pack rounding calculations, planned ownership of excess parts, and open items. Engineering confirms population and alternates. The material owner verifies stock, and procurement confirms MOQ, pack size, and ordering authority. Confirm part suitability, channel authorization, and board functionality separately before release.

Hand off the reconciliation to the appropriate teams

Component sourcing and substitution authority · Assembly documentation and revision inputs · Board traceability records · Shortage and split-run approval · Parts sourcing models and ownership of excess inventory · Submit revisions and open items

Formulas and engineering references

Link Each Board to Its Actual Revision, Materials, and Production Records · List Faults and Functions Before Comparing Test Coverage and Cost · Automotive PCB Assembly · Component Sourcing | Freeze Part Numbers and Alternate Approval Rules · From PCBA delivery to a finished product with harnesses and housing · PCB Assembly RFQ Template | Align Revisions and Quote Scope · Electrical and mechanical evidence for cable harness acceptance

← Back to PCB Assembly Guides
PCB / PCBA · PROJECT INQUIRY

PCB fabrication, assembly or a complete electronics project?

Tell us about the product, the files available and the work you need. We can review the next step even while the documentation is being prepared.