Break VLOOKUP conventions: using the company's full name to look up its abbreviation


It turns out VLOOKUP can find data even if the lookup value text and the source aren't exactly identical? For example, using 'HK ABC Ltd' can match 'ABC'?

=LOOKUP(1,0/FIND(C2:C5,F2),D2:D5)
=FIND(C2:C5,F2)
  • Because FIND is wrapped by LOOKUP, Excel can evaluate C2:C5 row by row.
  • That is, FIND will first evaluate =FIND(C2,F2) to find which character position C2 appears in F2.
  • So it will find {#VALUE!;#VALUE!;10;#VALUE!}
=0/FIND(C2:C5,F2)
  • Then divide 0 by {#VALUE!;#VALUE!;10;#VALUE!}
  • Because 0 divided by any number equals 0, it will produce {#VALUE!;#VALUE!;0;#VALUE!}
=LOOKUP(1,0/FIND(C2:C5,F2),D2:D5)
  • Use 1 to perform a lookup on {#VALUE!;#VALUE!;0;#VALUE!}, yielding that the 3rd item matches the condition
  • Therefore extract the content from the 3rd cell of D2:D5 as the answer
Join our "Office Suite Real-time Support" 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.