Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ToddFisk
 
Posts: n/a
Default Function for characters

I need to have a formula similar to:
=LEFT(E52,70)
but I need to make sure that it does not break up word.
IE...make a formula choose the word that is less than 70 characters long and
everything before it.

Then...I need the next cell below it to show the rest of the text string to
a point

Basically...I am trying to wrap text without wrapping text into one cell and
use multiple cells.

Is this possible
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Here's a UDF that will give you the first part. To get the second part
you'll have to use the RIGHT and LEN functions


Public Function Seventy(strText As String) As String
Dim strTextRev
Dim intSpace

Application.Volatile

strTextRev = StrReverse(Left(strText, 70))
intSpace = 71 - InStr(1, strTextRev, " ")
Seventy = Left(strText, intSpace)

End Function



"ToddFisk" wrote:

I need to have a formula similar to:
=LEFT(E52,70)
but I need to make sure that it does not break up word.
IE...make a formula choose the word that is less than 70 characters long and
everything before it.

Then...I need the next cell below it to show the rest of the text string to
a point

Basically...I am trying to wrap text without wrapping text into one cell and
use multiple cells.

Is this possible

  #3   Report Post  
ToddFisk
 
Posts: n/a
Default

I don't understand how to make that work - is this part of qbasic?

"Duke Carey" wrote:

Here's a UDF that will give you the first part. To get the second part
you'll have to use the RIGHT and LEN functions


Public Function Seventy(strText As String) As String
Dim strTextRev
Dim intSpace

Application.Volatile

strTextRev = StrReverse(Left(strText, 70))
intSpace = 71 - InStr(1, strTextRev, " ")
Seventy = Left(strText, intSpace)

End Function



"ToddFisk" wrote:

I need to have a formula similar to:
=LEFT(E52,70)
but I need to make sure that it does not break up word.
IE...make a formula choose the word that is less than 70 characters long and
everything before it.

Then...I need the next cell below it to show the rest of the text string to
a point

Basically...I am trying to wrap text without wrapping text into one cell and
use multiple cells.

Is this possible

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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


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

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"