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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
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.
 
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
Makes sense everyone. I'll just manually adjust each of them. Thank you for your responses!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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