Hello,
I have been searching through posts on splitting name fields and have been able to kind of put a few things together but nothing seems to fit all of my scenarios. I have a Name field that may or may not contain spaces and if it does the number of spaces may change. I want to take just the first word before a space and turn that into a First Name field, the rest of the data after the first space (if any) goes to the last name field. If there are no spaces then the data is just duplicated in both fields. Examples:
Data:
John Smith
John
J J Smith
Output Firstname:
John
John
J
Output Lastname:
Smith
John
J Smith
Thank you in advance for any advice on this.
I have been searching through posts on splitting name fields and have been able to kind of put a few things together but nothing seems to fit all of my scenarios. I have a Name field that may or may not contain spaces and if it does the number of spaces may change. I want to take just the first word before a space and turn that into a First Name field, the rest of the data after the first space (if any) goes to the last name field. If there are no spaces then the data is just duplicated in both fields. Examples:
Data:
John Smith
John
J J Smith
Output Firstname:
John
John
J
Output Lastname:
Smith
John
J Smith
Thank you in advance for any advice on this.