Many Excel users understand basic XLOOKUP but get stuck when the data is stored on different worksheets. If you’re wondering how to do an XLOOKUP in Excel with two sheets, the good news is that the process is almost the same as using XLOOKUP on a single sheet.
In this guide, you’ll learn how to use XLOOKUP in Excel with two sheets, step by step, using simple examples that work for beginners and everyday Excel users.
What Does XLOOKUP with Two Sheets Mean?
Using XLOOKUP with two sheets simply means:
- The lookup value is on one worksheet
- The lookup array and return array are on another worksheet
XLOOKUP works across sheets as long as the ranges are referenced correctly.

This makes XLOOKUP ideal for:
- Master data sheets
- Reports pulling data from a database sheet
- Large workbooks with organized data
Example Scenario: Using XLOOKUP Across Two Sheets
Sheet 1: Lookup Sheet
- Contains an Employee ID entered by the user
Sheet 2: Data Sheet
- Contains Employee IDs and Employee Names
Your goal is to return the employee name from Sheet 2 into Sheet 1.


Step 1: Identify the Lookup Value Sheet
Start on the sheet where you want the result to appear.
This sheet usually contains:
- A lookup value entered by the user
- An empty cell where the result will be displayed
For example:
- Cell B2 contains an Employee ID
- Cell C2 will display the employee name

Step 2: Identify the Data Sheet
Now switch to the sheet that contains your data.
This sheet must include:
- A lookup column (Employee IDs)
- A return column (Employee Names)
Make sure:
- Both columns have the same number of rows
- There are no extra spaces in the lookup values

Step 3: Write the XLOOKUP Formula with Sheet References
This is the most important step in learning how to do XLOOKUP in Excel with two sheets.
Basic Formula Structure
=XLOOKUP(lookup_value, Sheet2!lookup_array, Sheet2!return_array)
Example Formula
=XLOOKUP(B2, Sheet2!A2:A20, Sheet2!B2:B20)


What This Formula Does
- Looks for the value in B2 (Sheet 1)
- Searches column A on Sheet 2
- Returns the matching value from column B on Sheet 2
Step 4: Press Enter and Check the Result
After pressing Enter:
- Excel searches the second sheet
- Finds the matching value
- Displays the result on the first sheet


If the value exists, the result appears instantly.
Step 5: Handle “Not Found” Results Across Sheets
When using XLOOKUP across sheets, missing values are common. You can handle this easily.
Formula with Error Handling
=XLOOKUP(B2, Sheet2!A2:A20, Sheet2!B2:B20, "Not Found")

This keeps your workbook clean and professional.
Using XLOOKUP with Two Sheets in Real Projects
This method is commonly used when:
- One sheet stores raw data
- Another sheet is used for reporting
- Multiple users update lookup values
Because XLOOKUP does not rely on column numbers, it remains stable even if the data sheet changes.
Common Mistakes When Using XLOOKUP with Two Sheets
When learning how to use XLOOKUP in Excel with two sheets, avoid these mistakes:
- Forgetting the sheet name before the range
- Selecting lookup and return arrays of different sizes
- Renaming a sheet without updating formulas
Using clear sheet names helps prevent errors.
Frequently Asked Questions
How to do XLOOKUP in Excel with two sheets?
Reference the lookup and return ranges using the correct sheet name (e.g., Sheet2!A2:A20).
Does XLOOKUP work across different workbooks?
Yes, as long as the source workbook is open or properly linked.
Is XLOOKUP slower when using two sheets?
No, performance is usually the same.
Can I use XLOOKUP with tables across sheets?
Yes, structured table references work well.
What happens if the sheet name changes?
The formula must be updated to match the new sheet name.
Does XLOOKUP require sorted data?
No, exact match is the default.
Conclusion
Now you know how to do an XLOOKUP in Excel with two sheets and how to use XLOOKUP in Excel with two sheets correctly. Once you understand sheet references, XLOOKUP becomes just as easy across worksheets as it is on a single sheet.
This approach is perfect for building clean, scalable Excel workbooks with separated data and reports.
