1.What is the difference between VLOOKUP and INDEX/MATCH, and when would you prefer one over the other?
Warm-upWhat a strong answer covers
- VLOOKUP searches the leftmost column of a range and returns a value a fixed number of columns to the right; it cannot look to the left of the lookup column.
- INDEX/MATCH decouples the lookup column from the return column: MATCH finds the row position, INDEX returns the value from any column, so it can look left or right.
- INDEX/MATCH does not break when columns are inserted or deleted because it references columns directly rather than by a hardcoded offset number.
- Mention XLOOKUP as the modern replacement that handles both directions, has a built-in if-not-found argument, and defaults to exact match.
Where people lose the point
- Forgetting the fourth VLOOKUP argument (range_lookup) and getting approximate-match errors because it defaults to TRUE on unsorted data.
- Claiming VLOOKUP can look to the left, which it cannot.
- Not mentioning that a hardcoded column index in VLOOKUP silently breaks when columns are added or removed.