Forum Discussion
ExcelAt40 β Day 11: Lookup Wars β VLOOKUP vs XLOOKUP
Below the mainly highlight:
VLOOKUP
β’ Looks up values vertically, always searching the leftmost column of your range.
β’ Requires you to provide a column index number to return a value from.
β’ Can only search from left to right; it cannot look to the left.
β’ Needs to be wrapped inside an IFERROR function to handle errors cleanly.
β’ Is prone to breaking if columns are added or rearranged because of the fixed index.
XLOOKUP
β’ Can look both vertically and horizontally, more flexible.
β’ Instead of an index, you directly specify the return range.
β’ Has a built-in argument to specify what to return if the lookup value isnβt found, so no need for IFERROR.
β’ More robust against changes in your data layout because it refers to ranges directly.
β’ Supports exact, approximate, and wildcard matches natively.