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 / New Users / December 2004

Tip: Looking for answers? Try searching our database.

I can't seem to use RTRIM or LTRIM in Excel 2002.  I want to trim.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pam - 30 Nov 2004 22:11 GMT
3 characters off the right side of a string and post the new results in a new
cell.  In other words, in cell A1 I have 123abc456.  In B1, I tried to put
rtrim(A1,3) so I could produce 123abc.

I remember doing this in earlier versions of Excel.  How can I do it in 2002?
bigwheel - 30 Nov 2004 23:00 GMT
> 3 characters off the right side of a string and post the new results in a new
> cell.  In other words, in cell A1 I have 123abc456.  In B1, I tried to put
> rtrim(A1,3) so I could produce 123abc.
>
> I remember doing this in earlier versions of Excel.  How can I do it in 2002?

TRIM removes all spaces from text except for single spaces between words.
LEFT(A1,6) will achieve your desired result.
Bernie Deitrick - 30 Nov 2004 23:54 GMT
Pam,

If your string length can vary then a more general solution is

=LEFT(A1,LEN(A1)-3)

HTH,
Bernie
MS Excel MVP

>3 characters off the right side of a string and post the new results in a
>new
[quoted text clipped - 3 lines]
> I remember doing this in earlier versions of Excel.  How can I do it in
> 2002?
Gord Dibben - 02 Dec 2004 00:08 GMT
Pam

LTRIM and RTRIM are functions used in VBA, not a worksheet function.  They(or
TRIM) are not the Function you want.

See other answers to your post.

Gord Dibben Excel MVP

>3 characters off the right side of a string and post the new results in a new
>cell.  In other words, in cell A1 I have 123abc456.  In B1, I tried to put
>rtrim(A1,3) so I could produce 123abc.
>
>I remember doing this in earlier versions of Excel.  How can I do it in 2002?
 
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.