Excelmacros – 在一列中查找指定的值并replace为另一列的所有内容(长度是灵活的)

我有一个超过3000行的电子表格,我想用列B和C中的内容replaceA列中的特定值(v1,v2,…)和…

B,C,…列中的内容长度不固定,因此无法使用Excel中提供的REPLACE函数。
由于内容很长,因此也不可能为每一行进行编辑。 简单的例子:

A栏

{who} is the coach of {team} {who} is the coach of {team} {who} is the coach of {team} 

B栏

 Alex Ferguson Roberto Mancini Rafael Benitez 

C栏

 Man United Man City Chelsea 

D栏

 Alex Ferguson is the coach of Man United Roberto Mancini is the coach of Man City Rafael Benitez is the coach of Chelsea 

D列是我想要的(B列replace{who},c列replace{team})。

在D列中试试这个:= SUBSTITUTE(SUBSTITUTE(A1,“{who}”,B1),“{team}”,C1)

你也可以不用A列中的“{who}”事情来做:= B1&“是”&C1的教练