Forum Discussion

Sander1988's avatar
Sander1988
Copper Contributor
Aug 03, 2022
Solved

Search cell text for maximum reference value

Hello,   My excel file contains substances (e.g. "A"), which have multiple comma-separated labels in a single cell (e.g. "H311, H331, H207, R22). The labels correspond to 2 tables and each label ha...
  • Harun24HR's avatar
    Aug 03, 2022

    Sander1988 

    Try below formula. See the attached file.

    =LET(x,FILTERXML("<t><s>"&SUBSTITUTE([@Labels],",","</s><s>")&"</s></t>","//s"),MAX(XLOOKUP(x,H_labels[label],H_labels[Category],0,0),XLOOKUP(x,R_labels[Label],R_labels[Category],0,0)))

     

     

Resources