+ Reply to Thread
Results 1 to 4 of 4

Formula to extract First initial, Middle initial and Last name from cell

  1. #1
    Registered User
    Join Date
    03-05-2015
    Location
    Reading, PA
    MS-Off Ver
    Office 2007
    Posts
    2

    Formula to extract First initial, Middle initial and Last name from cell

    Hello,

    I need help creating a formula that extracts a first initial, middle initial and last name from a cell. For example, If A1 contains Jane M. Doe, I'd like to populate the new cell with jmdoe.

    So far I have this:
    Please Login or Register  to view this content.
    Which grabs the first initial and last name, but I'm having problems getting the middle initial.

    Thank you!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to extract First initial, Middle initial and Last name from cell

    Try it like this

    =PROPER(LEFT(A1)&SUBSTITUTE(TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99*2)),". ",""))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    03-05-2015
    Location
    Reading, PA
    MS-Off Ver
    Office 2007
    Posts
    2

    Re: Formula to extract First initial, Middle initial and Last name from cell

    Thank you! That worked perfectly!

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to extract First initial, Middle initial and Last name from cell

    You're welcome. Please don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 03-09-2012, 03:19 PM
  2. Extract 1st name & middle initial
    By mikeburg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2006, 06:50 PM
  3. Remove middle initial from "first name middle initial"
    By Justin F. in forum Excel General
    Replies: 15
    Last Post: 09-26-2005, 02:05 PM
  4. [SOLVED] First name, Middle Initial
    By wnfisba in forum Excel General
    Replies: 2
    Last Post: 09-21-2005, 10:05 AM
  5. Extract middle initial
    By rocket0612 in forum Excel General
    Replies: 4
    Last Post: 07-05-2005, 04:05 AM

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