Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
iceberg27
 
Posts: n/a
Default String Extraction...


Hi I just stumbled across this web site as I am struggling with creating
a function to solve my problem....the problem is...

I want to separate a string into 3 different cells. Each cell should
not have more than 16 characters. For example:

String Example:
Used to have fun, but now I have to work.

If I separate this string using the standard LEFT and MID functions I
get: where / dictates a new cell.

Used to have fu/n, but now I hav/e to work.

I'd like to get this string to look like:

Used to have/fun, but now I/ have to work.

Can anyone help? I'd really appreciate it....

:)


--
iceberg27
------------------------------------------------------------------------
iceberg27's Profile: http://www.hightechtalks.com/m86
View this thread: http://www.hightechtalks.com/t2261719

  #2   Report Post  
RagDyer
 
Posts: n/a
Default

This doesn't exactly parse the way you asked, but I'm sure that you have to
make this work on more then just the single example you posted.

Try this and play with the number 30 in C1 to see if they might cover your
other possibilities.

String in A1.

In B1:
=LEFT(A1,FIND(" ",A1,13))

In C1:
=MID(A1,FIND(" ",A1,13)+1,FIND(" ",A1,30)-LEN(B1))

In D1:
=RIGHT(A1,LEN(A1)-(LEN(B1)+LEN(C1)))

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"iceberg27" wrote in
message ...

Hi I just stumbled across this web site as I am struggling with creating
a function to solve my problem....the problem is...

I want to separate a string into 3 different cells. Each cell should
not have more than 16 characters. For example:

String Example:
Used to have fun, but now I have to work.

If I separate this string using the standard LEFT and MID functions I
get: where / dictates a new cell.

Used to have fu/n, but now I hav/e to work.

I'd like to get this string to look like:

Used to have/fun, but now I/ have to work.

Can anyone help? I'd really appreciate it....

:)


--
iceberg27
------------------------------------------------------------------------
iceberg27's Profile: http://www.hightechtalks.com/m86
View this thread: http://www.hightechtalks.com/t2261719


  #3   Report Post  
iceberg27
 
Posts: n/a
Default


thanks a tonne....


--
iceberg27
------------------------------------------------------------------------
iceberg27's Profile: http://www.hightechtalks.com/m86
View this thread: http://www.hightechtalks.com/t2261719

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
Looking up a string of text within a string of text tobriant Excel Worksheet Functions 4 September 20th 05 06:59 PM
Auto convert an alphanumeric string (CIS9638S) to numbers only? Gary L Brown Excel Worksheet Functions 1 September 7th 05 01:17 AM
Inserting Filtered RC cell information into other worksheets Dennis Excel Discussion (Misc queries) 10 July 30th 05 01:54 AM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 07:17 AM
Finding Specific Text in a Text String Peter Gundrum Excel Worksheet Functions 9 April 10th 05 07:21 PM


All times are GMT +1. The time now is 10:12 AM.

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"