Formulyo

Excel 365 + Google Sheets · XLOOKUP

Stop using VLOOKUP

Find any value in another table, left or right, with a clean message when it's missing.

The formula

=XLOOKUP(B2, Clients!A:A, Clients!B:B, "Not found")

What each part means

Example

Before
ABC
1OrderClient IDClient
2#1041C-07
3#1042C-12
4#1043C-03
5#1044C-99
6#1045C-07
After
ABC
1OrderClient IDClient
2#1041C-07Laura Gómez
3#1042C-12João Silva
4#1043C-03Priya Shah
5#1044C-99Not found
6#1045C-07Laura Gómez

Step by step

  1. Click cell C2.
  2. Type the formula: =XLOOKUP(B2, Clients!A:A, Clients!B:B, "Not found")
  3. Press Enter.
  4. Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning