我有一个包含2列的.xls。
Column A Column B
++++++++++++++++++++++++++++++++++++++++++
Great | Great English Muffins
Sphinx | Sphinx Cranberry Muffins
Top Measure | Top Measure Chardonnay
问题:
如何使用Excel C中的Excel公式/函数获得以下输出?
Column A Column B Column C
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Great | Great English Muffins --> English Muffins
Sphinx | Sphinx Cranberry Muffins --> Cranberry Muffins
Top Measure | Top Measure Chardonnay --> Chardonnay
A列可能超过1个字,我想在.xls上运行此函数,其中包含大约2000行数据。
任何详细的帮助表示赞赏。
答案 0 :(得分:0)
您可以将SUBSTITUTE函数与TRIM函数结合使用,因为dbugger在他的评论中写道。 但是你必须添加一个1作为第四个参数,这样你只能替换第一个匹配项;
| Column A | Column B | Column C |
--+-------------+---------------------------+--------------------------------+
1 | Great | Great English Muffins | =TRIM(SUBSTITUTE(B1,A1, "",1)) |
2 | Sphinx | Sphinx Cranberry Muffins | =TRIM(SUBSTITUTE(B2,A2, "",1)) |
3 | Top Measure | Top Measure Chardonnay | =TRIM(SUBSTITUTE(B3,A3, "",1)) |
...