Cozkincaud
New Member
- Joined
- Apr 18, 2019
- Messages
- 18
- Office Version
- 2021
- Platform
- Windows
HI,
I have a spreadsheet with a column of cells containing names (Christian name and surname). Sometimes there is no space between the Christian name and surname: e.g. "Richard King" appears as "RichardKing". In these cases I need to add a space between the Christian name and the surname. I imagine I could do this with a formula that:
1. finds the second capital letter in the text cell and inserts a space before it (my preferred choice)
2. finds the first string that starts with a lowercase letter that is followed by an uppercase letter and then inserts a space between them.
Unfortunately, I have not been able to find any Excel formulas that do any of the above.
(I could also remove the first capital letter; then find the first capital letter in the text string and place a space before it. I would place the first letters of the Christian names, which are all uppercase, in the cells of another column. I would then add them back to the cells holding the names once I had inserted the required space between the Christian name and the surname. This way I only have to search for the first uppercase letter. I'm assuming it is easier to find the first uppercase letter in a string cell than the nth one.
So I would be most grateful to any forum members who could devise or direct me to any Excel formula that would help me separate my joned Christian names and surnames
The string cells I am working with can contain any of the following types of joined Christian names and surnames:
1. Just one Christian name and surname not separated as in: JohnWilliams
2. Two names with one of the names not having the Christian name separated from the surname as in: RobertJones Thomas Smith
3. Two names with both of the names not having the Christian name separated from the surname as in: HenryPhillips AgnesWithers
4 Several names with some of the names not having the Christian name separated from the surname as in: William Putnam Tod Phillips Adamwalters Tim Thomas ArthurBrown
Note: 1. The first letter of the Christian name and the surname are always capitalized while the rest of the Christian name and surname are always in lower case.
2. The names themselves are always separated by a space.
I have a spreadsheet with a column of cells containing names (Christian name and surname). Sometimes there is no space between the Christian name and surname: e.g. "Richard King" appears as "RichardKing". In these cases I need to add a space between the Christian name and the surname. I imagine I could do this with a formula that:
1. finds the second capital letter in the text cell and inserts a space before it (my preferred choice)
2. finds the first string that starts with a lowercase letter that is followed by an uppercase letter and then inserts a space between them.
Unfortunately, I have not been able to find any Excel formulas that do any of the above.
(I could also remove the first capital letter; then find the first capital letter in the text string and place a space before it. I would place the first letters of the Christian names, which are all uppercase, in the cells of another column. I would then add them back to the cells holding the names once I had inserted the required space between the Christian name and the surname. This way I only have to search for the first uppercase letter. I'm assuming it is easier to find the first uppercase letter in a string cell than the nth one.
So I would be most grateful to any forum members who could devise or direct me to any Excel formula that would help me separate my joned Christian names and surnames
The string cells I am working with can contain any of the following types of joined Christian names and surnames:
1. Just one Christian name and surname not separated as in: JohnWilliams
2. Two names with one of the names not having the Christian name separated from the surname as in: RobertJones Thomas Smith
3. Two names with both of the names not having the Christian name separated from the surname as in: HenryPhillips AgnesWithers
4 Several names with some of the names not having the Christian name separated from the surname as in: William Putnam Tod Phillips Adamwalters Tim Thomas ArthurBrown
Note: 1. The first letter of the Christian name and the surname are always capitalized while the rest of the Christian name and surname are always in lower case.
2. The names themselves are always separated by a space.