Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 82
Default delete a word from end of a text

I have a column of texts. All of texts have the word "function" at end of
them.
I want to delete this word from end of all texts.
How can I do it.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 117
Default delete a word from end of a text

Hi gary, Mr. Rasoul has a tricky question....watch out for the advice if
there is a word "function" in the beginning or mid of the text in any
colum----result may be devastating for him? maybe u can suggest some basic
formula.

"Gary L Brown" wrote:

use FIND/REPLACE.
Find Function and Replace with
HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.


"Rasoul Khoshravan" wrote:

I have a column of texts. All of texts have the word "function" at end of
them.
I want to delete this word from end of all texts.
How can I do it.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 618
Default delete a word from end of a text

I'm not convinced that it does help, Pete, or Gary.

In your formula
right(A1,len(A1)-8))
will remove the first 8 letters from the text string, and give you the
remaining right-hand end of the string.

You are then using that string as the second argument for the left function,
which not surprisingly returns a #value error.

Perhaps you intended to suggest
=TRIM(LEFT(A1,LEN(A1)-8))
--
David Biddulph

"Pete_UK" wrote in message
ups.com...
Slight correction, Gary:

=trim(left(A1,right(A1,len(A1)-8)))

Hope this helps.

Pete

Gary L Brown wrote:
good point
- use a helper column
=trimleft(A1,right(A1,len(A1)-8))
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was
this
Post Helpfull to you?''.


"romelsb" wrote:

Hi gary, Mr. Rasoul has a tricky question....watch out for the advice
if
there is a word "function" in the beginning or mid of the text in any
colum----result may be devastating for him? maybe u can suggest some
basic
formula.

"Gary L Brown" wrote:

use FIND/REPLACE.
Find Function and Replace with
HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to
''Was this
Post Helpfull to you?''.


"Rasoul Khoshravan" wrote:

I have a column of texts. All of texts have the word "function" at
end of
them.
I want to delete this word from end of all texts.
How can I do it.





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default delete a word from end of a text

Yes, you're right David -I just spotted trimleft in Gary's posting and
thought that isn't a function!

Pete

David Biddulph wrote:
I'm not convinced that it does help, Pete, or Gary.

In your formula
right(A1,len(A1)-8))
will remove the first 8 letters from the text string, and give you the
remaining right-hand end of the string.

You are then using that string as the second argument for the left function,
which not surprisingly returns a #value error.

Perhaps you intended to suggest
=TRIM(LEFT(A1,LEN(A1)-8))
--
David Biddulph

"Pete_UK" wrote in message
ups.com...
Slight correction, Gary:

=trim(left(A1,right(A1,len(A1)-8)))

Hope this helps.

Pete

Gary L Brown wrote:
good point
- use a helper column
=trimleft(A1,right(A1,len(A1)-8))
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was
this
Post Helpfull to you?''.


"romelsb" wrote:

Hi gary, Mr. Rasoul has a tricky question....watch out for the advice
if
there is a word "function" in the beginning or mid of the text in any
colum----result may be devastating for him? maybe u can suggest some
basic
formula.

"Gary L Brown" wrote:

use FIND/REPLACE.
Find Function and Replace with
HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to
''Was this
Post Helpfull to you?''.


"Rasoul Khoshravan" wrote:

I have a column of texts. All of texts have the word "function" at
end of
them.
I want to delete this word from end of all texts.
How can I do it.




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default delete a word from end of a text

=TRIM(IF(RIGHT(A2,8)="function",SUBSTITUTE(A2,RIGH T(A2,8),""),A2))

Rasoul Khoshravan wrote:
I have a column of texts. All of texts have the word "function" at end
of them.
I want to delete this word from end of all texts.
How can I do it.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default delete a word from end of a text

If you only want to remove "function" from the end of a cell...

Try this:

With
A1: (any value or blank)
B1: =TRIM(IF(COUNTIF(A1,"*function"),LEFT(A1,LEN(A1)-8),A1))

Example:
Using A1: This function is my function
The formula returns: This function is my

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Rasoul Khoshravan" wrote:

I have a column of texts. All of texts have the word "function" at end of
them.
I want to delete this word from end of all texts.
How can I do it.


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 117
Default delete a word from end of a text

Hi again Rasoul....pls check up the best reply for you..so we all learn over
this thread....tks all..

"Ron Coderre" wrote:

If you only want to remove "function" from the end of a cell...

Try this:

With
A1: (any value or blank)
B1: =TRIM(IF(COUNTIF(A1,"*function"),LEFT(A1,LEN(A1)-8),A1))

Example:
Using A1: This function is my function
The formula returns: This function is my

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Rasoul Khoshravan" wrote:

I have a column of texts. All of texts have the word "function" at end of
them.
I want to delete this word from end of all texts.
How can I do it.




  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 82
Default delete a word from end of a text

Thanks for replies.

"Pete_UK" wrote in message
oups.com...
Yes, you're right David -I just spotted trimleft in Gary's posting and
thought that isn't a function!

Pete

David Biddulph wrote:
I'm not convinced that it does help, Pete, or Gary.

In your formula
right(A1,len(A1)-8))
will remove the first 8 letters from the text string, and give you the
remaining right-hand end of the string.

You are then using that string as the second argument for the left
function,
which not surprisingly returns a #value error.

Perhaps you intended to suggest
=TRIM(LEFT(A1,LEN(A1)-8))
--
David Biddulph

"Pete_UK" wrote in message
ups.com...
Slight correction, Gary:

=trim(left(A1,right(A1,len(A1)-8)))

Hope this helps.

Pete

Gary L Brown wrote:
good point
- use a helper column
=trimleft(A1,right(A1,len(A1)-8))
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to
''Was
this
Post Helpfull to you?''.


"romelsb" wrote:

Hi gary, Mr. Rasoul has a tricky question....watch out for the
advice
if
there is a word "function" in the beginning or mid of the text in
any
colum----result may be devastating for him? maybe u can suggest some
basic
formula.

"Gary L Brown" wrote:

use FIND/REPLACE.
Find Function and Replace with
HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to
''Was this
Post Helpfull to you?''.


"Rasoul Khoshravan" wrote:

I have a column of texts. All of texts have the word "function"
at
end of
them.
I want to delete this word from end of all texts.
How can I do it.





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
How to Transfer data from Text Form Fields in MS Word into Excel? CWillis Excel Discussion (Misc queries) 1 July 18th 06 06:35 AM
How to export text from Excel to Word Rock New Users to Excel 2 May 14th 06 12:32 AM
moving text from a word document to excel gregp22 New Users to Excel 2 March 21st 06 06:18 PM
Why am I getting XXX error in text cell with word wrap turned on? HMF Excel Discussion (Misc queries) 2 March 16th 06 12:44 AM
Copying text to Word doc janeite2001 Excel Discussion (Misc queries) 1 August 12th 05 07:15 PM


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