What about $hfind ...

$hfind(name/N, text, N, M)

Searches table for the Nth item name which matches text. Returns item name.