Multi-criteria lookup


When there is only one lookup value, many people know to use VLOOKUP. But if there are two or three lookup values, can VLOOKUP still work? How do you set the lookup values?

Multi-criteria lookup

This time we won't use VLOOKUP; we'll use its sibling, LOOKUP!
=LOOKUP(1,0/((E2=A2:A7)*(F2=B2:B7)),C2:C7)
=LOOKUP(1,0/((E2=A2:A7)*(F2=B2:B7)),C2:C7)
  1. Start from the middle: verify whether E2 equals each value in A2:A7. In other words, check whether A2:A7 equals "中環" — TRUE if yes, otherwise FALSE.
  2. Similarly, check whether B2:B7 equals "東涌" — TRUE if yes, otherwise FALSE.
  3. At this point Excel will have two arrays of TRUE and FALSE, and they are multiplied together, like this:
  4. Since TRUE=1 and FALSE=0, only one pair TRUE*TRUE produces 1. The rest are divided by 0, as follows:
  5. Because any number divided by 0 results in an error and cannot be compared to 1, only the entry that is divided by 1 survives. Comparing that to 1 then naturally returns $80.

Comprehensive Technical Support Solutions

We provide a range of technical support solutions to meet your needs.
Explore our core services:

man and woman wearing headphones while working in the office

Get on-demand assistance with Microsoft Excel, Word and PowerPoint. Send your question via WhatsApp, and we will help you resolve it promptly.

serious diverse students looking at laptop

Join our Online Learning Group Facebook page. Explore more than 200 tutorials and a comprehensive library of instructional videos at your own pace.

woman in yellow blazer doing a presentation

Build your team’s skills with tailored corporate training programmes. Our courses are designed around your organisation’s needs and equip employees with practical, up-to-date tools.