Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / October 2006

Tip: Looking for answers? Try searching our database.

delete a word from end of a text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rasoul Khoshravan - 19 Oct 2006 10:53 GMT
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.
Gary L Brown - 19 Oct 2006 21:09 GMT
use FIND/REPLACE.
Find Function and Replace with
HTH,
Signature

Gary Brown
gary_brown@ge_NOSPAM.com
If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.

> 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.
romelsb - 19 Oct 2006 22:03 GMT
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.

> use FIND/REPLACE.
> Find Function and Replace with
[quoted text clipped - 4 lines]
> > I want to delete this word from end of all texts.
> > How can I do it.
Gary L Brown - 19 Oct 2006 22:09 GMT
good point
- use a helper column
=trimleft(A1,right(A1,len(A1)-8))
Signature

Gary Brown
gary_brown@ge_NOSPAM.com
If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.

> 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
[quoted text clipped - 9 lines]
> > > I want to delete this word from end of all texts.
> > > How can I do it.
Pete_UK - 20 Oct 2006 01:31 GMT
Slight correction, Gary:

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

Hope this helps.

Pete

> good point
> - use a helper column
[quoted text clipped - 23 lines]
> > > > I want to delete this word from end of all texts.
> > > > How can I do it.
David Biddulph - 20 Oct 2006 08:09 GMT
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))
Signature

David Biddulph

> Slight correction, Gary:
>
[quoted text clipped - 36 lines]
>> > > > I want to delete this word from end of all texts.
>> > > > How can I do it.
Pete_UK - 20 Oct 2006 09:13 GMT
Yes, you're right David -I just spotted trimleft in Gary's posting and
thought that isn't a function!

Pete

> I'm not convinced that it does help, Pete, or Gary.
>
[quoted text clipped - 51 lines]
> >> > > > I want to delete this word from end of all texts.
> >> > > > How can I do it.
Rasoul Khoshravan - 25 Oct 2006 18:34 GMT
Thanks for replies.

> Yes, you're right David -I just spotted trimleft in Gary's posting and
> thought that isn't a function!
[quoted text clipped - 61 lines]
>> >> > > > I want to delete this word from end of all texts.
>> >> > > > How can I do it.
Aladin Akyurek - 21 Oct 2006 11:08 GMT
=TRIM(IF(RIGHT(A2,8)="function",SUBSTITUTE(A2,RIGHT(A2,8),""),A2))

> 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.
Ron Coderre - 21 Oct 2006 13:54 GMT
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

> 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.
romelsb - 22 Oct 2006 00:17 GMT
Hi again Rasoul....pls check up the best reply for you..so we all learn over
this thread....tks all..

> If you only want to remove "function" from the end of a cell...
>
[quoted text clipped - 19 lines]
> > I want to delete this word from end of all texts.
> > How can I do it.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.