I am using the index / match functions to search a range of data for store codes and sales person codes as below.
=INDEX($A$8:$F$33,MATCH($B34,$B$8:$B$33,0),MATCH($C34,$C$8:$C$33,0),MATCH($F$8,$A$8:$F$8,0))
I am running into an issue where because there are multiple employees working in the same store when it tries to lookup the store code i am getting a reference error, at least I think this is what is happening. Here is a brief snapshot of what i am talking about. The first column being the employee code (column B) the second the store code (column C).
<table width="128" border="0" cellpadding="0" cellspacing="0"><col style="width:48pt" width="64" span="2"> <tbody><tr style="height:12.75pt" height="17"> <td class="xl70" style="height:12.75pt;width:48pt" width="64" height="17">1000</td> <td class="xl70" style="border-left:none;width:48pt" width="64">01</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl71" style="height:12.75pt;border-top:none" height="17">1003</td> <td class="xl71" style="border-top:none;border-left:none">01</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl71" style="height:12.75pt;border-top:none" height="17">1007</td> <td class="xl71" style="border-top:none;border-left:none">01</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl71" style="height:12.75pt;border-top:none" height="17">1009</td> <td class="xl71" style="border-top:none;border-left:none">01</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl71" style="height:12.75pt;border-top:none" height="17">1022</td> <td class="xl71" style="border-top:none;border-left:none">01</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl71" style="height:12.75pt;border-top:none" height="17">1024</td> <td class="xl71" style="border-top:none;border-left:none">01</td> </tr> </tbody></table>
any help would be appreciated
=INDEX($A$8:$F$33,MATCH($B34,$B$8:$B$33,0),MATCH($C34,$C$8:$C$33,0),MATCH($F$8,$A$8:$F$8,0))
I am running into an issue where because there are multiple employees working in the same store when it tries to lookup the store code i am getting a reference error, at least I think this is what is happening. Here is a brief snapshot of what i am talking about. The first column being the employee code (column B) the second the store code (column C).
<table width="128" border="0" cellpadding="0" cellspacing="0"><col style="width:48pt" width="64" span="2"> <tbody><tr style="height:12.75pt" height="17"> <td class="xl70" style="height:12.75pt;width:48pt" width="64" height="17">1000</td> <td class="xl70" style="border-left:none;width:48pt" width="64">01</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl71" style="height:12.75pt;border-top:none" height="17">1003</td> <td class="xl71" style="border-top:none;border-left:none">01</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl71" style="height:12.75pt;border-top:none" height="17">1007</td> <td class="xl71" style="border-top:none;border-left:none">01</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl71" style="height:12.75pt;border-top:none" height="17">1009</td> <td class="xl71" style="border-top:none;border-left:none">01</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl71" style="height:12.75pt;border-top:none" height="17">1022</td> <td class="xl71" style="border-top:none;border-left:none">01</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl71" style="height:12.75pt;border-top:none" height="17">1024</td> <td class="xl71" style="border-top:none;border-left:none">01</td> </tr> </tbody></table>
any help would be appreciated