Index a column based on matching 2 separate values

Pauljj

Well-known Member
Joined
Mar 28, 2004
Messages
2,047
I need to index column H based on matching E2 in column B and matching F2 in column C. It may be worth noting that I am indexing text not numerics. As I had planned to use the following array formula but this only works with numerics

=MIN(IF(B1:B5000=E2,IF(C1:C5000=F2,H1:H5000)))

It is also worth noting that there maybe dupicates of E2 in column B and duplicates if F2 in column C but the combination of E2 and F2 will be unique

I understand concatenating might be the only option but its just not idea

Thanks in advance
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Like this?

=INDEX(H1:H5000,MIN(IF(B1:B5000=E2,IF(C1:C5000=F2,ROW(H1:H5000)))))

Remember to confirm with Ctrl+Shift+Enter.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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