Use VLOOKUP to Populate Shift Times in an Excel Attendance Tracker
Question details
The user wants to automatically retrieve employee shift times from a master Employee data sheet and populate them into a Register or Attendance Tracker sheet.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Managing an employee attendance tracker and automating the data entry for scheduling.
- Observed behavior
- Needs an automated formula solution to pull specific shift times using a single identifier (like Employee ID) or multiple criteria (Employee ID and Date).
Verify that your Employee data sheet contains accurate shift times and that there are no extra spaces or formatting differences in the employee IDs across both sheets.
Use VLOOKUP to Find Shift Times by a Single Identifier
Best for straight-forward scheduling where you only need to pull a fixed shift time for an employee based on their name or ID.
The VLOOKUP formula searches for a matching employee identifier in the first column of your source range and returns the corresponding shift time from the specified column.
Open your Register sheet and click the cell where the first employee's shift time should appear.
Type the formula =VLOOKUP(A2,Employee!$A$2:$D$100,3,FALSE), assuming A2 contains your lookup identifier, the source table is in the 'Employee' sheet spanning A2 to D100, and the shift time is located in the 3rd column.
Press Enter to execute the formula, then click and drag the fill handle at the bottom right corner of the cell down to populate the rest of the attendance tracker.

Use INDEX and MATCH for Multiple Criteria (Employee and Date)
Use this method when an employee's shift time varies depending on the specific date of the shift.
Manage Attendance Trackers Easily with WPS Spreadsheet
Streamline employee scheduling using WPS Spreadsheet. It fully supports powerful functions, handles complex formulas, and perfectly renders Excel files, making roster management effortless.
- 1. Open Your Tracker: Launch WPS Spreadsheet and open your existing attendance tracker Excel file.
- 2. Input Lookup Formulas: Select the target shift time cell and input your standard VLOOKUP or INDEX formula.
- 3. Drag to Populate: Double-click the small square icon in the bottom-right corner of the cell to autofill the times for all employees instantly.

Frequently Asked Questions
Why is my VLOOKUP formula returning an #N/A error?
This error occurs if the lookup value (such as the Employee ID) cannot be found in the source table. It can also happen if there are hidden trailing spaces in the text. Make sure the spelling and formatting match exactly between both sheets.
Do I need to lock the lookup range in my formula?
Yes, adding dollar signs (like $A$2:$D$100) creates an absolute reference. This prevents the source range from shifting downward when you copy or drag the formula to other rows in your attendance tracker.
Can I use XLOOKUP instead of INDEX and MATCH for multiple criteria?
Yes, in modern spreadsheet versions, including the latest WPS Office, you can simplify multiple criteria lookups by combining conditions with an ampersand (&). For example: =XLOOKUP(A2&B2, Employee!$A$2:$A$100&Employee!$B$2:$B$100, Employee!$C$2:$C$100).




