<table border="0" cellpadding="0" cellspacing="0" width="500"><col style="width: 48pt;" span="6" width="64"> <col style="width: 87pt;" width="116"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl76" style="height: 12.75pt; width: 48pt;" height="17" width="64">10</td> <td class="xl76" style="border-left: medium none; width: 48pt;" width="64">102</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td class="xl75" style="width: 48pt;" width="64"> </td> <td class="xl75" style="border-left: medium none; width: 48pt;" width="64"> </td> <td class="xl74" style="border-left: medium none; width: 87pt;" width="116">AB861A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl76" style="height: 12.75pt; border-top: medium none;" height="17">10</td> <td class="xl76" style="border-top: medium none; border-left: medium none;">102</td> <td class="xl76" style="border-left: medium none;"> </td> <td class="xl76" style="border-left: medium none;"> </td> <td class="xl75" style="border-top: medium none; border-left: medium none;">04</td> <td class="xl75" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl74" style="border-top: medium none; border-left: medium none;">AA861A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl76" style="height: 12.75pt; border-top: medium none;" height="17">10</td> <td class="xl76" style="border-top: medium none; border-left: medium none;">102</td> <td class="xl76" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl76" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl76" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl76" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl74" style="border-top: medium none; border-left: medium none;">280A104-05</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl76" style="height: 12.75pt; border-top: medium none;" height="17">10</td> <td class="xl76" style="border-top: medium none; border-left: medium none;">102</td> <td class="xl76" style="border-top: medium none; border-left: medium none;">S</td> <td class="xl76" style="border-top: medium none; border-left: medium none;">S</td> <td class="xl76" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl76" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl74" style="border-top: medium none; border-left: medium none;">112A311-01</td> </tr> </tbody></table>
I offer the above as an example. If I had the following in variables:
s1 = "10", s2="102", s3="S", s4 = "S", s5="02, s6 is "300RF". When the code runs it would look at each of the lines above on the spreadsheet. Line one would return the value "AB861A" because S1 and S2 would match. Line two would return nothing because s5 contains "04" and not "02". Etc... hope this clarifies my objective a little.