Ever spent ten minutes rearranging columns just because VLOOKUP refused to look to the left—only to have someone insert a new column a week later and silently break your report? XLOOKUP solves both headaches by letting you pick your lookup and return ranges separately.
Look Up Values Left or Right with XLOOKUP
See Why VLOOKUP Breaks on Left or Inserted Columns

In our HR table, Department sits in Column A while Emp ID is in Column B, so VLOOKUP returns #N/A right away. Even when the return column is on the right, VLOOKUP relies on a static column number like 3 that breaks the moment a column is inserted.
| Feature | VLOOKUP | XLOOKUP |
|---|---|---|
| Lookup direction | Right only | Left, right, or horizontal |
| Inserting a column | Breaks column index | Updates automatically |
| Default match mode | Approximate (needs FALSE) | Exact match by default |
| Missing value | Returns #N/A | Built-in [if_not_found] |
Pick Lookup and Return Arrays Separately

Click D2 and type =XLOOKUP(C2, B2:B4, A2:A4). You select the Lookup ID (C2), the Emp ID column (B2:B4), and the Department column (A2:A4)—even though it's on the left.
Notice you don't have to type FALSE or 0 at the end: XLOOKUP defaults to an exact match automatically.
Add a Built-In Fallback for Missing IDs

Add a comma and type "Not Found" as the fourth argument so your formula reads =XLOOKUP(C2, B2:B4, A2:A4, "Not Found"). Press Enter and drag it down through D4—missing IDs like E999 show Not Found cleanly without wrapping everything in IFERROR.
Look Up Horizontally Without HLOOKUP

XLOOKUP isn't limited to vertical columns. If your headers run across a row—like Q1 through Q4 in A1:D1 with revenue below in A2:D2—the exact same formula =XLOOKUP(A4, A1:D1, A2:D2) looks horizontally and replaces HLOOKUP too.
Conclusion
Once you switch to XLOOKUP, you stop rearranging tables just to make a lookup work. It searches left, right, or horizontally across rows, defaults to an exact match automatically, and never breaks when someone inserts a column.
Adding that fourth argument—like "Not Found"—also keeps your reports clean without needing extra IFERROR wrappers.
Try It Live in the Sheet
Your HR directory lists Department to the left of Emp ID, which breaks classic VLOOKUP right out of the gate.
Use XLOOKUP in D2:D4 to pull the matching department for each Lookup ID, and make sure missing IDs like E999 show Not Found instead of an #N/A error.