Using Index/Match to return a value if muliple matches are required.

phippap

New Member
Joined
Jun 13, 2011
Messages
3
I have a table where I want to match data to a reference. Column A may be a month, and Column B is a Name and Column C is a Value. I want to know the value of column C when month = June and Name is Smith. I know I can concatonate A and B as one way to do it, or to possibly use a Pivot table. I am wondering if there is a way to use INDEX/MATCH, where the Match reference is looking for June and Smith? Or is there some other sexy way to do this?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I have a table where I want to match data to a reference. Column A may be a month, and Column B is a Name and Column C is a Value. I want to know the value of column C when month = June and Name is Smith. I know I can concatonate A and B as one way to do it, or to possibly use a Pivot table. I am wondering if there is a way to use INDEX/MATCH, where the Match reference is looking for June and Smith? Or is there some other sexy way to do this?

Control+shift+enter, not just enter:

=INDEX($C$2:$C$100,MATCH(1,IF($A$2:$A$100=E2,IF($B$2:$B$100=F2,1)),0))

where E2 houses a month of interest and F2 a name of interest.
 
Upvote 0

Forum statistics

Threads
1,224,547
Messages
6,179,436
Members
452,915
Latest member
hannnahheileen

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