使用 Excel 或 Google SpreadSheets 公式为单元格中的每个单词添加一个加号
Add a plus sign to every word in a cell using Excel or Google SpreadSheets formula
我有一列包含不同产品的名称,例如:
A
1 red car
2 blue whale
3 red carpet in the closet
4 star wars dvd extra especial thing
5 whatever with your however
我想在 B 列中:
B
1 +red +car
2 +blue +whale
3 +red +carpet +in +the +closet
4 +star +wars +dvd +extra +especial +thing
5 +whatever +with +your +however
我正在使用 Google 电子表格,但是 Excel 的解决方案就可以了!
如果实现这一点的唯一方法是使用自定义公式,我更喜欢 Google 电子表格公式。虽然,如果可能的话,我真的很想知道一个原生公式。
给你。将其放入单元格 B1:
="+"&SUBSTITUTE(A1," "," +")
现在向下复制。
为避免在输入新数据时必须向下填写和重复此操作,请在 Google 表格上尝试
=ArrayFormula("+"®EXREPLACE(FILTER(E:E,LEN(E:E))," "," \+") )
我有一列包含不同产品的名称,例如:
A
1 red car
2 blue whale
3 red carpet in the closet
4 star wars dvd extra especial thing
5 whatever with your however
我想在 B 列中:
B
1 +red +car
2 +blue +whale
3 +red +carpet +in +the +closet
4 +star +wars +dvd +extra +especial +thing
5 +whatever +with +your +however
我正在使用 Google 电子表格,但是 Excel 的解决方案就可以了!
如果实现这一点的唯一方法是使用自定义公式,我更喜欢 Google 电子表格公式。虽然,如果可能的话,我真的很想知道一个原生公式。
给你。将其放入单元格 B1:
="+"&SUBSTITUTE(A1," "," +")
现在向下复制。
为避免在输入新数据时必须向下填写和重复此操作,请在 Google 表格上尝试
=ArrayFormula("+"®EXREPLACE(FILTER(E:E,LEN(E:E))," "," \+") )