根据多列Google工作表在工作表中查找重复项

时间:2019-11-11 12:15:45

标签: regex google-sheets google-sheets-formula array-formulas gs-conditional-formatting

我想将一张纸中的一行与另一张纸中的一行匹配。 (使用条件格式)。但是此匹配是基于多列的。

https://docs.google.com/spreadsheets/d/18Cr13bQZ2ZZnb1Y2Nq6aMFhHXhFTZsioJ3M4S1fzURQ/edit?usp=sharing

第1张纸

|Country|Year|Location|    
|India  |2001|D1      |
|Russia |1999|D3      |
|Kenya  |1001|D4      |    
|India  |1999|D2      |

第2张纸

|Country  |Year|Destination|    
|India    |2000|DA1        |    
|Bulgaria |1999|DA3        |    
|Wakanda  |1001|DA4        |    
|India    |1999|DA2        |

仅应突出显示India-1999

1 个答案:

答案 0 :(得分:0)

尝试:

=ARRAYFORMULA(REGEXMATCH($A2&$B2, TEXTJOIN("|", 1, 
 INDIRECT("Sheet1!A2:A")&INDIRECT("Sheet1!B2:B"))))

enter image description here

相关问题