Regex 基于多个列在工作表中查找重复项

Regex 基于多个列在工作表中查找重复项,regex,google-sheets,google-sheets-formula,array-formulas,gs-conditional-formatting,Regex,Google Sheets,Google Sheets Formula,Array Formulas,Gs Conditional Formatting,我想将一张图纸中的一行与另一张图纸中的一行进行匹配。(使用条件格式)。但此匹配基于多个列 ​ ​ 表1 |Country|Year|Location| |India |2001|D1 | |Russia |1999|D3 | |Kenya |1001|D4 | |India |1999|D2 | ​ 第2页 |Country |Year|Destination| |India |2000|DA1 |

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

表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
应该突出显示

尝试:

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