Index match

LebD

New Member
Joined
Sep 30, 2021
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hello

this should be an easy task for you experts:

I have 2 sheets, in the first sheet I want to lookup values from the second sheet that correspond to 3 variables.
2 of them are in columns, and one in a row.
So I write this formula:
=INDEX('Sheet2'!E3:L300,MATCH(C2,'Sheet2'!B:B,0),MATCH(B10,'Sheet2'!C:C,0),MATCH(E5,'Sheet2'!E1:L1,0))

But I have a #ref result or some random number. When I evaluate the formula, result of the first match shows row 67, second match row 7 and thrid match row 3. Those are matches.

The thing is I want the number that is at the intersection of the three MATCH.

So it is more like a 3 way lookup with index match

Ok i think i found it with this formula:
=INDEX($A$3:$D$11, MATCH(G1&G2,$A$3:$A$11&$B$3:$B$11,0), MATCH(G3,$A$2:$D$2,0))
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
68,095
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=FILTER(FILTER(Sheet2!E3:L300,(C2=Sheet2!B3:B300)*(B10=Sheet2!C3:C300)),E5=Sheet2!E1:L1)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,116
Messages
5,768,211
Members
425,459
Latest member
Danniey

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
Top