+ Reply to Thread
Results 1 to 3 of 3

how to get the middle name

  1. #1
    zomex
    Guest

    how to get the middle name

    how can i get the middle name of "fazain iqbal khan"... i can get the last
    name by =(a2,len(a2)-search("#", substitute(a2&" "," ","#",2)))... and first
    name=right(a2,find(" ",a2))

  2. #2
    Roger Govier
    Guest

    Re: how to get the middle name

    Hi

    Try
    =MID(A2,FIND(" ",A2)+1,FIND("#",SUBSTITUTE(A2,"
    ","#",2))-FIND("#",SUBSTITUTE(A2," ","#",1))-1)

    Regards

    Roger Govier


    zomex wrote:
    > how can i get the middle name of "fazain iqbal khan"... i can get the last
    > name by =(a2,len(a2)-search("#", substitute(a2&" "," ","#",2)))... and first
    > name=right(a2,find(" ",a2))


  3. #3
    Harlan Grove
    Guest

    Re: how to get the middle name

    Roger Govier wrote...
    >Try
    >=MID(A2,FIND(" ",A2)+1,FIND("#",SUBSTITUTE(A2,
    >" ","#",2))-FIND("#",SUBSTITUTE(A2," ","#",1))-1)

    ....

    Satisfies the OP's specs, but how would it handle George Herbert Walker
    Bush? Or Malcolm X? For names like those,

    =MID(A2,FIND(" ",A2)+1,FIND("#",SUBSTITUTE(A2,
    " ","#",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))-FIND(" ",A2))


+ 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