Combine indented list of values

tkin11

New Member
Joined
Aug 10, 2009
Messages
4
I am creating a detailed list of quantities from a Bill of Material generated from SolidWorks.
Here is my dilemma:
I am using an indented BOM so the parts are ordered and quantified like this:

Item Qty
1 2
1.1 1
1.2 4
1.3 2
1.4 1
2 4
2.1 2
2.2 3
2.2.1 1
2.2.2 1
2.2.3 2
2.2.4 2

I need to find a way to change the quantities of each entry to reflect the totals.

I need it to be read like this:
Item Qty
1 2
1.1 2
1.2 8
1.3 4
1.4 2
2 4
2.1 8
2.2 12
2.2.1 12
2.2.2 12
2.2.3 24
2.2.4 24

Any ideas or snippets of code to help?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Code:
Item  Qty
1     2
1.1   1
1.2   4
1.3   2
1.4   1
2     4
2.1   2
2.2   3
2.2.1 1
2.2.2 1
2.2.3 2
2.2.4 2

I need to find a way to change the quantities of each entry to reflect the totals.

I need it to be read like this:
Code:
Item  Qty
1     2
1.1   2
1.2   8
1.3   4
1.4   2
2     4
2.1   8
2.2   12
2.2.1 12
2.2.2 12
2.2.3 24
2.2.4 24

I reposted the list because of formating issues in the original post.

Item 1 is a sub-assembly composed of parts 1.1, 1.2, 1.3 and 1.4.
Item 2 is a sub-assembly composed of part 2.1 and an assembly 2.2.
Item 2.2 is a "sub-"sub-assembly composed of items 2.2.1, 2.2.2, 2.2.3, and 2.2.4.
Since sub-assembly item 2 has a quantity of 4, all the parts down the line will have a multiple of 4... and since "sub-"sub-assembly 2.2 has a quantity of 3, all the parts down the line will have a multiple of 3.
 
Upvote 0

Forum statistics

Threads
1,215,438
Messages
6,124,873
Members
449,192
Latest member
MoonDancer

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