Function issue.xlsm
Hello guys,
I have the following problem: A spreadsheet with one column of names like Ada Milea Beatrice GUINESS DAVIS. That is one person's name. Proper words are first name, CAPITAL words are last name. The lenght of the first name can very from one word to five words, the same for last name.
Assuming these names are in column A, I want in the B column the last name and in C column the first name.
A B C
Ada Milea Beatrice GUINESS DAVIS GUINESS DAVIS Ada Milea Beatrice
Jean-Christophe BASSON-LARBI BASSON-LARBI Jean-Christophe
....
What I have so far are two functions: One that removes proper words and leaves the capital words and one that removes the capitals and leaves the proper words. At first glance, that is all I need. But no, I came across an issue inside my RemoveCaps function. When the CAPS name has "-" included, the function does not work. I have attached a sample file with the codes and examples.
Can anyone help me out?
Thanks
Bookmarks