ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Any formula to shorten sentence to a specific length (https://www.excelbanter.com/excel-worksheet-functions/21947-any-formula-shorten-sentence-specific-length.html)

supercloudbug

Any formula to shorten sentence to a specific length
 
Hi,

Any one can teach me if there's any formula, macro or add-in to shorten
sentences to a specific length?

Rowan

I probably need more information to determine exactly what you requre but
have a look at this anyway.

If you have the text "This is my sentence" in cell A1 then
=Left(A1,10) will return "This is my".

Hope this helps
Rowan

"supercloudbug" wrote:

Hi,

Any one can teach me if there's any formula, macro or add-in to shorten
sentences to a specific length?


Niek Otten

=LEFT(A1,20)
Gives you the first 20 characters of A1.

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"supercloudbug" wrote in message
...
Hi,

Any one can teach me if there's any formula, macro or add-in to shorten
sentences to a specific length?




supercloudbug

Hi Rowan,

Thanks for your help.
Do u think its possible to end the shortened sentence with a "-"?

"Rowan" wrote:

I probably need more information to determine exactly what you requre but
have a look at this anyway.

If you have the text "This is my sentence" in cell A1 then
=Left(A1,10) will return "This is my".

Hope this helps
Rowan

"supercloudbug" wrote:

Hi,

Any one can teach me if there's any formula, macro or add-in to shorten
sentences to a specific length?


Duke Carey

simply append

&" - "

to the end of Roowan's formula



"supercloudbug" wrote:

Hi Rowan,

Thanks for your help.
Do u think its possible to end the shortened sentence with a "-"?

"Rowan" wrote:

I probably need more information to determine exactly what you requre but
have a look at this anyway.

If you have the text "This is my sentence" in cell A1 then
=Left(A1,10) will return "This is my".

Hope this helps
Rowan

"supercloudbug" wrote:

Hi,

Any one can teach me if there's any formula, macro or add-in to shorten
sentences to a specific length?


Ron Rosenfeld

On Thu, 14 Apr 2005 03:11:02 -0700, "supercloudbug"
wrote:

Hi Rowan,

Thanks for your help.
Do u think its possible to end the shortened sentence with a "-"?


=LEFT(A1,20)&IF(LEN(A1)20,"-","")




--ron


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com