Wow! Superb here r the efforts.
Regards, Muneer, CC.... Muneer Ji, PFA......... For First Word:- =IFERROR(LEFT(G2,FIND(" ",G2,1)),"G2") For Second:- =IFERROR(LEFT(RIGHT(G2,LEN(G2)-FIND(" ",G2,1)),FIND(" ",RIGHT(G2,LEN(G2)-FIND(" ",G2,1)))),"") For third:- =IFERROR(IF(LEN(C2&F2)+2>=LEN(G2),"",MID(G2,LEN(C2)+7,LEN(G2)-LEN(C2&F2) -7)),"") For Forth:- =IFERROR(RIGHT(G2,LEN(G2)-FIND("#",SUBSTITUTE(G2," ","#",LEN(G2)-LEN(SUBSTITUTE(G2," ",""))))),"G2") Thanks & Regards, Deba Ranjan P On Wed, Jul 11, 2012 at 10:21 AM, Deba Ranjan <drdeva...@gmail.com> wrote: Hi Shai, For First Word:- =IFERROR(LEFT(G2,FIND(" ",G2,1)),"G2") For Second:- =IFERROR(LEFT(RIGHT(G2,LEN(G2)-FIND(" ",G2,1)),FIND(" ",RIGHT(G2,LEN(G2)-FIND(" ",G2,1)))),"") For third:- =IFERROR(IF(LEN(C2&F2)+2>=LEN(G2),"",MID(G2,LEN(C2)+7,LEN(G2)-LEN(C2&F2) -7)),"") For Forth:- =IFERROR(RIGHT(G2,LEN(G2)-FIND("#",SUBSTITUTE(G2," ","#",LEN(G2)-LEN(SUBSTITUTE(G2," ",""))))),"G2") Thanks & Regards, Deba Ranjan P On Wed, Jul 11, 2012 at 10:02 AM, Abdulgani Shaikh <itpabdulg...@gmail.com> wrote: This is really great ! Suppose I want extract 2nd or 3rd or 4th word, then ? Regards On Wed, Jul 11, 2012 at 9:39 AM, Mohammed Muneer <mmun...@ccc.com.qa> wrote: Dear Don, Superb & Innovative. Keep it up! Both code and formula good. "Experience is the mother of Knowledge" Whenever I receive a help from u people, in a fraction of seconds I feel myself why I can't do this magic by myself. But I keep trying to do some until I get an idea. But I never felt unhappy on my failure. Pray for me, I will be one among u who r active hands for these group members. Lots of thanks....... Regards, Muneer, CC.... ____________________________________ If you are saying you want the first word in a string then =LEFT(D10,FIND(" ",D10)) or Sub fw() For i = 2 To Cells(Rows.Count, 2).End(xlUp).Row Cells(i, "c").Value = Left(Cells(i, "d"), InStr(1, Cells(i, "d"), " ")) Next i End Sub Don Guillett Microsoft Excel Developer SalesAid Software dguille...@gmail.com From: Mohammed Muneer <mailto:mmun...@ccc.com.qa> Sent: Tuesday, July 10, 2012 9:25 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Extracting a word from the cell....... Hi! Everybody, Dear Group, I want to extract a word from the sentence in cell beside. Plz, find the attachment......... Regards, Muneer, CC.... -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------ ------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com <mailto:excel-macros%2bunsubscr...@googlegroups.com> -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------ ------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com <mailto:excel-macros%2bunsubscr...@googlegroups.com> -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------ ------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com <mailto:excel-macros%2bunsubscr...@googlegroups.com> -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------ ------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com <mailto:excel-macros%2bunsubscr...@googlegroups.com> -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------ ------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com