Look Up Across Several Sheets

Excel Formulas › Lookup

All versionsIFERROR

When records are split across sheets — one tab per region or month — chain lookups with IFERROR: try the first sheet, and if the key isn’t there, fall through to the next.


Quick formula: search Sheet1, then Sheet2, then Sheet3:
=IFERROR(VLOOKUP(A2, Sheet1!T, 2, 0), IFERROR(VLOOKUP(A2, Sheet2!T, 2, 0), VLOOKUP(A2, Sheet3!T, 2, 0)))
Each IFERROR catches a “not found” and tries the next sheet; the last lookup runs if the others miss.

Functions used (tap for the full reference guide):

The example

An ID found on the second sheet.

AB
1LookupFound on
2ID 240Sheet2 → $3,100

The formula

Chain lookups with IFERROR:

=IFERROR(VLOOKUP(A2, Sheet1!t, 2, 0), IFERROR(VLOOKUP(A2, Sheet2!t, 2, 0), VLOOKUP(A2, Sheet3!t, 2, 0))) // fall through sheet by sheet

How it works

IFERROR turns “not found” into “try the next”:

  1. Each VLOOKUP(…, SheetN!table, …) searches one sheet.
  2. Wrap it in IFERROR whose fallback is the next sheet’s lookup.
  3. Nest them: a miss on Sheet1 tries Sheet2, a miss there tries Sheet3, and so on.
  4. The innermost lookup has no IFERROR — or wrap the whole thing in one to show a final “not found.”

Better: consolidate first. Chained lookups get unwieldy past a few sheets. In 365, VSTACK(Sheet1!t, Sheet2!t, Sheet3!t) stacks the tables so one XLOOKUP searches them all. Better still, keep the data in one table with a “sheet/region” column — splitting records across sheets is what makes this hard.

Try it: interactive demo

Live demo

Look up an ID across 3 sheets.

Found:

Variations

Stack then lookup (365)

One lookup over all sheets:

=XLOOKUP(A2, VSTACK(S1!ids,S2!ids), VSTACK(S1!v,S2!v))

Which sheet?

Return the source:

=IFERROR(IF(COUNTIF(S1!ids,A2),"S1",...),"")

Final not-found

Wrap the whole chain:

=IFERROR(chain, "Not found")

Pitfalls & errors

Order matters with duplicates. If a key exists on two sheets, the chain returns the first sheet’s value.

Gets long fast. Beyond 3–4 sheets, switch to VSTACK or consolidate the data — deep IFERROR nesting is hard to maintain.

Exact match (0/FALSE). Use exact match in each VLOOKUP so a miss truly errors and falls through.

Practice workbook

📊
Download the free Look Up Across Several Sheets practice workbook
A multi-sheet lookup with a live IFERROR chain across real tabs, the VSTACK and which-sheet variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I look up a value across multiple sheets in Excel?
Chain IFERROR around a VLOOKUP per sheet: =IFERROR(VLOOKUP(key, Sheet1!t, 2, 0), IFERROR(VLOOKUP(key, Sheet2!t, 2, 0), VLOOKUP(key, Sheet3!t, 2, 0))). Each miss falls through to the next sheet.
Is there a cleaner way in Excel 365?
Stack the tables with VSTACK and run one lookup: =XLOOKUP(key, VSTACK(S1!ids, S2!ids), VSTACK(S1!vals, S2!vals)).
What if the key is on two sheets?
The IFERROR chain returns the first sheet's value. Consolidate the data or de-duplicate if that's a problem.

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

Related formulas: Lookup across sheets · Stack arrays · Trap errors with IFERROR

Function references: IFERROR · VLOOKUP