Bill of Material Cost Roll

ksigota

New Member
Joined
Jan 24, 2019
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello,

I've been trying various ways of making formulas work to make a "cost roll" out of a Bill of Materials. I keep getting stuck... (I've tried some various other formulas but the one below I've kinda landed on for now)
(apologies - I have to hide columns to get this in here, but other columns aren't data I'm looking at for this anyways)
Column AF = Standard Price - this is the cost of a single quantity of the PN
Column AG = Extended Price - this is the standard price (Column AF) times the quantity needed (column J) - this is where the rollup should be.

Column D Formula = VALUE(RIGHT(C3))
- This column is merely entered in as a helper column because the actual BOM uses "weird" numbering in Column B, which I would actually be using.
Column O Formula = LOOKUP(VALUE(RIGHT(C3))-1,VALUE(RIGHT($C$3:C3)),$F$3:F3,$F$3,0,-1)
- This is required on the sheet (for data entry later) and I'm using it as a "helper" for the actual formula

Column AM formula (this will ultimately reside in Column AG - I just moved it off to the side so I can read it easier) = IF(S3="E=MAKE",SUM(CHOOSECOLS(FILTER(D3:$AM$3005,(D3:$D$3005=D3+1)*(O3:$O$3005=F3),""),36)),AF3*J3)
- This is the one I'm manipulating. I've gone through lots of various different versions of this and can't seem to land a solution which actually works.

BCDEFJKOSAFAGAM
Orig SeqLevel NoBOM ItemComponentQTYUNSort StringProc TypeStd PriceEXT Price
1​
0​
0​
1E6801500-000.0001E6801500-00E=MAKE$0.00
1304612.02​
2​
0.1​
1​
1​
1282-128-011EA1E6801500-00E=MAKE$1,383,929.33
1171915.36​
3​
..2
2​
2850​
1282-694-011EA1282-128-01E=MAKE$243,261.18
257867.744​
4​
...3
3​
1410​
1281-052-011EA1282-694-01F$26,919.42$26,919.42
26919.42​
5​
...3
3​
1420​
1285-490-011EA1282-694-01E=MAKE$34,453.17
38680.04​
6​
....4
4​
10​
1295-812-013EA1285-490-01F$57.50$172.50
172.5​
7​
....4
4​
20​
1296-405-012EA1285-490-01F$190.82$381.64
381.64​
8​
....4
4​
30​
1230-034-011EA1285-490-01F$3,802.84$3,802.84
3802.84​
9​
....4
4​
240​
1283-053-011EA1285-490-01F$16,141.75$16,141.75
16141.75​
10​
....4
4​
250​
1285-489-011EA1285-490-01E=MAKE$72.01
68.99​
11​
.....5
5​
10​
1230-020-011EA1285-489-01F$33.45$33.45
33.45​
12​
.....5
5​
20​
1051-460-011EA1285-489-01F$0.20$0.20
0.2​
13​
.....5
5​
30​
1051-461-011EA1285-489-01F$0.20$0.20
0.2​
14​
.....5
5​
40​
9191-5800321EA1285-489-01F$2.79$2.79
2.79​
15​
.....5
5​
50​
9191-5800311EA1285-489-01F$3.08$3.08
3.08​
16​
.....5
5​
60​
1136-450-011EA1285-489-01F$2.01$2.01
2.01​
17​
.....5
5​
70​
1136-449-011EA1285-489-01F$1.12$1.12
1.12​
18​
.....5
5​
80​
1230-028-011EA1285-489-01F$26.14$26.14
26.14​
19​
....4
4​
260​
1285-488-012EA1285-490-01E=MAKE$78.32
150.6​
20​
.....5
5​
10​
1230-020-012EA1285-488-01F$33.45$66.90
66.9​
21​
.....5
5​
20​
1051-460-012EA1285-488-01F$0.20$0.40
0.4​
22​
.....5
5​
30​
1051-461-012EA1285-488-01F$0.20$0.40
0.4​
23​
.....5
5​
40​
9191-5800322EA1285-488-01F$2.79$5.58
5.58​
24​
.....5
5​
50​
9191-5800312EA1285-488-01F$3.08$6.16
6.16​
25​
.....5
5​
60​
1230-030-012EA1285-488-01F$9.44$18.88
18.88​
26​
.....5
5​
70​
1230-028-012EA1285-488-01F$26.14$52.28
52.28​
27​
....4
4​
270​
1230-031-019EA1285-490-01F$52.80$475.20
475.2​
28​
....4
4​
280​
1246-786-0124EA1285-490-01F$27.10$650.40
650.4​
29​
....4
4​
290​
1230-049-014EA1285-490-01E=MAKE$247.34
884.48​
30​
.....5
5​
10​
1301-866-014EA1230-049-01F$75.00$300.00
300​
31​
.....5
5​
20​
73055-014114EA1230-049-01F$13.30$53.20
53.2​
32​
.....5
5​
30​
1230-048-014EA1230-049-01F$40.60$162.40
162.4​
33​
.....5
5​
40​
95700-0401024EA1230-049-01Bulk$0.07$1.68
1.68​
34​
.....5
5​
50​
1226-430-014EA1230-049-01F$91.80$367.20
367.2​
 

Attachments

  • Example.gif
    Example.gif
    255.5 KB · Views: 6

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I wish I could edit my post above...I forgot to add where I get into issues with that formula. I put it in the picture...

Basically When a kit is on the BOM more than once, the formula adds up all the below. Meaning the first time the kit is on the BOM, it adds the values from the second (or however many times) time the kit appears.

Hopefully you can open the pic and see what I mean.
 
Upvote 0
So I'm finding this formula works well, except when there is more than one instance of the "Top Level" BOM

=IF($R3="E=MAKE",SUM(CHOOSECOLS(FILTER(C3:$AF$3005,(VALUE(RIGHT(C3:$C$3005))=VALUE(RIGHT(C3))+1)*($N3:$N$3005=E3),""),30)),AE3*I3)

Now I'm trying to see if I can use that formula but still have it sum only the the cells directly underneath - aka "only sum the first instance of the BOM. Since each time the formula encounters the BOM it's always the "first time", this should be possible...just can't find it.
 
Upvote 0
Really hoping someone can help me brainstorm/figure out the "duplicate" problem. Everything works great unless the MAKE part number in column E is listed more than once. First time it will add in the second (and third, fourth, etc) time.
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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