Help, I'm pulling my hair out on this one.
I have inherited a list of name, but need to split out the Title, Initials and Surname into three separate fields. Here is a small sample
Mr A D Smith
A & D Smith
A & D Smith & Sons
A D & Mrs A Smith
Miss A D Smith
Dr A D Smith
Ms A D Smith
Dr A D Smith & Partners
A D Smith & B F Brown
In each case, surname should be Smith, Smith & Sons, Smith & Partners or Smith & B F Brown.
If the field contains a Title, but not at the start i.e. A D & Mrs A Smith, then the initial field should be blank and the title field should contain A D & Mrs A.
Finally, the initials should retain any spaces between characters.
I have a couple of VBA functions that perform well on the basic entries, but these do not handle surnames with spaces in them i.e. Smith & Sons and also put the initials without spaces.
Can anyone out there solve this?
Bookmarks