i have not tried out the approaches provided yet but i thought this would paint a clearer picture
this is condensedsheets (ws) ary1
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S |
---|
P# | Brand | Style | Finish | Big size | Little Size | Size | Offset | BB | BP1 | BP2 | Price | UPC | Weight | IMG | Title | Desc | QTY | Center | |
Hoopler | Blep | Black | 40x10 | 5x120 | 40x10 Blep Hoopler Black | | | | | | | | | | | | | | |
Gangis | Bloop | Black | 40x10 | 5x120 | 40x10 Bloop Gangis Black | | | | | | | | | | | | | | |
Norp | Blap | Black | 40x9 | 3x112.5 | 40x9 Blap Norp Black | | | | | | | | | | | | | | |
Gangis | Bloop | Black | 39x8.5 | 5x120 | 39x8.5 Bloop Gangis Black | | | | | | | | | | | | | | |
<tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]12345[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]6.44[/TD]
[TD="align: right"][/TD]
[TD="align: right"]192[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]12333[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]7.27[/TD]
[TD="align: right"][/TD]
[TD="align: right"]192[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]12789[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]6.18[/TD]
[TD="align: right"][/TD]
[TD="align: right"]186[/TD]
[TD="align: right"][/TD]
[TD="align: right"]36[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]12348[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]8.5[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]5.93[/TD]
[TD="align: right"][/TD]
[TD="align: right"]219[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]70.6[/TD]
</tbody>
CondensedSheets
this is description helper (os) ary2
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
---|
PCD | Min Offser | Max Offset | MAKE | Short | Code | Rank | TSW TABLE | Min Offser | Max Offset | MAKE | Short | Code | Rank | | |
5x120 | Bloonduff | Bloon | TROA | 5x120 | Zinks | Zink | B8SE | Hoopler | | | | | | | |
5x120 | Bloonduff | Bloon | HCIV | 5x120 | Zinks | Zink | B5SE | Hoopler | | | | | | | |
5x120 | Bloonduff | Bloon | SFOR | 5x120 | Zinks | Zink | B7SE | Hoopler | | | | | | | |
5x120 | Bloonduff | Bloon | MCOO | 5x120 | Zinks | Zink | BX7X | Hoopler | | | | | | | |
5x108 | Redwood | Red | MMIA | 5x108 | Zinks | Zink | JXK | Hoopler | | | | | | | |
5x108 | Redwood | Red | MCLUB | 5x108 | Zinks | Zink | JSTY | Hoopler | | | | | | | |
5x108 | Redwood | Red | TPRIC | 5x108 | Zinks | Zink | JXJ | Hoopler | | | | | | | |
<tbody>
[TD="align: center"]12[/TD]
[TD="align: right"][/TD]
[TD="align: center"]13[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]1[/TD]
[TD="align: center"]14[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]1[/TD]
[TD="align: center"]15[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]2[/TD]
[TD="align: center"]16[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]4[/TD]
[TD="align: center"]17[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]1[/TD]
[TD="align: center"]18[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]2[/TD]
[TD="align: center"]19[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]3[/TD]
</tbody>
Decsription Helper
so from H-O is the second table that we need to access first
the end result of the "new" array should be this
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W |
---|
P# | Brand | Style | Finish | Big size | Little Size | Size | Offset | BB | BP1 | BP2 | Price | UPC | Weight | IMG | Title | Desc | QTY | Center | | | | | |
Hoopler | Blep | Black | 40x10 | 5x120 | 40x10 Blep Hoopler Black | | | | | | | | | | | | | | | | | | |
Gangis | Bloop | Black | 40x10 | 5x120 | 40x10 Bloop Gangis Black | | | | | | | | | | | | | | | | | | |
Norp | Blap | Black | 40x9 | 3x112.5 | 40x9 Blap Norp Black | | | | | | | | | | | | | | | | | | |
Gangis | Bloop | Black | 39x8.5 | 5x120 | 39x8.5 Bloop Gangis Black | | | | | | | | | | | | | | | | | | |
12345^B8SE | Hoopler | Blep | Black | 40x10 | 5x120 | 40x10 Blep Hoopler Black | | | | | | | | | | | | | | | | | |
12345^B5SE | Hoopler | Blep | Black | 40x10 | 5x120 | 40x10 Blep Hoopler Black | | | | | | | | | | | | | | | | | |
12333^HCIV | Gangis | Bloop | Black | 40x10 | 5x120 | 40x10 Bloop Gangis Black | | | | | | | | | | | | | | | | | |
12333^MCOO | Gangis | Bloop | Black | 40x10 | 5x120 | 40x10 Bloop Gangis Black | | | | | | | | | | | | | | | | | |
12348^TROA | Gangis | Bloop | Black | 39x8.5 | 5x120 | 39x8.5 Bloop Gangis Black | | | | | | | | | | | | | | | | | |
12348^HCIV | Gangis | Bloop | Black | 39x8.5 | 5x120 | 39x8.5 Bloop Gangis Black | | | | | | | | | | | | | | | | | |
12348^SFOR | Gangis | Bloop | Black | 39x8.5 | 5x120 | 39x8.5 Bloop Gangis Black | | | | | | | | | | | | | | | | | |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]12345[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]6.44[/TD]
[TD="align: right"][/TD]
[TD="align: right"]192[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]12333[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]7.27[/TD]
[TD="align: right"][/TD]
[TD="align: right"]192[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]12789[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]6.18[/TD]
[TD="align: right"][/TD]
[TD="align: right"]186[/TD]
[TD="align: right"][/TD]
[TD="align: right"]36[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]12348[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]8.5[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]5.93[/TD]
[TD="align: right"][/TD]
[TD="align: right"]219[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]6.44[/TD]
[TD="align: right"][/TD]
[TD="align: right"]192[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]6.44[/TD]
[TD="align: right"][/TD]
[TD="align: right"]192[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]7.27[/TD]
[TD="align: right"][/TD]
[TD="align: right"]192[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]7.27[/TD]
[TD="align: right"][/TD]
[TD="align: right"]192[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]8.5[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]5.93[/TD]
[TD="align: right"][/TD]
[TD="align: right"]219[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]8.5[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]5.93[/TD]
[TD="align: right"][/TD]
[TD="align: right"]219[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]8.5[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]5.93[/TD]
[TD="align: right"][/TD]
[TD="align: right"]219[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]70.6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
CondensedSheets
because for each row in CondensedSheets we use that big if statement to say
if the brand is in DescriptionHelper Column O then
if the BP1 or BP2 = Column A
and the offset is <= C
and the offset is >= B
and j < 5
then copy the row and make changes (including the + 4 columns on the end which i will get to after the column A change)
elseif the brand is NOT in DescriptionHelper Column O then
BP1 or BP2 = Column H
and the offset is <= J
and the offset is >= I
and j < 5
then copy the row and make changes (including the + 4 columns on the end which i will get to after the column A change)
if thats makes sense this is the idea in full