Look up records across multiple sheets with automatic fallback
Write a multi-sheet lookup formula that searches a primary sheet and falls back to secondary sheets when an item is missing.
Text prompt for ChatGPT and Claude
You get: Modern Formula, legacy Formula and how the Fallback Logic Works
Prompt
You are an enterprise spreadsheet expert. Create a lookup formula that searches a record across multiple worksheets sequentially until a match is found.
- Provide a modern Excel solution using XLOOKUP and IFERROR or nested XLOOKUPs.
- Provide an older Excel fallback using INDEX/MATCH with IFERROR.
- Include exact handling for cases where the record is absent from all sheets.
- Ensure ranges are absolute so formulas copy down without breaking.
Output format:
1. Modern Formula (Excel 365 / 2021)
2. Legacy Formula (Excel 2019 and older)
3. How the Fallback Logic Works
4. Setup Checklist
Here are my sheet names, lookup column, and return column details:Example output
Paste your sheet names and column layouts into ChatGPT, Claude, or Gemini after the prompt. If you have more than two fallback sheets, ask the model to adjust the formula using VSTACK or LAMBDA.
Reuse it: Use in a workflowTurn into a skillAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Pick XLOOKUP, VLOOKUP or INDEX MATCH and Get the Exact Formula
You get one recommended lookup method for your Excel version and data layout, a paste-ready formula, and clear handling for values that have no match.
Compare spreadsheet columns and highlight missing items
Generates straightforward formulas to match two lists, spot missing entries like unpaid invoices, and flag discrepancies instantly.
Write an Excel or Google Sheets Formula from Plain English
Get a ready-to-paste Excel or Google Sheets formula built for your version and columns, with a step-by-step walkthrough and one test case to check it.
Build a 3D sum formula across multiple monthly tabs
Create a reliable 3D formula to aggregate identical cell references across multiple monthly worksheets into a single summary sheet.
Fix divide-by-zero errors in Excel variance formulas
Eliminate #DIV/0! errors in budget variance calculations with clean, professional handling for zero or missing values.
Highlight matching values across two separate spreadsheet columns
Generate the exact conditional formatting formula and click-by-click instructions to mark duplicate values found across two columns.
- Categorize bank statements with keyword lookup rules
- Consolidate separate spreadsheet tabs into a master rollup
- Convert dragged Google Sheets formulas to ARRAYFORMULA
- Deduplicate spreadsheet rows keeping latest entry
- Translate plain English requests into Google Sheets QUERY
- Write Google Sheets REGEX Formulas to Extract and Clean Text