Forum Discussion

1 Reply

  • mtarler's avatar
    mtarler
    Silver Contributor

    CK1231565  I couldn't open your links but I attached a workbook with some LAMBDA functions I wrote for NearMatches and NearMatches2. 

    In the simple case if the short name is a truncation of the long name you can simple do a search for the short name starting the names in the long name list something like this:

    =IFERROR( XMATCH( [short_name], LEFT( [long_name_list], LEN( [short_name] ) ) , "none" )

    But this doesn't work if the short name list isn't just a truncation of the long name (e.g. "Google Analytics Corporation" vs "Google Corp"). So the LAMBDA function in the attached file finds the best match (i.e. the most characters match) and you can set a minimum.  So you can say at least 5 characters must match so you don't get "GooGoo Girls" to match "Google ..." and even if you did set a min of only 3 then it would still return "Google ..." instead of "GooGoo" because it matches more characters.

Resources