Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default formula for separating parts of cells

thanks for explaining. The formula is exactly what i needed.

"Glenn" wrote:

For relatively short text strings...

=TRIM(MID(SUBSTITUTE(E5," ",REPT(" ",999)),999*4-998,999*2))

In the formula above, the "4" is first word you want, the "2" is the number of
words you want. So this would return "PGMR *Keep".


confused!! wrote:
that worked wonderfully.

One more time how do I extract the first and second word only?

"Ron Rosenfeld" wrote:

On Wed, 9 Sep 2009 05:42:22 -0700, confused!!
wrote:

currently in cell E5 = MACPAC VER 10 PGMR *Keep Profile* Clarksville

how do i extract the last word in this cell?
Try this:

=TRIM(RIGHT(SUBSTITUTE(E5," ",REPT(" ",99)),99))

--ron


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
COUNTIF in a range (and parts of cells) Phrank Excel Worksheet Functions 3 October 10th 06 10:51 AM
separating cells with text mikeyVo Excel Discussion (Misc queries) 1 August 3rd 06 06:59 PM
separating text from cells kikilein Excel Discussion (Misc queries) 16 July 16th 06 08:12 PM
Deleting Parts of Cells GOL Excel Discussion (Misc queries) 2 November 3rd 05 09:15 PM
is there an easy way to move parts of cells around jvoortman Excel Discussion (Misc queries) 0 January 21st 05 11:08 PM


All times are GMT +1. The time now is 11:02 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"