Receive all the colors for style # (Index-Match or VBA)

Biggy

New Member
Joined
Feb 14, 2014
Messages
22
Hello again!

Once more I need Your Help. This time again situation is tricky one. I have Item list with Style #, description, sizes and price in one workbook (they are total over 500):

Unknown
ABCD
Ladies Polo8|10|12|14|16|18|20|22|24
Kids Polo4|6|8|10|12|14|16

<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Style[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Description[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Size[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Price[/TD]

[TD="align: center"]2[/TD]
[TD="align: center"]P1111[/TD]

[TD="align: center"]13.95[/TD]

[TD="align: center"]3[/TD]
[TD="align: center"]P2222[/TD]

[TD="align: center"]11.95[/TD]

</tbody>
Sheet1



In other workbook I have different information for given item codes:
Unknown
ABCDEFGHIJ
P1111 11Z12Ladies Polo9401042295866P1111Black/Green/Grey70
P1111 11Z16Ladies Polo9401042295880P1111Black/Green/Grey65
P1111 11Z20Ladies Polo9401042295903P1111Black/Green/Grey55
P1111 11Z24Ladies Polo9401042295927P1111Black/Green/Grey50
P1111 H8110Ladies Polo9401042295941P1111Black/Purple/Grey75
P1111 H8114Ladies Polo9401042295965P1111Black/Purple/Grey65
P1111 H8118Ladies Polo9401042295989P1111Black/Purple/Grey60
P1111 H8122Ladies Polo9401042296009P1111Black/Purple/Grey50
P1111 H818Ladies Polo9401042296023P1111Black/Purple/Grey80
P1111 H1512Ladies Polo9401042296047P1111Black/Fluoro Orange/Grey70
P1111 H1516Ladies Polo9401042296061P1111Black/Fluoro Orange/Grey65
P1111 H1520Ladies Polo9401042296085P1111Black/Fluoro Orange/Grey55
P1111 H1524Ladies Polo9401042296108P1111Black/Fluoro Orange/Grey50
P2222 37 12Kids Polo9401042275875P2222Black/Red80
P2222 37 16Kids Polo9401042275899P2222Black/Red60
P2222 37 6Kids Polo9401042275905P2222Black/Red90
P2222 91 10Kids Polo9401042275929P2222Black/White80
P2222 91 14Kids Polo9401042275943P2222Black/White70
P2222 91 4Kids Polo9401042284358P2222Black/White50
P2222 91 8Kids Polo9401042275974P2222Black/White90
P2222 18J12Kids Polo9401042275998P2222Grey/Fluoro Lime80
P2222 18J16Kids Polo9401042276018P2222Grey/Fluoro Lime60
P2222 18J6Kids Polo9401042276025P2222Grey/Fluoro Lime90

<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Item[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Description[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Barcode[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Style[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Color[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Size[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Box qty[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Buy price[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Sell price[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Sell price inc gst[/TD]

[TD="align: center"]2[/TD]
[TD="bgcolor: #DDEBF7"]P1111 11Z10[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042295859[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Green/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]10[/TD]
[TD="bgcolor: #DDEBF7"]75[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]12[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]4[/TD]
[TD="bgcolor: #DDEBF7"]P1111 11Z14[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042295873[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Green/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]14[/TD]
[TD="bgcolor: #DDEBF7"]65[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]16[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]6[/TD]
[TD="bgcolor: #DDEBF7"]P1111 11Z18[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042295897[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Green/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]18[/TD]
[TD="bgcolor: #DDEBF7"]60[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]7[/TD]

[TD="align: right"]20[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]8[/TD]
[TD="bgcolor: #DDEBF7"]P1111 11Z22[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042295910[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Green/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]22[/TD]
[TD="bgcolor: #DDEBF7"]50[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]9[/TD]

[TD="align: right"]24[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]10[/TD]
[TD="bgcolor: #DDEBF7"]P1111 11Z8[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042295934[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Green/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]8[/TD]
[TD="bgcolor: #DDEBF7"]80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]11[/TD]

[TD="align: right"]10[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]12[/TD]
[TD="bgcolor: #DDEBF7"]P1111 H8112[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042295958[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Purple/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]12[/TD]
[TD="bgcolor: #DDEBF7"]70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]13[/TD]

[TD="align: right"]14[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]14[/TD]
[TD="bgcolor: #DDEBF7"]P1111 H8116[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042295972[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Purple/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]16[/TD]
[TD="bgcolor: #DDEBF7"]65[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]15[/TD]

[TD="align: right"]18[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]16[/TD]
[TD="bgcolor: #DDEBF7"]P1111 H8120[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042295996[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Purple/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]20[/TD]
[TD="bgcolor: #DDEBF7"]55[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]17[/TD]

[TD="align: right"]22[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]18[/TD]
[TD="bgcolor: #DDEBF7"]P1111 H8124[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042296016[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Purple/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]24[/TD]
[TD="bgcolor: #DDEBF7"]50[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]19[/TD]

[TD="align: right"]8[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]20[/TD]
[TD="bgcolor: #DDEBF7"]P1111 H1510[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042296030[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Fluoro Orange/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]10[/TD]
[TD="bgcolor: #DDEBF7"]75[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]21[/TD]

[TD="align: right"]12[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]22[/TD]
[TD="bgcolor: #DDEBF7"]P1111 H1514[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042296054[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Fluoro Orange/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]14[/TD]
[TD="bgcolor: #DDEBF7"]65[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]23[/TD]

[TD="align: right"]16[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]24[/TD]
[TD="bgcolor: #DDEBF7"]P1111 H1518[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042296078[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Fluoro Orange/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]18[/TD]
[TD="bgcolor: #DDEBF7"]60[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]25[/TD]

[TD="align: right"]20[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]26[/TD]
[TD="bgcolor: #DDEBF7"]P1111 H1522[/TD]
[TD="bgcolor: #DDEBF7"]Ladies Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042296092[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Fluoro Orange/Grey[/TD]
[TD="bgcolor: #DDEBF7, align: right"]22[/TD]
[TD="bgcolor: #DDEBF7"]50[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$22.42[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$38.85[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$46.62[/TD]

[TD="align: center"]27[/TD]

[TD="align: right"]24[/TD]

[TD="align: right"]$22.42[/TD]
[TD="align: right"]$38.85[/TD]
[TD="align: right"]$46.62[/TD]

[TD="align: center"]28[/TD]
[TD="bgcolor: #DDEBF7"]P2222 37 10[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042275868[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Black/Red[/TD]
[TD="bgcolor: #DDEBF7, align: right"]10[/TD]
[TD="bgcolor: #DDEBF7"]80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

[TD="align: center"]29[/TD]

[TD="align: right"]12[/TD]

[TD="align: right"]$17.70[/TD]
[TD="align: right"]$51.80[/TD]
[TD="align: right"]$34.19[/TD]

[TD="align: center"]30[/TD]
[TD="bgcolor: #DDEBF7"]P2222 37 14[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042275882[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Black/Red[/TD]
[TD="bgcolor: #DDEBF7, align: right"]14[/TD]
[TD="bgcolor: #DDEBF7"]70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

[TD="align: center"]31[/TD]

[TD="align: right"]16[/TD]

[TD="align: right"]$17.70[/TD]
[TD="align: right"]$51.80[/TD]
[TD="align: right"]$34.19[/TD]

[TD="align: center"]32[/TD]
[TD="bgcolor: #DDEBF7"]P2222 37 4[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042284341[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Black/Red[/TD]
[TD="bgcolor: #DDEBF7, align: right"]4[/TD]
[TD="bgcolor: #DDEBF7"]100[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

[TD="align: center"]33[/TD]

[TD="align: right"]6[/TD]

[TD="align: right"]$17.70[/TD]
[TD="align: right"]$51.80[/TD]
[TD="align: right"]$34.19[/TD]

[TD="align: center"]34[/TD]
[TD="bgcolor: #DDEBF7"]P2222 37 8[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042275912[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Black/Red[/TD]
[TD="bgcolor: #DDEBF7, align: right"]8[/TD]
[TD="bgcolor: #DDEBF7"]90[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

[TD="align: center"]35[/TD]

[TD="align: right"]10[/TD]

[TD="align: right"]$17.70[/TD]
[TD="align: right"]$51.80[/TD]
[TD="align: right"]$34.19[/TD]

[TD="align: center"]36[/TD]
[TD="bgcolor: #DDEBF7"]P2222 91 12[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042275936[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Black/White[/TD]
[TD="bgcolor: #DDEBF7, align: right"]12[/TD]
[TD="bgcolor: #DDEBF7"]80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

[TD="align: center"]37[/TD]

[TD="align: right"]14[/TD]

[TD="align: right"]$17.70[/TD]
[TD="align: right"]$51.80[/TD]
[TD="align: right"]$34.19[/TD]

[TD="align: center"]38[/TD]
[TD="bgcolor: #DDEBF7"]P2222 91 16[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042275950[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Black/White[/TD]
[TD="bgcolor: #DDEBF7, align: right"]16[/TD]
[TD="bgcolor: #DDEBF7"]60[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

[TD="align: center"]39[/TD]

[TD="align: right"]4[/TD]

[TD="align: right"]$17.70[/TD]
[TD="align: right"]$51.80[/TD]
[TD="align: right"]$34.19[/TD]

[TD="align: center"]40[/TD]
[TD="bgcolor: #DDEBF7"]P2222 91 6[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042275967[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Black/White[/TD]
[TD="bgcolor: #DDEBF7, align: right"]6[/TD]
[TD="bgcolor: #DDEBF7"]45[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

[TD="align: center"]41[/TD]

[TD="align: right"]8[/TD]

[TD="align: right"]$17.70[/TD]
[TD="align: right"]$51.80[/TD]
[TD="align: right"]$34.19[/TD]

[TD="align: center"]42[/TD]
[TD="bgcolor: #DDEBF7"]P2222 18J10[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042275981[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Grey/Fluroo Lime[/TD]
[TD="bgcolor: #DDEBF7, align: right"]10[/TD]
[TD="bgcolor: #DDEBF7"]80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

[TD="align: center"]43[/TD]

[TD="align: right"]12[/TD]

[TD="align: right"]$17.70[/TD]
[TD="align: right"]$51.80[/TD]
[TD="align: right"]$34.19[/TD]

[TD="align: center"]44[/TD]
[TD="bgcolor: #DDEBF7"]P2222 18J14[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042276001[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Grey/Fluoro Lime[/TD]
[TD="bgcolor: #DDEBF7, align: right"]14[/TD]
[TD="bgcolor: #DDEBF7"]70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

[TD="align: center"]45[/TD]

[TD="align: right"]16[/TD]

[TD="align: right"]$17.70[/TD]
[TD="align: right"]$51.80[/TD]
[TD="align: right"]$34.19[/TD]

[TD="align: center"]46[/TD]
[TD="bgcolor: #DDEBF7"]P2222 18J4[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042284365[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Grey/Fluoro Lime[/TD]
[TD="bgcolor: #DDEBF7, align: right"]4[/TD]
[TD="bgcolor: #DDEBF7"]100[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

[TD="align: center"]47[/TD]

[TD="align: right"]6[/TD]

[TD="align: right"]$17.70[/TD]
[TD="align: right"]$51.80[/TD]
[TD="align: right"]$34.19[/TD]

[TD="align: center"]48[/TD]
[TD="bgcolor: #DDEBF7"]P2222 18J8[/TD]
[TD="bgcolor: #DDEBF7"]Kids Polo[/TD]
[TD="bgcolor: #DDEBF7"]9401042276032[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Grey/Fluoro Lime[/TD]
[TD="bgcolor: #DDEBF7, align: right"]8[/TD]
[TD="bgcolor: #DDEBF7"]90[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$17.70[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$51.80[/TD]
[TD="bgcolor: #DDEBF7, align: right"]$34.19[/TD]

</tbody>
Sheet2



I need to Index-Match (preferred) or VBA to add all the colors for the given Item Code, preferred result would be:

Unknown
ABCDE
Ladies Polo8|10|12|14|16|18|20|22|24Black/Green/Grey
Ladies Polo8|10|12|14|16|18|20|22|24Black/Purple/Grey
Ladies Polo8|10|12|14|16|18|20|22|24Black/Fluoro Orange/Grey
Kids Polo4|6|8|10|12|14|16Black/Red
Kids Polo4|6|8|10|12|14|16Black/White
Kids Polo4|6|8|10|12|14|16Grey/Fluoro Lime

<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Style[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Description[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Size[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Price[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Color[/TD]

[TD="align: center"]2[/TD]
[TD="align: center"]P1111[/TD]

[TD="align: center"]13.95[/TD]

[TD="align: center"]3[/TD]
[TD="align: center"]P1111[/TD]

[TD="align: center"]13.95[/TD]

[TD="align: center"]4[/TD]
[TD="align: center"]P1111[/TD]

[TD="align: center"]13.95[/TD]

[TD="align: center"]5[/TD]
[TD="align: center"]P2222[/TD]

[TD="align: center"]11.95[/TD]

[TD="align: center"]6[/TD]
[TD="align: center"]P2222[/TD]

[TD="align: center"]11.95[/TD]

[TD="align: center"]7[/TD]
[TD="align: center"]P2222[/TD]

[TD="align: center"]11.95[/TD]

</tbody>
Sheet3



OR
Unknown
ABCDE
Ladies Polo8|10|12|14|16|18|20|22|24Black/Green/Grey|Black/Purple/Grey|Black/Fluoro Orange/Grey
Kids Polo4|6|8|10|12|14|16Black/Red|Black/White|Grey/Fluoro Lime

<tbody>
[TD="align: center"]11[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Style[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Description[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Size[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Price[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Color[/TD]

[TD="align: center"]12[/TD]
[TD="align: center"]P1111[/TD]

[TD="align: center"]13.95[/TD]

[TD="align: center"]13[/TD]
[TD="align: center"]P2222[/TD]

[TD="align: center"]11.95[/TD]

</tbody>
Sheet3
Index-match is preferred because, I don't know VBA and for me would be much easier to make some adjustments in the future and learn how to use it. Maybe some of You thinks - let's get not only color information, but also all sizes for given color and with it also Barcodes, but it's not possible in this case, because first file is newest one (reference) and in it could be changed sizes for given items, so after color I will separate sizes and based on it receive other information (that's not a problem), but main thing is to get colors. One of my thought how to make, maybe, it easier would be to make another sheet and keep on it Style number and each color 1 time:

Unknown
AB

<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Style[/TD]
[TD="bgcolor: #BDD7EE, align: center"]Color[/TD]

[TD="align: center"]2[/TD]
[TD="bgcolor: #FFFFFF"]P1111[/TD]
[TD="bgcolor: #FFFFFF"]Black/Green/Grey[/TD]

[TD="align: center"]3[/TD]
[TD="bgcolor: #DDEBF7"]P1111[/TD]
[TD="bgcolor: #DDEBF7"]Black/Purple/Grey[/TD]

[TD="align: center"]4[/TD]
[TD="bgcolor: #FFFFFF"]P1111[/TD]
[TD="bgcolor: #FFFFFF"]Black/Fluoro Orange/Grey[/TD]

[TD="align: center"]5[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Black/Red[/TD]

[TD="align: center"]6[/TD]
[TD="bgcolor: #FFFFFF"]P2222[/TD]
[TD="bgcolor: #FFFFFF"]Black/White[/TD]

[TD="align: center"]7[/TD]
[TD="bgcolor: #DDEBF7"]P2222[/TD]
[TD="bgcolor: #DDEBF7"]Grey/Fluoro Lime[/TD]

</tbody>
Sheet2 (2)

Maybe it makes task easier?

Honestly, I don't have a clue what to do in this case, so hopefully someone will be able to help. Very much appreciated would be also explanations for formulas or VBA codes, so I can adjust and change it in the future. My goal isn't just to get problem solved, but I want to learn something, so I next time I know what to do.

I really hope that someone will be able to help me with this one. Thank You very much!

Sincerely,
Tony
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
[TABLE="width: 2317"]
<colgroup><col><col><col><col><col><col><col span="3"><col><col><col><col><col span="6"><col><col></colgroup><tbody>[TR]
[TD]Item[/TD]
[TD]Description[/TD]
[TD]Barcode[/TD]
[TD]Style[/TD]
[TD]Color[/TD]
[TD]Size[/TD]
[TD]Box qty[/TD]
[TD]Buy price[/TD]
[TD]Sell price[/TD]
[TD]Sell price inc gst[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 11Z10[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Green/Grey[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]75[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 11Z12[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Green/Grey[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]70[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 11Z14[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Green/Grey[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]65[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 11Z16[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Green/Grey[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]65[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD]Count of Color[/TD]
[TD]Color[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 11Z18[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Green/Grey[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]60[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD]Style[/TD]
[TD]Black/Fluoro Orange/Grey[/TD]
[TD]Black/Green/Grey[/TD]
[TD]Black/Purple/Grey[/TD]
[TD]Black/Red[/TD]
[TD]Black/White[/TD]
[TD]Grey/Fluoro Lime[/TD]
[TD]Grey/Fluroo Lime[/TD]
[TD]Grand Total[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 11Z20[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Green/Grey[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]55[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD]P1111[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]9[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]26[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 11Z22[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Green/Grey[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]50[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD]P2222[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 11Z24[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Green/Grey[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]50[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD]Grand Total[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]47[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 11Z8[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Green/Grey[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]80[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H8110[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Purple/Grey[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]75[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD="colspan: 4"]a simple pivot table can list all available colours for each style - would that help ?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H8112[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Purple/Grey[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]70[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H8114[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Purple/Grey[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]65[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H8116[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Purple/Grey[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]65[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H8118[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Purple/Grey[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]60[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H8120[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Purple/Grey[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]55[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H8122[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Purple/Grey[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]50[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H8124[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Purple/Grey[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]50[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H818[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Purple/Grey[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]80[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H1510[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Fluoro Orange/Grey[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]75[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1111 H1512[/TD]
[TD]Ladies Polo[/TD]
[TD="align: right"]9.40104E+12[/TD]
[TD]P1111[/TD]
[TD]Black/Fluoro Orange/Grey[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]70[/TD]
[TD]$22.42[/TD]
[TD]$38.85[/TD]
[TD]$46.62[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,596
Members
452,657
Latest member
giadungthienduyen

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