Home > database >  How to use index and match with two columns?
How to use index and match with two columns?

Time:12-22

I have the following caseenter image description here

E.g., I want the two cells in yellow to be the same. For this, I need to find the columns Score 1 and Result, and then find the row 03-Jan so that I get the actual score. Do you have any idea how to solve this? I tried with some match and index but I do not get the solution.

CodePudding user response:

Use INDEX with three matches, the first to find the correct row, while the other 2 find the correct column.

=INDEX($E:$N,MATCH($Q9,B:B,0),MATCH(R$8,$E$2:$N$2,0) MATCH(R$7,$E$3:$I$3,0)-1)

CodePudding user response:

You want to use an Index(Match),Match())

but what you really want to use is a double XLOOKUP. enter image description here

I also liked this video to help me learn all of the ways to do a 2d lookup. YouTube Video

  • Related