Mr Popodopolous
New Member
- Joined
- Oct 31, 2019
- Messages
- 5
I have a list where I want to put it to "Last Name, First Name" but if they have multiple words in their last name, I only want the last part of their last name to ensure that I won't have any errors when I'm performing a check as some reports don't put the full last name.
at the moment I have data like this:
[TABLE="width: 162"]
<tbody>[TR]
[TD="width: 162"]van de Graaf, Generator
O'the Morning, Topp[/TD]
[/TR]
</tbody>[/TABLE]
Flintstone, Wilma
I want to be able to have it so it will concatenate it to:
Graaf, Generator
Morning, Topp
Flintstone, Wilma
How can I do this, I'm thinking I have to do something where I have
FIND(",",A10)-FIND(",",SUBSTITUTE(A10," ",""))
which counts the number of spaces before the comma, but how do I use the information from that to get the number of characters after that final space
at the moment I have data like this:
[TABLE="width: 162"]
<tbody>[TR]
[TD="width: 162"]van de Graaf, Generator
O'the Morning, Topp[/TD]
[/TR]
</tbody>[/TABLE]
Flintstone, Wilma
I want to be able to have it so it will concatenate it to:
Graaf, Generator
Morning, Topp
Flintstone, Wilma
How can I do this, I'm thinking I have to do something where I have
FIND(",",A10)-FIND(",",SUBSTITUTE(A10," ",""))
which counts the number of spaces before the comma, but how do I use the information from that to get the number of characters after that final space