Use INDEX function 1st step: 2nd step: Combine INDEX with COMPARISON 1st step: 2nd step:
With the INDEX function of Excel you can read out a value based on the row and column position of a matrix. Sounds pretty simple actually. And that's it! To understand what the function does and how to use it correctly, read this guide.
You can also read tips about controls and formulas in Excel here.
Use INDEX function
= INDEX (A1: E5, B7, B8)
The result in our example is the value 54, because this is in the cell where row 4 and column 4 cross.
Combine INDEX with COMPARISON
The INDEX function is rarely used alone. Because in order to look for a value, you have to know where it is within a range. And in a table with hundreds of entries, this is very tedious and time-consuming. Therefore INDEX is often used together with COMPARE..
= INDEX (A1: E5; COMPARE (B7; A1: A5; 0); COMPARE (B8; A1: E1; 0))
In our example, the result is the value 23, since this is located at the intersection of row 3 and column D.