Yessir,
<table width="500" border="0" cellpadding="0" cellspacing="0"><col style="width: 48pt;" span="6" width="64"> <col style="width: 87pt;" width="116"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt; width: 48pt;" width="64" height="17">10</td> <td class="xl77" style="border-left: medium none; width: 48pt;" width="64">102</td> <td class="xl74" style="width: 48pt;" width="64">
</td> <td class="xl74" style="width: 48pt;" width="64">
</td> <td class="xl76" style="width: 48pt;" width="64"> </td> <td class="xl76" style="border-left: medium none; width: 48pt;" width="64"> </td> <td class="xl75" style="border-left: medium none; width: 87pt;" width="116">AB861A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt; border-top: medium none;" height="17">10</td> <td class="xl77" style="border-top: medium none; border-left: medium none;">102</td> <td class="xl77" style="border-left: medium none;"> </td> <td class="xl77" style="border-left: medium none;"> </td> <td class="xl76" style="border-top: medium none; border-left: medium none;">04</td> <td class="xl76" style="border-top: medium none; border-left: medium none;">600RJ</td> <td class="xl75" style="border-top: medium none; border-left: medium none;">AA861A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt; border-top: medium none;" height="17">10</td> <td class="xl77" style="border-top: medium none; border-left: medium none;">102</td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl75" style="border-top: medium none; border-left: medium none;">280A104-05</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt; border-top: medium none;" height="17">10</td> <td class="xl77" style="border-top: medium none; border-left: medium none;">102</td> <td class="xl77" style="border-top: medium none; border-left: medium none;">S</td> <td class="xl77" style="border-top: medium none; border-left: medium none;">S</td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl75" style="border-top: medium none; border-left: medium none;">112A311-01</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt; border-top: medium none;" height="17">10</td> <td class="xl77" style="border-top: medium none; border-left: medium none;">102</td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl75" style="border-top: medium none; border-left: medium none;">236A183-01</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt; border-top: medium none;" height="17">10</td> <td class="xl77" style="border-top: medium none; border-left: medium none;">102</td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl76" style="border-top: medium none; border-left: medium none;">02</td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl75" style="border-top: medium none; border-left: medium none;">ABF227E</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt; border-top: medium none;" height="17">10</td> <td class="xl77" style="border-top: medium none; border-left: medium none;">103</td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl76" style="border-top: medium none; border-left: medium none;">04</td> <td class="xl77" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl75" style="border-top: medium none; border-left: medium none;">AFD227B</td> </tr> </tbody></table>
My intention is to parse a "part number" into variables.
An example of a part number would be "10102SS02600RJ"
s1 = 10
s2 = 102
s3 = S
s4 = S
s5 = 02
s6 = 600RJ
An example of a part number would be "10102SS02600RJ"
I would loop through the spreadsheet a row at a time containing cells populated as illustrated above. The logic would look at a rows one at a time for only those cells that are populated. It would then do a compare of the value to that which is contained in the matching variable. If a match, the value in column 7 would be returned. So, in this example row one would return "AB861A" because the 1st column and 2nd column values are populated and match the values in both s1 and s2. Next row... row two would not return anything because even though the 1st, 2nd, 3rd, 4th and 6th columns match s1,s2,s3,s4 and s6 respectively, the value in s5 does not match. I sure hope this helps. Please let me know... and thank you.