In Excel I would like to know how can I get out one word from inside field by using the condition of the first letters in that word?
Example
Give me the word starting by RAJ from the below,
FERNAS ,NAMAS (RAJHIA1L078002C5-2863) 21ST OLAYA
Thanks![]()
In Excel I would like to know how can I get out one word from inside field by using the condition of the first letters in that word?
Example
Give me the word starting by RAJ from the below,
FERNAS ,NAMAS (RAJHIA1L078002C5-2863) 21ST OLAYA
Thanks![]()
not sure exactly what bit you want, this can be adjusted to suit , with text in a1 put
in c1![]()
Please Login or Register to view this content.
type raj (upper or lower in b1)
You could also use SEARCH, which is not case sensitive:
=MID(A1, SEARCH(B1, A1), SEARCH(")", MID(A1, SEARCH(B1, A1), 255) ) - 1)
martindwilson and shg
I appreciate your support, but If the word at the beginning of the sentence or at the end (not in the middle)
What do I do??
Thanks
Last edited by migdad; 08-18-2008 at 02:01 AM.
Would you provide examples, please?
Dear shg,
Thanks for you support
Example #1
Give me the word starting by RAJ from the below,
RAJHIA1L078002C5-2863 21ST OLAYA FERNAS ,NAMAS
Example #2
Give me the word starting by RAJ from the below,
OLAYA FERNAS ,NAMAS RAJHIA1L078002C5
Try:
=MID(A1,SEARCH(B1,A1),SEARCH(" ",MID(A1&" ",SEARCH(B1,A1),255)))
Where A1 contains original string and B1 contains string to search for.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
It should also work with word at end of sentence...
I tested it with your example#2 and got the expected result.
Have you tried it? What error do you get?
Hi,
Just adding to NBVC example and looking at your very first example where its enclosed in brackets, you may need something like this
![]()
Please Login or Register to view this content.
oldchippy
-------------
![]()
![]()
Blessed are those who can give without remembering and take without forgetting
If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
Sorry error in my last formula, but this will work with both brackets and non-brackets
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks