Replace multiple spaces within a text with single Space

Sunil99580

New Member
Joined
Dec 21, 2017
Messages
10
Hey,

I have a query regarding Replace multiple spaces within a text with single Space.
I have text within a cell where I have multiple spaces between to characters, I want to replace those multiple spaces with one space only.
Does anyone have a formula for that??

Exp: before - I am Sam Peter.
After- I am Sam Peter.

Thanks,
Sunil
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Tried this?
Code:
=SUBSTITUTE(CELL,"  "," ")
 
Upvote 0
not Working
Let me elaborate by a problem with an exp:

Suppose in a cell I have a below text
I am Sunil and I am from Delhi

I want this text like this-
I am Sunil and I am from Delhi (Just want to remove multiple spaces between the characters within the text)
 
Upvote 0
Let me elaborate by a problem with an exp:

Suppose in a cell I have a below text
I am Sunil and I am from Delhi

I want this text like this-
I am Sunil and I am from Delhi (Just want to remove multiple spaces between the characters within the text)
I have random number spaces between to characters. somewhere it's 2 somewhere it's 3 somewhere 4 and so on.

Thanks
Sunil
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,933
Members
449,134
Latest member
NickWBA

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top