Index / Match problem

volkl77

Board Regular
Joined
Apr 5, 2008
Messages
76
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
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Basically each day i get a list of employee codes (column B) their store code (column C), and their total sales. Because there are hundreds of empolyee's the owners would like a quick way to find an employee's sales by entering their store # and employee #. So i was just going to use a index / match to create a line at the top where they can just type in these values and it will show them without having to search manually.
 
Upvote 0
Basically each day i get a list of employee codes (column B) their store code (column C), and their total sales. Because there are hundreds of empolyee's the owners would like a quick way to find an employee's sales by entering their store # and employee #. So i was just going to use a index / match to create a line at the top where they can just type in these values and it will show them without having to search manually.
Try this...

Book1
ABCDEFG
1EmployeeStoreSales_EmployeeStoreSales
210000154_10070139
310030118____
410070139____
510090162____
610220155____
710240168____
Sheet1

This array formula** entered in G2:

=INDEX(C2:C7,MATCH(1,IF(A2:A7=E2,IF(B2:B7=F2,1)),0))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
This seems to be working except when the store # is not equal to 01. There is also stores 02, 03, 09. Thanks again for the help
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,488
Members
452,917
Latest member
MrsMSalt

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