Re-looking at your original data and what you are trying to achieve, I went for a slightly different approach, starting again at the beginning, and taking all your comments into account. And this brought me to a solution over 3 Sheets. (Sheet1 = stykkliste, Sheet2 = Material Numbers + Qty to build, Sheet 3 = RESULT.
Firstly, I note the problem you have with your sykkliste is that your materialnummers are not all populated (eg. row7 and row9 are blank for example, so you will first need to ensure they are all filled. This is very easy, and I provided a formula in Column C to allow you to simply copy down in one go. Then you can cut & paste manually these values (not formulas) from Col C into Col D to complete the full list (I haven't done this copy myself just for clarity of instruction to you, so you will see that some of my formulas later refer to Col C when in fact you will need to refer to Col D.)
I have also edited the sykkliste a little on my example to show what happens when you get the "duplicate Komponent" situation later on Sheet2 & 3.
So Sheet1 looks like the list you provided : 1st step, complete those materialnummers.
byrow_filter.xlsx |
---|
|
---|
| A | B | C | D | E | F | G | H | I | J | K | L |
---|
1 | ######## | | | | Stykkliste | | | | | | | |
---|
2 | | | | | | | | | | | | |
---|
3 | Stykkliste | | | | | | | | | | | |
---|
4 | | Stykkliste | | Materialnummer | Alt | Bruk | Basiskvarn | BKE | Pos. | Komponent | Materialbetegnelse | |
---|
5 | | 17370 | A00300601 | A00300601 | 1 | 1 | 1 | STK | 10 | A1101008 | IKKE BRUK VARMVALSA RUNDSTÅLST 378 MM | |
---|
6 | | 17372 | A40140602 | A40140602 | 1 | 1 | 2 | STK | 10 | A1105006 | IKKE BRUK BLANKTRUKKET STÅLST 3.7-2 6MM | |
---|
7 | | 17372 | A40140602 | | | | 1 | STK | 20 | A1102205 | IKKE BRUK BLANKVALSA FLATT ST.37-2 45*3MM | |
---|
8 | | 17373 | A40140802 | A40140802 | 1 | 1 | 1 | STK | 10 | A1105008 | IKKE BRUK BLANKTRUKKET STÅLST 3.7-2 8MM | |
---|
9 | | 17373 | A40140802 | | | | 1 | STK | 20 | A1102202 | IKKE BRUK BLANKVALSA FLATT ST.37-2 50*4MM | |
---|
10 | | 17374 | A40141002 | A40141002 | 1 | 1 | 1 | STK | 10 | A40141009 | SNITTA GAFFELLEGG HØGRE FOR M 10 NO 401 | |
---|
11 | | 17374 | A40141002 | | | | 1 | STK | 20 | A40141011 | GAFFELHODE FOR STREKKSKRUE M 10 NO 401 | |
---|
12 | | 17375 | A40141202 | A40141202 | 1 | 1 | 1 | STK | 10 | A40141209 | SNITTA GAFFELLEGG HØGRE FOR M 1.2 NO 401 | |
---|
13 | | 17375 | A40141202 | | | | 1 | STK | 20 | A40141211 | GAFFELHODE FOR STREKKSKRUE M 12 NO 401 | |
---|
14 | | 17376 | A00300802 | A00300802 | 1 | 1 | 1 | STK | 10 | A3099000 | IKKE BRUK EMNER FOR KRAGEPINN 8*3.2MM | |
---|
15 | | 17377 | A40141602 | A40141602 | 1 | 1 | 1 | STK | 10 | A40141609 | SNITTA GAFFELLEGG HØGRE FOR M 16 NO 401 | |
---|
16 | | 17377 | A40141602 | | | | 1 | STK | 20 | A40141611 | GAFFELHODE FOR STREKKSKRUE M 16 NO 401 | |
---|
17 | | 17378 | A40142022 | A40142022 | 1 | 1 | 1 | STK | 10 | A40142009 | SNITTA GAFFELLEGG HØGRE FOR M .20 NO 401 | |
---|
18 | | 17378 | A40142022 | | | | 1 | STK | 20 | A40142011 | GAFFELHODE FOR STREKKSKRUE M .20 NO 401 | |
---|
19 | | 17379 | A40142222 | A40142222 | 1 | 1 | 1 | STK | 10 | A40142200 | EMNE FOR GAFFEL M 22 NO 401 | |
---|
20 | | 17379 | A40142222 | | | | 1 | STK | 20 | E_GJENGETAPP | (GJENGETAPP FOR 7/8" og 1" SJ | |
---|
21 | | 17379 | A40142222 | | | | 1 | STK | 30 | A_SKJÆREVERKTØY | SKJÆREVERKTØY KOSTNADER | |
---|
22 | | 17380 | A40142402 | A40142402 | 1 | 1 | 1 | STK | 10 | A40142400 | EMNE FOR GAFFEL M .24 NO 401/801 | |
---|
23 | | 17380 | A40142402 | | | | 1 | STK | 20 | E_GJENGETAPP | GJENGETAPP FOR 7/8" og 1" SJ | |
---|
24 | | 17380 | A40142402 | | | | 1 | STK | 30 | A_SKJÆREVERKTØY | SKJÆREVERKTØY KOSTNADER | |
---|
25 | | 17381 | A00300902 | A00300902 | 1 | 1 | 1 | STK | 10 | A3099002 | PREGA EMNER FOR KRAGEPINN 10*38,5MM | |
---|
26 | | 17382 | A40143222 | A40143222 | 1 | 1 | 1 | STK | 10 | 10 A40143200 | EMNE FOR GAFFEL 1 1/4" NO 401/801 | |
---|
27 | | 17382 | A40143222 | | | | 1 | STK | 20 | C_GJENGETAPP | GJENGETAPP FOR 1 1/4" SJ | |
---|
28 | | 17382 | A40143222 | | | | 1 | STK | 30 | A1102205 | IKKE BRUK BLANKVALSA FLATT ST.37-2 45*3MM | |
---|
29 | | 17383 | A40143822 | A40143822 | 1 | 1 | 1 | STK | 10 | A40143800 | EMNE FOR GAFFEL 1 1/2" NO 401/801 | |
---|
30 | | 17383 | A40143822 | | | | 1 | STK | 20 | A_GJENGETAPP | (GJENGETAPP FOR 1 1/2" og 1 3/4" SJ | |
---|
31 | | 17384 | A00301102 | A00301102 | 1 | 1 | 1 | STK | 10 | A1105011 | IKKE BRUK BLANKTRUKKET STÅLST 37-2 11MM | |
---|
32 | | 17385 | A40144502 | A40144502 | 1 | 1 | 1 | STK | 10 | A40144500 | EMNE FOR GAFFEL 13/4" NO 401/801 | |
---|
33 | | 17385 | A40144502 | | | | 1 | STK | 20 | A_GJENGETAPP | GJENGETAPP FOR 1 1/2" og 1 3/4" SJ | |
---|
34 | | 17386 | A00301302 | A00301302 | 1 | 1 | 1 | STK | 10 | A1105012 | IKKE BRUK BLANKTRUKKET STÅLST 3.7-2 12N./M | |
---|
35 | | 17387 | A40145222 | A40145222 | 1 | 1 | 1 | STK | 10 | A40145200 | EMNE FOR GAFFEL.2" NO 401/801 | |
---|
36 | | 17387 | A40145222 | | | | 1 | STK | 20 | G_GJENGETAPP | GJENGETAPP FOR 2." og 2 1/2" SJ | |
---|
|
---|
Then on Sheet2, you have your list of material nummers you wish to build (Col A), and the QTY of each in col B. I add a formula in D2 (you might need to refer it to Col D not col C as mentioned earlier) to extract the list of parts needed. I added a formula in Col N to pull in the required amount for each build, and then another formula in Col O which will give you the Qty * total. So, for example N2 multiplies Qty 2 (from I3) * 150 (from A3) to get your 300 total.
The rows here can have duplicate Komponents in the list. (eg Row 4 and Row 10. are duplicate, so I added another formula in Col O to give you the totals of all the duplicates (150 + 40 now = 190) and this 190 is therefore duplicated in Row 4 and Row 10 now.
byrow_filter.xlsx |
---|
|
---|
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P |
---|
1 | BUILD | QTY | | | | | | | qty | | | | | total | sum totals | |
---|
2 | A00300601 | 60 | | 17370 | A00300601 | A00300601 | 1 | 1 | 1 | STK | 10 | A1101008 | IKKE BRUK VARMVALSA RUNDSTÅLST 378 MM | 60 | 60 | |
---|
3 | A40140602 | 150 | | 17372 | A40140602 | A40140602 | 1 | 1 | 2 | STK | 10 | A1105006 | IKKE BRUK BLANKTRUKKET STÅLST 3.7-2 6MM | 300 | 300 | |
---|
4 | A40140802 | 400 | | 17372 | A40140602 | 0 | 0 | 0 | 1 | STK | 20 | A1102205 | IKKE BRUK BLANKVALSA FLATT ST.37-2 45*3MM | 150 | 190 | |
---|
5 | A00300902 | 100 | | 17373 | A40140802 | A40140802 | 1 | 1 | 1 | STK | 10 | A1105008 | IKKE BRUK BLANKTRUKKET STÅLST 3.7-2 8MM | 400 | 400 | |
---|
6 | A40143222 | 40 | | 17373 | A40140802 | 0 | 0 | 0 | 1 | STK | 20 | A1102202 | IKKE BRUK BLANKVALSA FLATT ST.37-2 50*4MM | 400 | 400 | |
---|
7 | | | | 17381 | A00300902 | A00300902 | 1 | 1 | 1 | STK | 10 | A3099002 | PREGA EMNER FOR KRAGEPINN 10*38,5MM | 100 | 100 | |
---|
8 | | | | 17382 | A40143222 | A40143222 | 1 | 1 | 1 | STK | 10 | 10 A40143200 | EMNE FOR GAFFEL 1 1/4" NO 401/801 | 40 | 40 | |
---|
9 | | | | 17382 | A40143222 | 0 | 0 | 0 | 1 | STK | 20 | C_GJENGETAPP | GJENGETAPP FOR 1 1/4" SJ | 40 | 40 | |
---|
10 | | | | 17382 | A40143222 | 0 | 0 | 0 | 1 | STK | 30 | A1102205 | IKKE BRUK BLANKVALSA FLATT ST.37-2 45*3MM | 40 | 190 | |
---|
11 | | | | | | | | | | | | | | | | |
---|
|
---|
so the last step in Sheet 3 is to get you just the columns you wanted, and of course to remove the duplicate rows
byrow_filter.xlsx |
---|
|
---|
| A | B | C |
---|
1 | A1101008 | IKKE BRUK VARMVALSA RUNDSTÅLST 378 MM | 60 |
---|
2 | A1105006 | IKKE BRUK BLANKTRUKKET STÅLST 3.7-2 6MM | 300 |
---|
3 | A1102205 | IKKE BRUK BLANKVALSA FLATT ST.37-2 45*3MM | 190 |
---|
4 | A1105008 | IKKE BRUK BLANKTRUKKET STÅLST 3.7-2 8MM | 400 |
---|
5 | A1102202 | IKKE BRUK BLANKVALSA FLATT ST.37-2 50*4MM | 400 |
---|
6 | A3099002 | PREGA EMNER FOR KRAGEPINN 10*38,5MM | 100 |
---|
7 | 10 A40143200 | EMNE FOR GAFFEL 1 1/4" NO 401/801 | 40 |
---|
8 | C_GJENGETAPP | GJENGETAPP FOR 1 1/4" SJ | 40 |
---|
|
---|
You will need to adjust the manual formulas in sheet 2 (I mean ensure they are copied down to all the rows of output you have (depending on how long your material list is), but should be quite easy each time you execute.
Hope thats okay for you
cheers
Rob