Formuladrill

Level 3: Lookups Exercise 53 of 118

INDEX and MATCH on two conditions

An Excel formula exercise from Formuladrill. Solve it with a formula bar on a live sheet in your browser, and it is checked the moment you submit.

The task

Return the units for the region in F1 and the product in F2, in F3. Use INDEX and MATCH on both conditions at once, without adding a helper column.

What this exercise teaches

Multiplying two comparisons gives a column of 1s and 0s, and MATCH looks for the 1. This is the standard two-criteria lookup when a helper key column is not allowed. In Excel 2019 and older it has to be confirmed with Ctrl+Shift+Enter.

A hint if you get stuck

(A2:A7=F1)*(B2:B7=F2) is 1 only on the row where both conditions are true. MATCH(1, that product, 0) finds the row.

Functions used: INDEX, MATCH

Try it now, free, no account needed

Your first 15 exercises on Formuladrill are free. Open it on the practice page, solve it, and get instant feedback with a hint. A free account adds the worked solution; Pro unlocks every exercise, timed mode and the certificate.

Open this exercise

More exercises in Lookups