fredrerik84
Active Member
- Joined
- Feb 26, 2017
- Messages
- 383
Hi Excel community.
I need a little more help cleaning some strings.
Basically I have a variable called Ateam which gets its info from a webpage.
Originally the text was in all uppercase, I have made some changes so that every word gets capital letter like this:
Ateam = "Ayr Utd" or Ateam = "Utc"
However I need a little help compiling a code so that is the first word has either 2 or 3 letters its should capitalize all words in first words. So the desired reults get ruturned like this:
Ateam "AYR Utd" / "UTC"
and if first word exceeds 3 words like hull city this code should do nothing ,
Ateam = "Hull City"
Hope some brilliant excel wizard could help a little
I need a little more help cleaning some strings.
Basically I have a variable called Ateam which gets its info from a webpage.
Originally the text was in all uppercase, I have made some changes so that every word gets capital letter like this:
Ateam = "Ayr Utd" or Ateam = "Utc"
However I need a little help compiling a code so that is the first word has either 2 or 3 letters its should capitalize all words in first words. So the desired reults get ruturned like this:
Ateam "AYR Utd" / "UTC"
and if first word exceeds 3 words like hull city this code should do nothing ,
Ateam = "Hull City"
Hope some brilliant excel wizard could help a little