谷歌表格中的情侣匹配

问题描述 投票:0回答:1

所以我想在谷歌表格中匹配情侣。这样...

representation of my input nd output

这里,XYZ 和 PQR 是匹配的,因为两者都写下了彼此的名字。 我写了一个公式,但似乎不正确:

=ArrayFormula(if(D2:D278+F2:F278)=(F2:F278+D2:D278),"Match")
google-sheets google-sheets-formula array-formulas
1个回答
0
投票

这是一种方法:

=ARRAYFORMULA(IF((A2:A="")+(B2:B=""),,
   IF(COUNTIF(A2:A&B2:B,B2:B&A2:A),,"No ")&"Match"))

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.