Lookup method for merged cells


If you encounter merged cells in Excel, be warned: the sheet can become very difficult to work with. For example, VLOOKUP and INDEX + MATCH may no longer work. If you can’t remove the merged cells, what can you do?

The formula is:
=LOOKUP("座",INDIRECT("a2:a"&MATCH(D2,$B$1:$B$11,)))
  • MATCH(D2,$B$1:$B$11,) finds the position of "Peter" in column B and returns 9.
  • INDIRECT("a2:a"&MATCH(D2,$B$1:$B$11,)): returns the referenced cell range, resulting in INDIRECT("a1:a"&9), i.e. the a1:a9 range.
  • LOOKUP("座", a1:a9) returns the last text value in the referenced range. In this formula it returns the last text in a1:a9, which is C.
[Hide] Join our 'Office Suite Real-Time Support' free Facebook group to learn more about Office. View details

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.