What the video covers
Show how to write and use XLOOKUP formulas in Google Sheets for common lookup needs: standard left/right lookup, custom 'not found' text, wildcard matching, reverse search, and returning multiple columns.
Watch the video on YouTubeStep-by-step instructions
- Open your Google Sheet and identify the lookup value cell
Locate the cell that contains the value you will search for (for example A2 holding an Employee ID or SKU). - Choose the search range and return range(s)
Decide which column contains the lookup keys (search range) and which column(s) should be returned (return range). Ranges don’t need to be left‑to‑right relative to each other. - Enter a basic XLOOKUP formula for a rightward or leftward lookup
In the cell where you want the result (for example B2) enter: =XLOOKUP(A2, D2:D100, E2:E100) — A2 is the lookup value, D2:D100 is the search range, and E2:E100 is the return range. To look left, simply make the return range refer to a column left of the search range (for example B2:B100). - Add a custom fallback text to handle missing matches
Use the fourth parameter to return a friendly message instead of an error: =XLOOKUP(A2, D2:D100, E2:E100, "Not Found"). This replaces the need for IFERROR/IFNA wrappers. - Use wildcard matching and reverse search when needed
For wildcard searches include a match_mode of 2 and use * or ? in the lookup: =XLOOKUP("App*", D2:D100, E2:E100, "No Match", 2). To return the last match (bottom‑to‑top), add a search_mode of -1: =XLOOKUP(A2, D2:D100, E2:E100, "Not Found", 0, -1). - Return multiple columns at once
Point the return range to multiple adjacent columns to spill several values: =XLOOKUP(A2, D2:D100, E2:G100). The matching row’s values from columns E:G will populate across the current row automatically.
Watch the video
Play tutorial
Why it matters
XLOOKUP removes VLOOKUP's limitations (can't look left, fragile column indexing) and replaces more complex INDEX/MATCH constructions. Using XLOOKUP yields simpler, more robust formulas that automatically handle missing values, support wildcards, search direction, and spill multiple return columns.
Check your result
After following the steps you should have XLOOKUP formulas that return expected values for known lookup keys, return a custom message when a key is missing, match wildcard patterns, return the last matching item when searching bottom‑to‑top, and spill multiple columns when the return range includes adjacent columns.
Troubleshooting
– If results are #N/A or blank: confirm the lookup value and search range use the same data type (no stray spaces, numbers stored as text vs number). – If wildcard searches don't work, ensure the match mode parameter is set to wildcard matching (e.g., 2) and your lookup value contains * or ?. – If a multi‑column return doesn't spill, check there is no data blocking the cells to the right of the formula. – If formulas return unexpected matches, verify match_mode and search_mode parameter values and that ranges are aligned (same number of rows).