Cellgrids Cellgrids
Home › Practice questions › XLOOKUP › Question 2

Excel XLOOKUP Practice Question: Find the name of the employee whose ID is typed in E2 and put it in F2.

By Rinkesh Shah, founder of Cellgrids.

The question

Find the name of the employee whose ID is typed in E2 and put it in F2.

The data

ABCDEF
1Emp IDNameDeptIDName
2E-401KavitaLegalE-403?
3E-402LokeshHR
4E-403MeenaFinance
5E-404NikhilIT
6E-405OmSales

The yellow cell is where your answer goes.

Show answer

Answer in F2: Meena

How it works

Explanation: You pick the lookup column and the return column separately, so there is no column number to count.
Syntax: =XLOOKUP(E2,A2:A6,B2:B6)
E-403 is in the third row of the list. The matching name in column B is Meena.

Try it yourself in the live sheet

Type your formula in the highlighted cell and get instant feedback. Free, no Excel install needed.

Try this question in the live sheet →

XLOOKUP syntax

=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found])

The modern replacement for VLOOKUP — searches any column and returns from any other, no column counting needed. XLOOKUP is used to pull matching data from one part of a workbook into another. Full XLOOKUP guide.

More XLOOKUP practice questions

All practice questions · Excel exercises · Interview prep · Cheat sheet