Trying to add spaces between capitalized words with a formula - DoesAnyoneKnowHow?

funguy

New Member
Joined
Feb 7, 2012
Messages
24
Hi, I'm trying to find a formula to add spaces in between capitalized words

for example :

cell A1 = MtVernonRoad

trying to make it say..

Mt Vernon Road


...any ideas ? Thanks
 
Here is a example with 27 words:

Layout

ResultData
Mt Vernon RoadMtVernonRoad
Wo1 Wo2 Wo3 Wo10Wo1Wo2Wo3Wo10
Mt Vernon Roadbecomes Mt Vernon RoadMtVernonRoadbecomesMtVernonRoad
Mt Vernon Road becomes Mt Vernon RoadMtVernonRoad becomes Mt Vernon Road
Wo1 Wo2 Wo3 Wo4 Wo5 Wo6 Wo7 Wo8 Wo9 Wo10 Wo11 Wo12 Wo13 Wo14 Wo15 Wo16 Wo17 Wo18 Wo19 Wo20 Wo21 Wo22 Wo23 Wo24 Wo25 Wo26 Wo27Wo1Wo2Wo3Wo4Wo5Wo6Wo7Wo8Wo9Wo10Wo11Wo12Wo13Wo14Wo15Wo16Wo17Wo18Wo19Wo20Wo21Wo22Wo23Wo24Wo25Wo26Wo27
*************************************

<tbody>
</tbody>

Formulas

Code:
[COLOR=#0000ff]In A2 [/COLOR]and copy down.

=LOOKUP(1,1/LEN($C2:$AB2),$C2:$AB2)

[COLOR=#0000ff]In C2 [/COLOR]([COLOR=#ff0000]use Ctrl+Shift+Enter and not only Enter to enter the formula[/COLOR]) and [COLOR=#ff0000]copy to the right until AB2 [/COLOR]and then down.

=IFERROR(REPLACE(B2,LARGE(IF(CODE(MID(B2,ROW(INDIRECT("2:"&LEN(B2))),COLUMNS($C2:C2)))>64,
IF(CODE(MID(B2,ROW(INDIRECT("2:"&LEN(B2))),1))<91,ROW(INDIRECT("2:"&LEN(B2))))),COLUMNS($C2:C2)),0," "),"")

Markmzz
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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