Forum Discussion
TerrorTot38
Feb 02, 2022Copper Contributor
Filtering Data Using not Exact Match
[ Spoiler ]
- 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)
TerrorTot38
Feb 03, 2022Copper Contributor
Thank you very much for the help with this solution as both look great. My only problem is with the number of players we have there is up to 191 unique pairings.
I'm happy to share a one drive file with a bigger data set as this works fine for 4 players.
I'm happy to share a one drive file with a bigger data set as this works fine for 4 players.
Martin_Weiss
Feb 04, 2022Bronze Contributor
Hi TerrorTot38
in the end, the only thing that you probably need to do is to adjust the cell range in the example to your needs.