+ Reply to Thread
Results 1 to 5 of 5

Another split text question

Hybrid View

  1. #1
    Registered User
    Join Date
    05-05-2005
    Posts
    5

    Another split text question

    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 Excel functions that perform well on the basic entries, but these do not handle surnames with spaces in them i.e. Smith & Sons.

    Can anyone out there solve this?

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Here's a solution (or at least a beginning to a solution)

    Hope it can help

    Ola Sandström
    Attached Files Attached Files
    Last edited by olasa; 05-05-2005 at 11:59 AM.

  3. #3
    Registered User
    Join Date
    05-05-2005
    Posts
    5

    Thanks

    That will just about work. Is there any way the formula can be modified to collect the extra data after the Smith & B F Brown?

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Sorry.
    Try now open the file now.

    Ola Sandström

  5. #5
    Registered User
    Join Date
    05-05-2005
    Posts
    5
    Ola

    Thanks very much for all your help. I am now in a position to load all this amended data into our legacy system. I managed to amend your formulae slightly as some of my data had 8 different cells after being parsed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1