Day 6: INDEX & MATCH
5 questions · Excel Interview Preparation
Explain how INDEX works on its own.
INDEX(array, row_num, [col_num]) returns the value at a specific position in a range. =INDEX(A1:A100, 5) returns the 5th value in column A. =INDEX(A1:D100, 5, 3) returns the value in row 5, column 3 of the range A1:D100. By itself, INDEX is useful for extracting a specific item from a list. Combined with MATCH, it becomes the most powerful lookup tool in Excel.
Explain how MATCH works on its own.
MATCH(lookup_value, lookup_array, [match_type]) returns the POSITION of a value in a range — not the value itself. =MATCH("Delhi", A1:A100, 0) returns the row number where "Delhi" first appears. match_type 0 = exact match (always use this for data lookups). match_type 1 = find largest value less than or equal to lookup (requires ascending sort). match_type -1 = find smallest value greater than or equal to lookup (requires descending sort).
Write an INDEX-MATCH formula to look up a customer name by CustomerID.
Assume CustomerID is in column B and CustomerName is in column A of your lookup table: =INDEX(A2:A100, MATCH(E2, B2:B100, 0)). This reads: find the position of E2 in column B, then return the value at that position from column A. Unlike VLOOKUP, the return column (A) is to the LEFT of the lookup column (B) — this is not possible with VLOOKUP.
How do you do a two-criteria lookup using INDEX-MATCH?
Use an array version that checks two conditions simultaneously: =INDEX(C2:C100, MATCH(1, (A2:A100=F2)*(B2:B100=G2), 0)). In Excel 365, this works without Ctrl+Shift+Enter. In older Excel, press Ctrl+Shift+Enter to enter as an array formula. This returns the value from column C where both column A matches F2 AND column B matches G2. More readable alternative in Excel 365: use XLOOKUP with multiple criteria.
What is the advantage of INDEX-MATCH over VLOOKUP in a large dataset?
Three practical advantages: (1) No column direction restriction — can return left, right, up, or down. (2) Column references do not break when columns are inserted — VLOOKUP uses a number like col_index_num=3, which shifts if a column is added before it. INDEX-MATCH references the actual column. (3) Slightly faster on very large datasets because MATCH searches only one column rather than loading the entire table_array. The most important advantage in real work is the flexibility — the performance difference is noticeable only on hundreds of thousands of rows.
Want 1:1 Excel coaching?
Join EVIKA Academy for live Excel training, real projects, and placement support in Delhi NCR.
Book Free Demo →