LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Extract the n word of a sentence in a cell


Hello everyone!

Your last msgs really helped me out. But now here is a new trouble fo
all the VBA addicts outhere ! not a big challenge, I guess, but stil
for me, it is. I've tried to search through the forum, but I didn'
find anything regarding my needs:

here is what's inside cell B14:
" Franchisor is a privately-held company with 650 employee(s); 2
employee(s) in franchise department"

Thanks to your previous help, I've been able to extract by myself th
numbers 650 and 20, and put'em respectively in E14 and D14 by using i
my macro:

Range("e14").Value = Val(Right(Range("b14").Value, 38))
Range("d14").Value = Val(Right(Range("b14").Value, 55))

However, I would like now to have in C14 the "word" which is in 4t
position of the sentence, here it is "privately-held".
I've tried with the same kind of formula (Val(Right ... etc) but I jus
got 0 and not the word itself _<

How can I get out the 4th word of this cell? (in some cases, it won'
be privately-held, but independant etc etc: I just know that th
sentence will always be like "Franchisor is a ......... company" ?

Thanks for your future help!
VBA is Alive :-

--
crazy_vb
-----------------------------------------------------------------------
crazy_vba's Profile: http://www.excelforum.com/member.php...fo&userid=3367
View this thread: http://www.excelforum.com/showthread.php?threadid=53522

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to copy the first word or two words from a cell containing a complete sentence to another cell jonny Excel Discussion (Misc queries) 7 May 19th 23 03:43 AM
Find a word in a sentence Chicago2Paris Excel Worksheet Functions 10 October 29th 09 06:29 PM
Link a cell to a word in a sentence Brenelder Excel Discussion (Misc queries) 1 March 14th 08 08:36 PM
Extract all letters from a cell sentence michaelxhermes Excel Worksheet Functions 5 December 14th 07 06:59 PM
Extract the first word from a cell? Adam Cole Excel Discussion (Misc queries) 6 December 22nd 04 07:01 PM


All times are GMT +1. The time now is 05:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"