Cellgrids Cellgrids
Home › Practice questions › XLOOKUP › Question 7

Excel XLOOKUP Practice Question: What share of total sales does the region typed in D2 have? Give it as a…

By Rinkesh Shah, founder of Cellgrids.

The question

What share of total sales does the region typed in D2 have? Give it as a decimal and put it in E2.

The data

ABCDE
1RegionSalesRegionShare
2North120000East?
3South90000
4East70000
5West60000
6Central60000

The yellow cell is where your answer goes.

Show answer

Answer in E2: 0.175

How it works

Explanation: XLOOKUP returns a normal value, so you can divide it by a SUM straight away.
Syntax: =XLOOKUP(D2,A2:A6,B2:B6)/SUM(B2:B6)
East sales are 70000. Total = 120000 + 90000 + 70000 + 60000 + 60000 = 400000. 70000 / 400000 = 0.175.

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