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

[TABLE="width: 1246"]
<tbody>[TR]
[TD="width: 843, bgcolor: transparent"]Result[/TD]
[TD="width: 819, bgcolor: transparent"]Data[/TD]
[/TR]
[TR]
[TD="bgcolor: yellow"]Mt Vernon Road[/TD]
[TD="bgcolor: transparent"]MtVernonRoad[/TD]
[/TR]
[TR]
[TD="bgcolor: yellow"]Wo1 Wo2 Wo3 Wo10[/TD]
[TD="bgcolor: transparent"]Wo1Wo2Wo3Wo10[/TD]
[/TR]
[TR]
[TD="bgcolor: yellow"]Mt Vernon Roadbecomes Mt Vernon Road[/TD]
[TD="bgcolor: transparent"]MtVernonRoadbecomesMtVernonRoad[/TD]
[/TR]
[TR]
[TD="bgcolor: yellow"]Mt Vernon Road becomes Mt Vernon Road[/TD]
[TD="bgcolor: transparent"]MtVernonRoad becomes Mt Vernon Road[/TD]
[/TR]
[TR]
[TD="bgcolor: yellow"]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 Wo27[/TD]
[TD="bgcolor: transparent"]Wo1Wo2Wo3Wo4Wo5Wo6Wo7Wo8Wo9Wo10Wo11Wo12Wo13Wo14Wo15Wo16Wo17Wo18Wo19Wo20Wo21Wo22Wo23Wo24Wo25Wo26Wo27[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]*******************[/TD]
[TD="bgcolor: transparent"]******************[/TD]
[/TR]
</tbody>[/TABLE]

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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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