XLOOKUP / HR Manager

Quickly Locating Employee Email Addresses

An HR manager needs to quickly find an employee's email address to send important announcements, respond to inquiries, or update records, using only their Employee ID. Manually sifting through a large employee roster is inefficient and time-consuming.

formula.xlsx
=XLOOKUP("E103",A2:A5,D2:D5,"Employee Not Found")

How it works: This XLOOKUP formula searches for the specified Employee ID ("E103") within the 'EmployeeID' column (A2:A5). Upon finding a match, it retrieves and returns the corresponding email address from the 'Email' column (D2:D5). If the Employee ID is not found, the formula displays 'Employee Not Found', preventing errors and providing clear feedback.

Data Setup

EmployeeID Name Department Email
E101 Alice Smith Sales alice.s@company.com
E102 Bob Johnson Marketing bob.j@company.com
E103 Charlie Brown HR charlie.b@company.com
E104 Diana Prince IT diana.p@company.com

Step-by-Step Guide

1

Input the Employee ID you need to look up (e.g., "E103").

2

Define the lookup array, which is the range containing all Employee IDs (A2:A5).

3

Define the return array, which is the range containing the corresponding Email addresses (D2:D5).

4

Add a custom message for 'if_not_found' (e.g., "Employee Not Found") to handle cases where the ID isn't present.

Explore More