• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Excel Functions

KishorKK

Member
Hi Friends,

I would like to know the excel text funtions relted to Mid Function

For suppose names like "Bharti Vidya Devi"
i need "Vidya" mid letters every time i can't count if data is in hundreds so, any way to extract the mid letters.
 
For a 3 word string in a cell (i.e. words separated by space).

1st word:
=LEFT(A1,FIND(" ",A1)-1)

Middle word (only works for 2nd word)
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",100)),100,100))

Last word
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),100))
 
For a 3 word string in a cell (i.e. words separated by space).

1st word:
=LEFT(A1,FIND(" ",A1)-1)

Middle word (only works for 2nd word)
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",100)),100,100))

Last word
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),100))
Thanks very much.
 
Back
Top