lookup table using Horizontal and Vertical criteria

fayez_MrExcel

Active Member
Joined
Oct 29, 2005
Messages
437
Office Version
  1. 365
Platform
  1. Windows
With the example table below, i want to put the appropriate value in C3 up to C6 if the criteria is met in the right table. The criteria is : it will match the value of A3 Ex in the right table then once it is located it will use the column "Up" or "Low" depends on the value of B3. Example: the value of C3 should be 4%, C4 will be 4%, C5 is 2% and C6 is 5%. help please

=====================================
Book1
ABCDEFGH
2RateCriteriaPercentageRateUpLow
3EXLowEx5%4%
4VGUpVG4%3%
5GUpG3%2%
6EXUpF2%1%
Sheet1
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
=index($g$3:$h$6,match(a3,$f$3:#f#6,0),match(b3,$f$2:$h$2,0))

I reckon jonmo's fingers are still warmin' up... edit the "#" signs to be "$" signs and you should be good to go.

=index($g$3:$h$6,match(a3,$f$3:$f$6,0),match(b3,$f$2:$h$2,0))
 
Upvote 0
See the typo Mr. Truby pointed out...
=index($g$3:$h$6,match(a3,$f$3:#f#6,0),match(b3,$f$2:$h$2,0))
SHOULD BE
=index($g$3:$h$6,match(a3,$f$3:$f$6,0),match(b3,$f$2:$h$2,0))
 
Upvote 0
Did you see the comment on the needed edit? Did you change the "#" signs to "$" signs and you are still getting a #REF error?
 
Upvote 0
yes sir i copy the correct one and it is still has #Ref!

=index($g$3:$h$6,match(a3,$f$3:$f$6,0),match(b3,$f$2:$h$2,0))
 
Upvote 0
Ahh, found another problem...Sheesh is it that early??
I guess this is what I get for not testing...

=index($g$3:$h$6,match(a3,$f$3:$f$6,0),match(b3,$f$2:$h$2,0))
should be..
=INDEX($G$3:$H$6,MATCH(A3,$F$3:$F$6,0),MATCH(B3,$G$2:$H$2,0))
 
Upvote 0
Well, I had to put together a test sheet and get the #REF! error myself before I figured it out. And yes that is the key edit to make, change the "F" to a "G" in the second MATCH():

=INDEX($G$3:$H$6,MATCH(A3,$F$3:$F$6,0),MATCH(B3,$G$2:$H$2,0))
 
Upvote 0

Forum statistics

Threads
1,214,403
Messages
6,119,309
Members
448,886
Latest member
GBCTeacher

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