Camel case each word in continuous string

amorehouse

New Member
Joined
Nov 21, 2024
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
Hey there, just signed up first post. I have a list of over a hundred domains that I exported out of my registrar. The domains are all one continuous string with different words all lower case with an occasional initial cap on of the words. Is there VBA script or formula to use to make each word camel case? For example, if I have howtotrainyourdragon.com, would like the result to be HowToTrainYourDragon.com. Thanks!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi & welcome to MrExcel.
There is no way a formula, or VBA could do that.
Take this example
premiershiprugby.com
Should it be PremiershipRugby.com or maybe PremierShipRugby.com
 
Last edited:
Upvote 0
You'd have to provide an exhaust list of words for Excel to know that is a word from the continuous string.
You would definitely need something like this, but even then you run into the situation that Fluff brought up, where sometimes smaller words are contained in larger words.
How does Excel know what you want to happen in that case?

Basically, Excel isn't magic. It can do just about anything where you can clearly define all the rules and explain what to do in each case.
But if you cannot come up with that exhaustive list of rules (and clearly define them), then you really have no blueprint from which to build from.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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