Index/Match - Multiple Column Lookup

Joelsephaz

New Member
Joined
Dec 23, 2011
Messages
5
Hey All,

Been a long while since I've asked for help but I've got something I'm stuck on.

I'm trying to write a Index Match formula using two criteria. This first is a rate input to match against Column A and the second is a % input to (non-exact <) match against values in column B:H, and I'd like to return to text in the column header.

BlackGreyRedOrangeYellowGreenBlue
122.00%24.00%26.00%28.00%32.00%34.00%36.00%
221.60%23.60%25.60%27.60%31.60%33.60%35.60%
321.20%23.20%25.20%27.20%31.20%33.20%35.20%
420.80%22.80%24.80%26.80%30.80%32.80%34.80%
520.40%22.40%24.40%26.40%30.40%32.40%34.40%
620.00%22.00%24.00%26.00%30.00%32.00%34.00%
719.60%21.60%23.60%25.60%29.60%31.60%33.60%
819.20%21.20%23.20%25.20%29.20%31.20%33.20%
918.80%20.80%22.80%24.80%28.80%30.80%32.80%
1018.40%20.40%22.40%24.40%28.40%30.40%32.40%
1118.00%20.00%22.00%24.00%28.00%30.00%32.00%
Criteria 1:Rate 5
Criteria 2:% bucket24.00%
Expected Result:Red

<colgroup><col><col span="7"></colgroup><tbody>
</tbody>
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
So I put your table in range A1:H12. Then I put Criteria 1, i.e. 5, in cell E15. And Criteria 2, 24.4%, in cell E16. Then the formula to get the result you mentioned is

Code:
=INDEX($B$1:$H$1,MATCH(F16,INDIRECT("B"&F15+1&":"&"H"&F15+1),0))

You might need to adjust the ranges depending on where everything is in your workbook.
 
Upvote 0
I just re-read your post and think that the following formula is more what you are looking for. This one is an array formula so you need to hit Ctrl+Shift+Enter when entering the formula.

Code:
=INDEX($B$1:$H$1,MATCH(F16,ROUND(INDIRECT("B"&F15+1&":"&"H"&F15+1),2),0))
 
Upvote 0
I just re-read your post and think that the following formula is more what you are looking for. This one is an array formula so you need to hit Ctrl+Shift+Enter when entering the formula.

Code:
=INDEX($B$1:$H$1,MATCH(F16,ROUND(INDIRECT("B"&F15+1&":"&"H"&F15+1),2),0))


This seems to work, but for example if I put in 8/24% it isn't returning "Orange" comes back as #n/a
 
Upvote 0
Maybe this...

Code:
=INDEX($B$1:$H$1,MATCH(E16,ROUND(INDIRECT("B"&E15+1&":"&"H"&E15+1),2),1))

Although, 8/24 is 0.3333 and I don't see a situation where .3333 would ever return orange since orange ranges from .024 to .028.
 
Upvote 0

Forum statistics

Threads
1,215,650
Messages
6,126,012
Members
449,280
Latest member
Miahr

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