RE: $$Excel-Macros$$ Extracting a word from the cell.......

2012-07-11 Thread Priti_Verma
Hi Muneer

 

To Extract 1st Word use this : =LEFT(A2,FIND( ,A2,1)-1)

To Extract Last word use this :  =MID(A2,FIND(*,SUBSTITUTE(A2,
,*,LEN(A2)-LEN(SUBSTITUTE(A2, ,,LEN(A2)-FIND(*,SUBSTITUTE(A2,
,*,LEN(A2)-LEN(SUBSTITUTE(A2, ,+1)

 

I think the better way is  to extract All word in different columns use Text
To Column Delimited by Space character , 

See the attached file.

 

Thanks 

Priti Verma

 

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of Mohammed Muneer
Sent: 11 July 2012 10:20
To: excel-macros@googlegroups.com
Subject: RE: $$Excel-Macros$$ Extracting a word from the cell...

 

Dear Rajan  Priti Verma,

 

Any one word, left / right / middle.

 

Thanx both of u, for the reply.

 

Like - Sweet, Sewage  Portable.

 

In order to filter my data easily.

 

 

Regards,

Muneer,

CC.

__

Which word you want to extract?

 

 

Regards

Rajan verma

+91 7838100659 [IM-Gtalk]



 

Hi, Muneer , I want  to ask u ,which word u want to extract , last or middle

 

Regards 

Priti verma

 

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of Mohammed Muneer
Sent: 10 July 2012 7:56
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

-- 
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

-- 
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

RE: $$Excel-Macros$$ Extracting a word from the cell.......

2012-07-11 Thread Mohammed Muneer
 

Good Morning,

Hi Priti,

 

Ya working fine!

 

Thanks to u,

 

Regards,

Muneer,

CC...

__

Hi Muneer

 

To Extract 1st Word use this : =LEFT(A2,FIND( ,A2,1)-1)

To Extract Last word use this :  =MID(A2,FIND(*,SUBSTITUTE(A2,
,*,LEN(A2)-LEN(SUBSTITUTE(A2,
,,LEN(A2)-FIND(*,SUBSTITUTE(A2,
,*,LEN(A2)-LEN(SUBSTITUTE(A2, ,+1)

 

I think the better way is  to extract All word in different columns use
Text To Column Delimited by Space character , 

See the attached file.

 

Thanks 

Priti Verma

 

 

From: excel-macros@googlegroups.com
[mailto:excel-macros@googlegroups.com] On Behalf Of Mohammed Muneer
Sent: 11 July 2012 10:20
To: excel-macros@googlegroups.com
Subject: RE: $$Excel-Macros$$ Extracting a word from the cell...

 

Dear Rajan  Priti Verma,

 

Any one word, left / right / middle.

 

Thanx both of u, for the reply.

 

Like - Sweet, Sewage  Portable.

 

In order to filter my data easily.

 

 

Regards,

Muneer,

CC...

__

Which word you want to extract?

 

 

Regards

Rajan verma

+91 7838100659 [IM-Gtalk]



 

Hi, Muneer , I want  to ask u ,which word u want to extract , last or
middle

 

Regards 

Priti verma

 

 

From: excel-macros@googlegroups.com
[mailto:excel-macros@googlegroups.com]
mailto:%5bmailto:excel-macros@googlegroups.com%5d  On Behalf Of
Mohammed Muneer
Sent: 10 July 2012 7:56
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

-- 
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

-- 
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

Re: $$Excel-Macros$$ Extracting a word from the cell.......

2012-07-10 Thread dguillett1
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 
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

-- 
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.comimage001.gif

RE: $$Excel-Macros$$ Extracting a word from the cell.......

2012-07-10 Thread Rajan_Verma


Which word you want to extract?

 

 

Regards

Rajan verma

+91 7838100659 [IM-Gtalk]

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of Mohammed Muneer
Sent: 10 July 2012 7:56
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

-- 
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.comimage001.gif

RE: $$Excel-Macros$$ Extracting a word from the cell.......

2012-07-10 Thread Mohammed Muneer
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

-- 
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

Re: $$Excel-Macros$$ Extracting a word from the cell.......

2012-07-10 Thread Deba Ranjan
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(C2F2)+2=LEN(G2),””,MID(G2,LEN(C2)+7,LEN(G2)-LEN(C2F2)-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.comwrote:

 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.qawrote:

  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 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

 --
 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


  --
 FORUM RULES (986+ members 

RE: $$Excel-Macros$$ Extracting a word from the cell.......

2012-07-10 Thread Mohammed Muneer
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(C2F2)+2=LEN(G2),,MID(G2,LEN(C2)+7,LEN(G2)-LEN(C2F2)
-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(C2F2)+2=LEN(G2),,MID(G2,LEN(C2)+7,LEN(G2)-LEN(C2F2)
-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