XLOOKUP is the modern replacement for VLOOKUP: it looks up values in any direction, returns exact matches by default, and needs no column number counting. VLOOKUP still works fine in older files and for right-to-left lookups, but for new formulas in WPS Spreadsheet or Excel, XLOOKUP is the better choice. Here is the full XLOOKUP vs VLOOKUP comparison with practical examples.
XLOOKUP vs VLOOKUP: Which Excel Lookup Function Should You Use?
XLOOKUP vs VLOOKUP: Key Differences at a Glance
The two functions solve the same problem differently. VLOOKUP searches only the first column of a range and returns a value from a column you count manually; XLOOKUP takes a lookup array and a return array, so it can return values to the left, above, or below the match:
Direction. VLOOKUP only searches vertically and returns from columns to the right. XLOOKUP searches rows or columns in any direction.
Syntax. VLOOKUP needs a column index number that breaks when you insert a column. XLOOKUP references the return range directly, so inserts do not break it.
Match mode. VLOOKUP defaults to approximate match unless you type FALSE. XLOOKUP defaults to exact match, which prevents silent wrong results.
Errors. VLOOKUP returns #N/A for missing values; XLOOKUP lets you set a custom "not found" message.
Here is the same data lookup written both ways. The XLOOKUP formula below is compact and reads left to right:
XLOOKUP formula lookup array return
How to Use XLOOKUP in WPS Spreadsheet
WPS Spreadsheet supports XLOOKUP with the same syntax as Excel, so formulas you write in one app run in the other. Use it to pull a name, price, or status from a lookup table:
Prepare the data with a lookup column (such as Employee ID) and a return column (such as Department).
In the result cell, type =XLOOKUP( and select the lookup value cell, for example E2.
Select the lookup array (the column that contains the ID, such as A2:A6) and the return array (the column with the value you want, such as B2:B6).
Press Enter. The matching value appears, and the formula is ready to copy down with the fill handle.
Unlike VLOOKUP, XLOOKUP also returns values from columns to the left of the lookup column, so you can reorganize tables freely. The sample table below is the classic employee lookup setup:
Excel sample employee information table
When VLOOKUP Still Makes Sense
VLOOKUP is not obsolete. Keep it when you maintain files that others edit, share formulas with people on older spreadsheet versions, or work with small tables where the column index never changes. The VLOOKUP formula below stays readable when the data layout is stable:
Excel VLOOKUP function syntax example
The Best Free Alternative: WPS Office
WPS Spreadsheet runs XLOOKUP, VLOOKUP, and every other lookup formula with full .xlsx compatibility, so you can modernize old files without changing the format your team uses. It opens Excel workbooks directly, includes over 100 built-in functions, and adds a PDF toolkit for exporting reports. For a complete walkthrough of the classic function across sheets, see how to use VLOOKUP between two spreadsheets.
WPS Spreadsheet supported file formats
FAQs
What is the main difference between XLOOKUP and VLOOKUP?
XLOOKUP references a lookup array and a return array directly, works in any direction, and defaults to exact match. VLOOKUP only searches the first column, returns from columns to the right, and defaults to approximate match.
Does WPS Spreadsheet support XLOOKUP?
Yes. WPS Spreadsheet supports XLOOKUP with the same syntax as Excel, so formulas are interchangeable between the two apps.
Can I replace VLOOKUP with XLOOKUP in my existing files?
Yes. In most cases you can rewrite the formula, but keep VLOOKUP when other users on older spreadsheet versions must edit the file or when the data layout never changes.
Why does VLOOKUP return #N/A?
#N/A means the lookup value was not found in the first column, or the text does not match exactly. Check for extra spaces and number-vs-text formatting, and use FALSE for exact match.
Is XLOOKUP faster than VLOOKUP on large tables?
XLOOKUP can be noticeably faster on very large tables because it scans only the lookup array, while VLOOKUP reads the whole table range. On small sheets the difference is negligible.





