Data Import & Export

How to Retrieve Employee Data from Multiple Excel Worksheets by ID

Kushani NimanthikaKushani Nimanthika Nov 11, 2026 869 views

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.

Retrieve Employee Data from Multiple Excel Worksheets by ID
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 you start

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.

Solution 1Recommended

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.

1
Select the destination cell

Click on the cell in your 'Current Active Employees' sheet where you want the retrieved data to appear.

2
Enter the VSTACK combined XLOOKUP formula

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").

3
Apply and drag the formula

Press Enter to execute the formula, then drag the fill handle down to apply it to other employee IDs in your list.

Combine Sheets with VSTACK and Search using XLOOKUP
Compatibility Note: The VSTACK function is available in newer versions of Excel and Microsoft 365. Standard 3D references do not support multi-sheet lookups directly with INDEX/MATCH.

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. 1. Open the workbook: Launch WPS Spreadsheet and open your multi-sheet employee workbook.
  2. 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. 3. Apply Lookup Formulas: In your target summary sheet, type =XLOOKUP() or =VLOOKUP() to accurately retrieve specific employee details by ID.
  4. 4. Filter and Manage: Format the resulting data as a table to easily filter active employees, track history, and perform bulk updates.
Full support for advanced lookup arrays and formulas100% compatible with Microsoft Excel (.xlsx) formatsBuilt-in data consolidation tools for multi-sheet managementLightweight, free, and features a familiar user interface
microsoft office alternative - wps office

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.