=MATCH confuses "AV." with "AVV"

I’m using the following formula to look up a stock code and return it’s line number:


Within the “HL_download” sheet there are a number of stock codes, and two are similar:



They are listed in the order above, i.e. AVV first.

The MATCH command fails to pick up “AV.”, always picking up “AVV”. The only way around this is to remove the “.” from “AV.”

Can anyone explain why?

Is there something I can to to avoid this problem?


You have regular expressions enabled in formulas (see Options - LibreOffice Calc - Calculate; General Claculations group).

Ah! Got it!


It’s the missing second T() modifier that I need. Stupid me!

Thanks for helping me onto the right path!