This is one of those problems that isdifficult with VLOOKUP, but easy withINDEX and MATCHorXLOOKUP.

Both options are explained below.

The result from MATCH is 3, since the ID 1003 occurs in the third row of the table.

Excel formula: INDEX and MATCH exact match

This value is returned directly to theINDEX functionasrow_num.

The only difference is the array given to INDEX.

Locking references

The formulas above use normal references to make them easier to read.

Excel formula: INDEX and MATCH approximate match

you’ve got the option to use INDEX to retrieve individual values, or entire rows and columns.

MATCH supports approximate and exact matching, andwildcards(* ?)

Excel formula: INDEX and MATCH case-sensitive

Excel formula: Two-way lookup with INDEX and MATCH

Excel formula: Join tables with INDEX and MATCH

Excel formula: Left lookup with VLOOKUP

Excel INDEX function

Excel MATCH function

Article image

Article image