DataBlake
Well-known Member
- Joined
- Jan 26, 2015
- Messages
- 781
- Office Version
- 2016
- Platform
- Windows
Hello all,
I'd be super glad if someone could help me come up with a way to create multiple part numbers using two qualifiers from a single line
so lets say i have this product which would be the parent on Sheet1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]partnum[/TD]
[TD]brand[/TD]
[TD]style[/TD]
[TD]color[/TD]
[TD]size1[/TD]
[TD]size2[/TD]
[TD]size3[/TD]
[TD]angle[/TD]
[TD]reverse angle[/TD]
[TD]pattern[/TD]
[/TR]
[TR]
[TD]D4563[/TD]
[TD]Trian[/TD]
[TD]Glum[/TD]
[TD]Black[/TD]
[TD]22[/TD]
[TD]39[/TD]
[TD]32[/TD]
[TD]-17[/TD]
[TD]3.55[/TD]
[TD]6x110[/TD]
[/TR]
</tbody>[/TABLE]
and then i have a on a different sheet (TitleHelper) a list of variation identifiers
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Pattern[/TD]
[TD]Angle Min[/TD]
[TD]Angle Max[/TD]
[TD]ID1[/TD]
[TD]IDShort[/TD]
[TD]ID Code[/TD]
[/TR]
[TR]
[TD]6x110[/TD]
[TD]-20[/TD]
[TD]0[/TD]
[TD]Coloris[/TD]
[TD]Col[/TD]
[TD]C1[/TD]
[/TR]
[TR]
[TD]6x110[/TD]
[TD]-15[/TD]
[TD]5[/TD]
[TD]Floris[/TD]
[TD]Flo[/TD]
[TD]F1[/TD]
[/TR]
[TR]
[TD]6x110[/TD]
[TD]-30[/TD]
[TD]-10[/TD]
[TD]Probis[/TD]
[TD]Pro[/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]6x110[/TD]
[TD]-50[/TD]
[TD]100[/TD]
[TD]Slotis[/TD]
[TD]Slo[/TD]
[TD]S1[/TD]
[/TR]
</tbody>[/TABLE]
and here is where i run into my problem is i need to create a new partnum with "*ID Code" for every time this item matches the pattern and the pattern is within min-max. So something like this:
except for every instance that the pattern matches, and the angle is within the range of min-max it inserts the new part number below the parent part number so Sheet1 would look like
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]partnum[/TD]
[TD]brand[/TD]
[TD]style[/TD]
[TD]color[/TD]
[TD]size1[/TD]
[TD]size2[/TD]
[TD]size3[/TD]
[TD]angle[/TD]
[TD]reverse angle[/TD]
[TD]Pattern[/TD]
[/TR]
[TR]
[TD]D4563[/TD]
[TD]Trian[/TD]
[TD]Glum[/TD]
[TD]Black[/TD]
[TD]22[/TD]
[TD]39[/TD]
[TD]32[/TD]
[TD]-17[/TD]
[TD]3.55[/TD]
[TD]6x110[/TD]
[/TR]
[TR]
[TD]D4563*C1[/TD]
[TD]Trian[/TD]
[TD]Glum[/TD]
[TD]Black[/TD]
[TD]22[/TD]
[TD]39[/TD]
[TD]32[/TD]
[TD]-17[/TD]
[TD]3.55[/TD]
[TD]6x110[/TD]
[/TR]
[TR]
[TD]D4563*P1[/TD]
[TD]Trian[/TD]
[TD]Glum[/TD]
[TD]Black[/TD]
[TD]22[/TD]
[TD]39[/TD]
[TD]32[/TD]
[TD]-17[/TD]
[TD]3.55[/TD]
[TD]6x110[/TD]
[/TR]
[TR]
[TD]D4563*S1[/TD]
[TD]Trian[/TD]
[TD]Glum[/TD]
[TD]Black[/TD]
[TD]22[/TD]
[TD]39[/TD]
[TD]32[/TD]
[TD]-17[/TD]
[TD]3.55[/TD]
[TD]6x110[/TD]
[/TR]
</tbody>[/TABLE]
*Note that there are 19 columns of important info to copy down to child partnums not just 10
*Note that I will love you forever if you help me, and if you leave me notes to learn
I'd be super glad if someone could help me come up with a way to create multiple part numbers using two qualifiers from a single line
so lets say i have this product which would be the parent on Sheet1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]partnum[/TD]
[TD]brand[/TD]
[TD]style[/TD]
[TD]color[/TD]
[TD]size1[/TD]
[TD]size2[/TD]
[TD]size3[/TD]
[TD]angle[/TD]
[TD]reverse angle[/TD]
[TD]pattern[/TD]
[/TR]
[TR]
[TD]D4563[/TD]
[TD]Trian[/TD]
[TD]Glum[/TD]
[TD]Black[/TD]
[TD]22[/TD]
[TD]39[/TD]
[TD]32[/TD]
[TD]-17[/TD]
[TD]3.55[/TD]
[TD]6x110[/TD]
[/TR]
</tbody>[/TABLE]
and then i have a on a different sheet (TitleHelper) a list of variation identifiers
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Pattern[/TD]
[TD]Angle Min[/TD]
[TD]Angle Max[/TD]
[TD]ID1[/TD]
[TD]IDShort[/TD]
[TD]ID Code[/TD]
[/TR]
[TR]
[TD]6x110[/TD]
[TD]-20[/TD]
[TD]0[/TD]
[TD]Coloris[/TD]
[TD]Col[/TD]
[TD]C1[/TD]
[/TR]
[TR]
[TD]6x110[/TD]
[TD]-15[/TD]
[TD]5[/TD]
[TD]Floris[/TD]
[TD]Flo[/TD]
[TD]F1[/TD]
[/TR]
[TR]
[TD]6x110[/TD]
[TD]-30[/TD]
[TD]-10[/TD]
[TD]Probis[/TD]
[TD]Pro[/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]6x110[/TD]
[TD]-50[/TD]
[TD]100[/TD]
[TD]Slotis[/TD]
[TD]Slo[/TD]
[TD]S1[/TD]
[/TR]
</tbody>[/TABLE]
and here is where i run into my problem is i need to create a new partnum with "*ID Code" for every time this item matches the pattern and the pattern is within min-max. So something like this:
Code:
=IF(AND(J2=TitleHelper!A2,H2<=TitleHelper!C2,H2>=TitleHelper!B2),A2&"*"&TitleHelper!F2)
except for every instance that the pattern matches, and the angle is within the range of min-max it inserts the new part number below the parent part number so Sheet1 would look like
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]partnum[/TD]
[TD]brand[/TD]
[TD]style[/TD]
[TD]color[/TD]
[TD]size1[/TD]
[TD]size2[/TD]
[TD]size3[/TD]
[TD]angle[/TD]
[TD]reverse angle[/TD]
[TD]Pattern[/TD]
[/TR]
[TR]
[TD]D4563[/TD]
[TD]Trian[/TD]
[TD]Glum[/TD]
[TD]Black[/TD]
[TD]22[/TD]
[TD]39[/TD]
[TD]32[/TD]
[TD]-17[/TD]
[TD]3.55[/TD]
[TD]6x110[/TD]
[/TR]
[TR]
[TD]D4563*C1[/TD]
[TD]Trian[/TD]
[TD]Glum[/TD]
[TD]Black[/TD]
[TD]22[/TD]
[TD]39[/TD]
[TD]32[/TD]
[TD]-17[/TD]
[TD]3.55[/TD]
[TD]6x110[/TD]
[/TR]
[TR]
[TD]D4563*P1[/TD]
[TD]Trian[/TD]
[TD]Glum[/TD]
[TD]Black[/TD]
[TD]22[/TD]
[TD]39[/TD]
[TD]32[/TD]
[TD]-17[/TD]
[TD]3.55[/TD]
[TD]6x110[/TD]
[/TR]
[TR]
[TD]D4563*S1[/TD]
[TD]Trian[/TD]
[TD]Glum[/TD]
[TD]Black[/TD]
[TD]22[/TD]
[TD]39[/TD]
[TD]32[/TD]
[TD]-17[/TD]
[TD]3.55[/TD]
[TD]6x110[/TD]
[/TR]
</tbody>[/TABLE]
*Note that there are 19 columns of important info to copy down to child partnums not just 10
*Note that I will love you forever if you help me, and if you leave me notes to learn