+ Reply to Thread
Results 1 to 6 of 6

Two Middle Names in to first letter

  1. #1
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Red face Two Middle Names in to first letter

    Hi All,

    I've a list of lengthy names with two middle names eg: "Jenan Ibrahim Darwaish Al Darwaish" what i wanted is to convert in to "Jenan I D Al Darwaish"

    Tried some formulas but it didn't work.. appreciate your support..


    Thanks a lot.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Two Middle Names in to first letter

    Hi,

    This is clearly a much simplified example and doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Re: Two Middle Names in to first letter

    Thanks Richard,

    And as requested attached a sample sheet.. just wanted to trim middle names in to its first letters.

    cheers..
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Two Middle Names in to first letter

    Hi

    Hi,

    you could try

    =LEFT(A2,FIND(" ",A2))&LEFT(TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",100)),100,300)))&" "&LEFT(TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",100)),200,300)))&" "&LEFT(TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",100)),300,300)),50)


    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Two Middle Names in to first letter

    Do they ALL have two middle names??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Two Middle Names in to first letter

    As additional to Glenn question. How about two First name and two middle name and some times two family name.
    e.g
    Robert James San Jose Dela Cruz - Robert James S.J. Dela Cruz
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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. compare names by shuffling first name, middle name and last name
    By saravanan1981 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2016, 09:19 AM
  2. [SOLVED] Find a certain letter in the middle of a variable length text field
    By JET2011 in forum Excel General
    Replies: 3
    Last Post: 03-10-2015, 08:04 AM
  3. Removing Middle names and other junk from list
    By jonmmarg600 in forum Excel General
    Replies: 7
    Last Post: 03-08-2015, 09:30 PM
  4. [SOLVED] Create a Drop down that will list all names starting with initial letter of names.
    By blue leader in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 01-16-2014, 03:58 PM
  5. Split only the middle names
    By niladri20005 in forum Excel General
    Replies: 1
    Last Post: 06-13-2011, 07:43 AM
  6. extract all 3 letter names, 4 letter names
    By FirstDayExcel in forum Excel General
    Replies: 10
    Last Post: 01-16-2011, 11:23 AM
  7. Replies: 1
    Last Post: 05-09-2005, 07:44 PM

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