#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Truncate words

Hi,
Does anyone know if there's a formula to not just count words, but to
trim the number of words in a cell to a certain number (say 5)? So, if
the previous sentence were entered, I could get back "does anyone know
if there's", and the rest would be truncated. Any help is greatly
appreciated!
-Jon R

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Truncate words

=LEFT(A1,FIND("~",SUBSTITUTE(A1," ","~",5))-1)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

wrote in message
ups.com...
Hi,
Does anyone know if there's a formula to not just count words, but to
trim the number of words in a cell to a certain number (say 5)? So, if
the previous sentence were entered, I could get back "does anyone know
if there's", and the rest would be truncated. Any help is greatly
appreciated!
-Jon R



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Truncate words

thanks Bob!

Reply
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
cannot get color in cells and words jbsl Setting up and Configuration of Excel 1 February 2nd 06 02:35 PM
In Excel, How do i add Words together. Tom B Excel Worksheet Functions 5 November 26th 05 01:40 AM
triadic combinations of words jayock02 Excel Worksheet Functions 1 June 19th 05 02:10 AM
Spell Checking - Special Words Not Picked Up by Excel Hans Emilio Excel Discussion (Misc queries) 4 May 25th 05 02:25 PM
Creating a Microsoft Words document from an existing Excel spreads ringo tan New Users to Excel 1 December 30th 04 09:01 PM


All times are GMT +1. The time now is 12:27 PM.

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

About Us

"It's about Microsoft Excel"