Forum Discussion

TerrorTot38's avatar
TerrorTot38
Copper Contributor
Feb 02, 2022
Solved

Filtering Data Using not Exact Match

[ Spoiler ]  
  • Martin_Weiss's avatar
    Feb 03, 2022

    Hi TerrorTot38 

     

    under the assumption, that the names in a pair are in one singel cell and always separated by a &-sign, this could be one solution:

    =AND(VLOOKUP(LEFT(A7;FIND("&";A7)-2);$A$1:$B$4;2;FALSE)=TRUE;VLOOKUP(RIGHT(A7;LEN(A7)-FIND("&";A7)-1);$A$1:$B$4;2;FALSE)=TRUE)

     

    The formula is tricky because it needs to split the pair first and then do the comparison agains the list of players.

    It would be much easier, if you have the names of the pairs in two separate columns:

    =AND(VLOOKUP(A7;$A$1:$B$4;2;FALSE)=TRUE;VLOOKUP(B7;$A$1:$B$4;2;FALSE)=TRUE)

     

     

     

Resources