如果另一个单元格包含特定 characters/strings 或其部分,如何合并两个单元格的内容

How to combine the contents of two cells if a another cell contains specific characters/strings or parts thereof

问题:

我有包含字符串的单元格,例如:

Cell A     |   Cell B     |     Cell C     |     Cell D   |  Cell E  | .....
1234 256   |  5424H-84    |  47-1223-7z-334|  TARGET CELL | 12 fw e  | .....

我需要什么公式来查看单元格 C 中的字符“7z”甚至“23”或“z-3”的内容,如果存在则将单元格 A 和单元格 B 合并到单元格 D ?

我已经尝试了很多我能想到的事情,但要么得到 0 行,要么得到空行...

尝试:

=IF(IFERROR(SEARCH("7z",C1,1),-1)>0,CONCATENATE(A1,B1))