Search one table, and if the value isn’t there, fall through to the next — and the next. Nested IFERROR chains multiple lookups so the first hit wins and a clean message shows if all miss.
The example
The ID is found in the second table.
| A | B | |
|---|---|---|
| 1 | Lookup | Result |
| 2 | X-200 | from Table 2 |
The formula
The formula:
How it works
How it works:
- The inner
VLOOKUPruns first; if it finds the ID, that value is returned. - If it errors (#N/A), the surrounding
IFERRORcatches it and runs the next lookup. - Nest as many as you need; the final argument is the fallback message when everything misses.
- Order matters — put the most authoritative source first so it wins ties.
Cleaner on 365: stack the sources and let one XLOOKUP search them with its built-in not-found argument, or use =IFNA(...) instead of IFERROR when you specifically want to catch only #N/A (a real #VALUE! from bad data should probably surface, not be swallowed).
Try it: interactive demo
Look up an ID across two tables.
Variations
IFNA instead
Catch only #N/A:
Three sources
Chain deeper:
365 stacked
One XLOOKUP:
Pitfalls & errors
IFERROR hides everything. It catches #VALUE!/#REF! too — a typo in a table reference fails silently. Use IFNA to catch only true misses.
Order = priority. The first lookup that succeeds wins; arrange sources accordingly.
Exact match. Use FALSE/0 as the 4th VLOOKUP argument or you may get a wrong, non-erroring hit.
Practice workbook
Frequently asked questions
How do I try multiple lookups in Excel if the first fails?
Should I use IFERROR or IFNA?
How do I add a third source?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class