Replacing a single row in a table with multiple related values

danbtaylor

New Member
Joined
Oct 1, 2013
Messages
1
I am trying to break down the following 2-column table to include only each 'FinishedGood' and all its 'Inventory Parts' broken down to the 'Component' level. I want to replace each 'SubAssembly' Inventory Part with its corresponding 'Components':

Source Format:

Assembly ItemInventory Part
FinishedGood1Component1
FinishedGood1SubAssembly1
SubAssembly1Component2
SubAssembly1Component3
SubAssembly1Component4
SubAssembly1SubSubAssembly1
SubSubAssembly1Component5
SubSubAssembly1Component6

<tbody>
</tbody>


Desired Format:
Assembly ItemInventory Part
FinishedGood1Component1
FinishedGood1Component2
FinishedGood1Component3
FinishedGood1Component4
FinishedGood1Component5
FinishedGood1Component6

<tbody>
</tbody>

A FinishedGood may be comprised of a SubAssembly, a Component, another FinishedGood, or any combination of such. A SubAssembly may be part of multiple distinct FinishedGoods, and a component may be part of multiple distinct SubAssemblies

This information changes daily, and is updated through an ODBC data source, so automating the process is crucial.

I've tried creating separate tables for each stage, i.e., FinishedGoods, SubAssembly, etc., and relating them, however I've had no luck. I've also tried SQL queries to no avail.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top