Why it works
- What it does
- XLOOKUP takes the key, the column to search and the column to return, so it can look left as well as right. Its fourth argument says what to show when nothing is found. It needs Excel 2021 or 365.
- The shape of the formula
- =XLOOKUP(key, column to search, column to return, "if not found")
- How to remember it
- Where to look and what to bring back are two separate columns: no counting.
- The usual mistake
- Hiding “not found” cases behind a blank. A missing price should say so, not quietly show nothing.
Keep practicing
- VLOOKUP: find a value in a listHow do I pull each customer’s payment terms from another sheet?Open
- INDEX and MATCH: look up to the leftHow do I find the account manager when the name column is on the left?Open
- Look up with two conditionsHow do I find a rate by zone and by service?Open
- Lesson: Look up across sheets with XLOOKUPA short lesson in your workspace: the idea, small steps on a sheet, one task with new dataOpen
Updated