Excel公式来删除单元格中单词之间的空格 [英] Excel formula to remove space between words in a cell
问题描述
例如:说我有一个像保罗儿子这样的词,我必须把它当作保尔森。
输入:保罗儿子
输出:保尔森
。
在某些单元格中,我有数据,如 mic-li
,当这种类型的单词来,它不应该替换任何东西,它应该只删除两个单词之间的空格。
假设数据在B列在C列中写下公式:
= SUBSTITUTE(B1,,)
复制并将公式粘贴到整个C列。
编辑:使用逗号或分号作为参数分隔符取决于您的区域设置(我必须使用分号)。我觉得这很奇怪感谢@tocallaghan和@pablete指出这一点。
I've a huge data in excel file.
For eg: say i've a word like paul son,i've to make it as paulson.
input:paul son
output:paulson
.
In some cells ,i've data like mic-li
,when this type of words come,it should not replace any thing,it should only remove spaces in between words.
Suppose the data is in the B column, write in the C column the formula:
=SUBSTITUTE(B1," ","")
Copy&Paste the formula in the whole C column.
edit: using commas or semicolons as parameters separator depends on your regional settings (I have to use the semicolons). This is weird I think. Thanks to @tocallaghan and @pablete for pointing this out.
这篇关于Excel公式来删除单元格中单词之间的空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!