[excel-formula] Excel formula to remove space between words in a cell

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.

This question is related to excel-formula excel-2010

The answer is


It is SUBSTITUTE(B1," ",""), not REPLACE(xx;xx;xx).


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.