INDEX MATCH is a pair of functions that look up a value in a table. MATCH finds the position of what you're looking for, and INDEX returns the cell at that position from another column. Together they work in old and new versions of Excel alike (and in Google Sheets), can look to the left, and keep working when someone inserts a column.
Below: the pattern, a lookup to the left, a two-way lookup, a lookup with two conditions, and the mistakes that quietly return the wrong answer. I checked every formula and result in a real spreadsheet engine (LibreOffice Calc) and against Microsoft's function docs.
The two halves
MATCH(lookup_value, lookup_array, [match_type]) returns a position, not a value. With this list in B2:B4:
A B C
1 ID Name Price
2 101 Pen 2.5
3 102 Ink 7
4 103 Pad 4
=MATCH("Ink",B2:B4,0) returns 2 , because Ink is the second item in B2:B4.
INDEX(array, row_num) does the opposite: give it a range and a position, and it returns the value there.…