Cellgrids Cellgrids
Home › Practice questions › XLOOKUP › Question 9

Excel XLOOKUP Practice Question: Find the name of the student with the highest score and put it in D2.

By Rinkesh Shah, founder of Cellgrids.

The question

Find the name of the student with the highest score and put it in D2.

The data

ABCD
1StudentScoreTopper
2Asha78?
3Ben91
4Chitra85
5Dev66
6Esha88
7Farah72

The yellow cell is where your answer goes.

Show answer

Answer in D2: Ben

How it works

Explanation: MAX finds the top score, and XLOOKUP uses that number to look up whose score it is.
Syntax: =XLOOKUP(MAX(B2:B7),B2:B7,A2:A7)
The highest score is 91, which belongs to Ben.

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