Excel INDEX Practice Question: Names are in A2:A8 and sales in B2:B8. Show the name of the salesperson with…
The question
Names are in A2:A8 and sales in B2:B8. Show the name of the salesperson with the highest sales. Put it in D2.
The data
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Salesperson | Sales | Result | |
| 2 | Amit | 84200 | ? | |
| 3 | Neha | 91500 | ||
| 4 | Rahul | 76800 | ||
| 5 | Priya | 88750 | ||
| 6 | Karan | 68300 | ||
| 7 | Sneha | 99100 | ||
| 8 | Rohan | 72400 |
The yellow cell is where your answer goes.
Show answer
Answer in D2: Sneha
How it works
Explanation: MAX finds the highest sales figure, MATCH finds its position in the list and INDEX returns the name from the same position.
Syntax: =INDEX(A2:A8,MATCH(MAX(B2:B8),B2:B8,0))
The highest sales are 99100, which is Sneha.
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 →INDEX syntax
=INDEX(array, row_num, [column_num])
Returns the value at a given row/column position within a range. Pulling the Nth item from a list — often paired with MATCH to look up in any direction. Full INDEX guide.
More INDEX practice questions
- Using INDEX, return the third item name from the list and put it in D2.
- Return the price of the fourth product in the list and put it in D2.
- Using INDEX, return the units for the second department in the third quarter and put it…
- The position number is typed in E2. Return the name at that position from the list and…
- Using INDEX with COUNTA, return the most recent (last filled) log entry and put it in…
- The row and column positions are typed in E2 and F2. Return the matching value from the…
- Using INDEX with ROWS, return the second-last name in the list and put it in D2.
- The From and To positions are typed in D2 and E2. Find the revenue growth (revenue at To…
All practice questions · Excel exercises · Interview prep · Cheat sheet