XLOOKUP in Excel & Google Sheets: Worked Examples & Fixes

Look up matching records cleanly across columns without counting column numbers or worrying about inserted columns breaking your table.

Basic XLOOKUP Syntax

The core structure of XLOOKUP separates the search column from the return column:

=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found])

Worked Example: Looking Up Product Prices

Suppose A2 holds a product SKU you want to price-check against a reference table in columns D and E:

=XLOOKUP(A2, $D$2:$D$100, $E$2:$E$100, "Not Found")
Cell A2 (Searched SKU) Col D (SKU List) Col E (Unit Price) XLOOKUP Result
SKU-104 SKU-104 $45.00 $45.00
SKU-999 SKU-105 $60.00 Not Found

Common Mistakes & How to Prevent Them

Practical Tip: Want to test different cell ranges or switch between Excel and Google Sheets syntax? Use the Formula Finder to customize your expression and copy it in one click.
Editorial & Accuracy Note: Reviewed for accuracy across Microsoft Excel and Google Sheets. Part of the Know Unlimited Excel & Google Sheets Hub.