# how do you collapse multip words into 1 big word in a cell

#### tankan

##### New Member
hi

iv'e got a few words in 1 cells in a column.

iv'e got a search facilyt based on collapsing these words..

so if cell has

cat in the hat went to bat

it should convert into one word, (remove spaces)

catinthehatwenttobat

### Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a \$25,000 loan, 5% annual interest, 60 month loan.
Use Replace Tool

Just use "replace", found on the "edit" menu , and replace all spaces with no spaces .

eg in "Find What" just type one space by hitting space bar... then click the "Replac All" button

Note: make sure you select the range you want this to occur on .

=SUBSTITUTE(A1," ","")

Hi

try

=SUBSTITUTE(A1,CHAR(32),"")

hi thanks guys

just a few things, which i should have also mentioned .. how to deal with the capital letters.. i'd like all words in a cell to be reduced to lower...

NOrie, with your solution, it works, but where you have two capital letters it doesn't work, only with changing the first word to lower case....

eg. The Cat

becomes: theCat

how to change all words, every character to lower?

Jindon, I've tried yorus and it batches it all together with no spaces, but

still doesn't work to reduce the capital...

The Cat becomes:

Norie, i could use find and replace, but the capital letters will still remain...

any help with collapsing space and reducing capital for all words in a cell?

change to

=LOWER(SUBSTITUTE(A1,CHAR(32),""))

Replies
1
Views
282
Replies
3
Views
340
Replies
3
Views
379
Replies
2
Views
492
Replies
5
Views
527

1,211,684
Messages
6,103,281
Members
447,853
Latest member
olddutch7

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back