How to Retrieve Employee Data from Multiple Excel Worksheets by ID
Question details
The user needs to look up and retrieve employee data from multiple individual worksheets into a summary sheet using an employee ID number.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Consolidating active employee records by matching an employee ID across several identically structured worksheets.
- Observed behavior
- A 3D reference combined with INDEX and MATCH fails to perform the multi-sheet lookup, preventing the Current Active Employees sheet from populating.
Before attempting to consolidate or look up data across multiple sheets, ensure all your individual employee worksheets share the exact same column structure and headings.
Combine Sheets with VSTACK and Search using XLOOKUP
If you must keep separate sheets for each employee, dynamically combine their data ranges using VSTACK before applying the lookup function.
Click on the cell in your 'Current Active Employees' sheet where you want the retrieved data to appear.
Type the formula to combine the sheet arrays. For example: =XLOOKUP($A2, VSTACK(Sheet1:Sheet5!$A$2:$A$100), VSTACK(Sheet1:Sheet5!$B$2:$D$100), "Not Found").
Press Enter to execute the formula, then drag the fill handle down to apply it to other employee IDs in your list.

Store All Data in a Single Master Table
The most reliable database design is to keep all employees in one master Excel Table rather than using separate sheets.
Consolidate Identical Sheets using Power Query
Use Power Query to automatically append identically structured sheets into one queryable master table.
Consolidate and Lookup Data Easily with WPS Spreadsheet
WPS Spreadsheet provides powerful data management tools, including robust lookup functions like XLOOKUP and VLOOKUP, allowing you to manage complex employee databases and retrieve data across sheets seamlessly.
- 1. Open the workbook: Launch WPS Spreadsheet and open your multi-sheet employee workbook.
- 2. Use Data Consolidate: Navigate to the Data tab and use the 'Consolidate' tool to quickly merge identically structured employee sheets into a master database.
- 3. Apply Lookup Formulas: In your target summary sheet, type =XLOOKUP() or =VLOOKUP() to accurately retrieve specific employee details by ID.
- 4. Filter and Manage: Format the resulting data as a table to easily filter active employees, track history, and perform bulk updates.

Frequently Asked Questions
Why doesn't INDEX and MATCH work with 3D references across multiple sheets?
A 3D reference (like Sheet1:Sheet3!A1) refers to the same cell or range across a block of worksheets. However, standard lookup functions like MATCH are designed to search two-dimensional arrays and cannot process a 3D depth array to find a specific row match.
What is the best way to structure employee data in a spreadsheet?
The best practice is to store all comparable data for all employees in a single core spreadsheet or formatted Table. Instead of keeping a separate sheet for each employee, use a master database and extract or filter the current status when needed.
What if I don't have the VSTACK function in my version of Excel?
If VSTACK is not available, you can use Power Query to append the sheets automatically, or manually copy and paste the data into a single master sheet before performing the lookup.




