+ Reply to Thread
Results 1 to 3 of 3

Extracting letters from names

  1. #1
    Registered User
    Join Date
    12-23-2003
    Location
    Perth, Western Australia
    Posts
    27

    Extracting letters from names

    Hello,


    I am trying to devise a formula to extract the first character of someones first name and the first two characters from their surname.

    For example, if the name in any given cell was "Matthew Rogers" I would like to extract "MRO" from that.

    I have tried several different formaulas but so far have been unable to crack it.

    Any help you guys can offer would be appreciated.

    Thanks
    Chris

  2. #2
    Forum Contributor
    Join Date
    11-23-2005
    Location
    Perth, Australia
    Posts
    218

    Extracting letters from names

    Ok im not the best with formulas but give this a go!

    Assuming the name is in C10

    =LEFT(C10,1) & MID(C10,SEARCH(" ",C10,1)+1,2)

    or if you want it all in capitals:

    =UPPER(LEFT(C10,1) & MID(C10,SEARCH(" ",C10,1)+1,2))

  3. #3
    Registered User
    Join Date
    12-23-2003
    Location
    Perth, Western Australia
    Posts
    27
    Thank you

    That works well

+ 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