Index, match with 2 values

Vctr

New Member
Joined
Jun 14, 2007
Messages
2
Hi,

Im wondering if its possible the lookup a values after matching with 2 other values.
Here is the situation:
I want to select a name (dropdown menu), type in the product id and then get the right price related to those.
This is the formula i tried to use: =INDEX(C3:C7;MATCH(B12;B3:B7;);MATCH(A12;A3:A7;))
2001320187883154813_rs.jpg

For the name John, the formula works, but not for the name Peter.
Where does it go wrong?

Tia
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
maybe this wanted
formula is
=INDEX(C3:C7,MATCH(1,(B3:B7=B12)*(A3:A7=A12),0))
and Ctl+Shft+Enter
sould get answer
 
Upvote 0
maybe this wanted
formula is
=INDEX(C3:C7,MATCH(1,(B3:B7=B12)*(A3:A7=A12),0))
and Ctl+Shft+Enter
sould get answer
 
Upvote 0
Another slight variation would be:
=INDEX(C3:C7,MATCH(A12&B12,A3:A7&B3:B7,0))
confirmed with Ctrl+Shift+Enter
 
Upvote 0

Forum statistics

Threads
1,215,332
Messages
6,124,313
Members
449,153
Latest member
JazzSingerNL

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