If you have ever tried to take a multi-level CAD export and turn it into a flat buy list for MRPeasy, Katana, or a supplier RFQ, you know the pain. Engineering exports a nice indented tree (top assembly -> subassemblies -> fasteners and components), which is great for assembly, but useless when you need one clean row per part number to cut a PO.

Most small hardware teams I work with still flatten these in Excel. On paper it looks like a 10-minute job, until a real production sheet quietly throws off your order quantities. Here are the few failure modes I keep seeing in real BOMs and the formulas I use to catch them.

Parent multipliers getting dropped mid-tree

Take a small 50-unit build like this:

Level Part Number Type Qty per Parent True Total (50 units)
0 CTRL-100 Top Assembly 1 50
1 BRKT-A Subassembly 2 100
2 M3-8MM-SS Buy Part 4 400
1 FAN-MOD Subassembly 1 50
2 M3-8MM-SS Buy Part 2 100

You need 500 screws total ((2 * 4 + 1 * 2) * 50).

A lot of hand-built sheets try to shortcut this by multiplying a row against the row directly above it. That works for two rows and breaks the second a Level 2 part follows another Level 2 part, or a Level 3 jumps back to Level 1.

What actually holds up is adding one helper column per level (L0, L1, L2, L3) that carries down the active parent quantity and resets deeper levels to 1 whenever the tree steps back up. Then extended quantity per unit is just:

=L0_Qty * L1_Qty * L2_Qty * L3_Qty 

Not pretty, not clever, and that is the point. Anyone checking the file before a PO can trace it in seconds.

Invisible spaces splitting the same part into two rows

Even with the math right, SUMIFS or a Pivot Table will split the same resistor into two lines if one subassembly exported RC0402FR-0710KL and another has a trailing space or lowercase letters. Worse, PDF and portal copy-pastes love sneaking in non-breaking spaces (CHAR(160)), which normal TRIM() does not strip.

In MRPeasy or Katana, that turns one component into two SKUs. On a quote, it splits your volume across two rows and can cost you a price break.

Before rolling anything up, I always add a normalized key column and group on that instead of the raw MPN:

=UPPER(TRIM(SUBSTITUTE(B2, CHAR(160), ""))) 

Keep the original MPN column right next to it so you do not lose what engineering actually wrote.

Parent subassemblies leaking into the buy list

If you sum every row in the flattened table without filtering out subassembly headers, BRKT-A (100 pcs) ends up in the same CSV as the sheet metal and screws that make it. Importing that into an MRP or sending it straight to purchasing means double-counting cost or accidentally quoting an internal assembly.

A quick rule that catches most indented sheets: if the next row has a deeper level than the current row, the current row is an assembly header, not a buy line:

=IF(A3>A2, "Assembly", "Buy") 

Filter the buy sheet strictly to Buy, and keep parent-child links on a separate tab for the MRP routing import.

Mixed units of measure (mm vs m)

Screws and ICs are fine because everything is PCS or EA. Wire, heat shrink, and tape are where things blow up. If one subassembly lists 250 mm of 22AWG wire and another lists 1.5 m of the same SKU, a plain SUMIFS happily outputs 251.5 and nobody notices until 250 meters of wire show up at receiving.

Before exporting, I run a quick conflict check across the normalized MPN (G) and UOM (E) columns:

=COUNTIFS($G$2:$G$500, G2, $E$2:$E$500, "<>"&E2) 

Anything above 0 gets highlighted so you can convert everything to one base unit first.

I keep a free Excel template with these checks wired up on GitHub if you want to grab the formulas directly: multi-level-bom-excel-template. I also put together a small browser tool for flattening and auditing BOMs without saving files on a server at SpecRivet.

Curious how other small teams handle phantom vs. stocked subassemblies when prepping CSVs for MRPeasy or Katana without writing a full Python script every time.