Forum Discussion

Vnibsen89's avatar
Vnibsen89
Copper Contributor
Oct 17, 2023
Solved

finding several words in a column and avoiding duplicates

Hi everyone   I have a very long question, so please bear with me as i try to explain my issue. I have list of several different types of analysis:   Moisture/Loss on drying Ash/Residue on ...
  • Patrick2788's avatar
    Oct 17, 2023

    Vnibsen89 

    Perhaps this one:

    =LET(
        FindTerms, LAMBDA(row,
            LET(words, TEXTSPLIT(row, "/"), SUM(IFNA(XMATCH("*" & words & "*", ListofTerms, 2), 0)))
        ),
        BYROW(terms, FindTerms)
    )

    There's still the issue of using a wildcard match with terms with few characters such as "as" where we get a false positive where it matches "ashes".

     

Resources