Lookup across different rows


 

VLOOKUP is usually used when the lookup value and the result are in the same row. But if they are in different rows, can VLOOKUP handle it?

No — VLOOKUP can only search within the same column, so this time we introduce using INDEX + MATCH together. The formula is:
=INDEX($F$3:$F$12,MATCH(B2,$E$2:$E$11))
  • MATCH(B2,$E$2:$E$11) asks Excel to search for the value in B2 within E2:E11 — it finds "D" at the 10th position, returning10。
  • Then =INDEX($F$3:$F$12,10) tells Excel to take the 10th cell from F3:F10 as the result, yielding "DD".
  • The key is that MATCH's range starts at row 2 while INDEX's range starts at row 3, producing a misalignment. VLOOKUP cannot reproduce this effect.
  • So INDEX + MATCH's lookup concept is based on relative positions. Once you understand this, you'll find INDEX + MATCH may be more useful than VLOOKUP!

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.