问题
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.
回答1:
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.
回答2:
It is SUBSTITUTE(B1," ","")
, not REPLACE(xx;xx;xx)
.
回答3:
Steps (1) Just Select your range, rows or column or array , (2) Press ctrl+H , (3 a) then in the find type a space (3 b) in the replace do not enter anything, (4)then just click on replace all..... you are done.
来源:https://stackoverflow.com/questions/9190764/excel-formula-to-remove-space-between-words-in-a-cell