How to Populate Employee Names and Phone Numbers in Excel
Question details
The user needs to retrieve and automatically populate employee names or phone numbers into a spreadsheet list from an existing employee directory.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Managing an employee database and matching records across different spreadsheets to fill in missing contact details.
- Observed behavior
- The user requires functional lookup formulas to accurately return corresponding data, such as phone numbers, into adjacent cells based on a matching employee name.
Ensure both your target list and the employee directory are in the same workbook for easier referencing. Verify that the lookup values (e.g., employee names) are spelled identically in both lists without hidden trailing spaces.
Use VLOOKUP to Return Adjacent Directory Data
VLOOKUP is the most straightforward method to find a specific name in your directory and return data from a column to the right, such as a phone number.
VLOOKUP searches for a value in the leftmost column of your specified directory range and returns a value in the same row from a column you specify.
Click on the cell where you want the populated phone number to appear (e.g., B2).
Type the formula =VLOOKUP(A2, Sheet1!A:B, 2, FALSE). In this example, A2 contains the lookup name, Sheet1!A:B is the directory range, 2 is the column index containing phone numbers, and FALSE ensures an exact match.
Press Enter to execute the formula. Click the bottom-right corner of the cell and drag the fill handle down to populate the phone numbers for the rest of the employee names.

Use INDEX and MATCH for Non-adjacent Columns
If the phone number column is located to the left of the employee name in your directory, or scattered across non-adjacent columns, use the INDEX and MATCH combination.
Easily Populate Employee Directories with WPS Spreadsheet
WPS Spreadsheet fully supports advanced data lookup formulas like VLOOKUP, HLOOKUP, and INDEX/MATCH. You can easily manage large employee directories, pull contact information across sheets, and ensure high accuracy using intuitive formula wizards.
- 1. Open your data in WPS: Launch WPS Spreadsheet and open the workbook containing your employee directory and target list.
- 2. Use the Function Wizard: Click on the 'Formulas' tab and select 'Insert Function'. This tool guides you step-by-step to prevent syntax errors.
- 3. Configure your Lookup: Search for 'VLOOKUP' or 'INDEX', input your lookup value, directory array, and column index into the dedicated fields.
- 4. Apply and populate: Click 'OK' to fetch the data. Drag the fill handle down to automatically populate the remaining phone numbers for all employees.

Frequently Asked Questions
Why is my VLOOKUP formula returning an #N/A error?
An #N/A error usually indicates that the exact lookup value cannot be found in the directory. Check for typos, extra hidden spaces, or mismatching data formats (such as numbers formatted as text) in your lookup and directory columns.
Can I look up multiple fields like email and phone number at the same time?
Yes. You can drag your VLOOKUP formula across multiple columns, but you will need to adjust the column index number for each specific field. Alternatively, you can use modern functions like XLOOKUP or array formulas to return multiple fields at once.
Does INDEX and MATCH work across different workbooks?
Yes, you can reference ranges in an entirely different workbook. Keep both files open, start typing your formula, and click into the external workbook to select your ranges. The formula will automatically generate the correct file path references.
What happens if there are duplicate employee names in the directory?
VLOOKUP and MATCH functions will always return the result associated with the very first match they find in the array, scanning from top to bottom. To differentiate employees with the same name, it is highly recommended to use unique identifiers like Employee IDs instead.




