Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pam
 
Posts: n/a
Default I can't seem to use RTRIM or LTRIM in Excel 2002. I want to trim.

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?
  #2   Report Post  
bigwheel
 
Posts: n/a
Default

"Pam" wrote in message
...
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.


  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Pam,

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

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

HTH,
Bernie
MS Excel MVP

"Pam" wrote in message
...
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?



  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

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

On Tue, 30 Nov 2004 14:11:03 -0800, Pam wrote:

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?


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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
sharing/using/saving Excel 2002 files in Excel 2003 maze2009 Excel Discussion (Misc queries) 0 January 20th 05 07:27 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM
How do I update Excel 2000 macros to work in Excel 2002? BobPetrich Excel Discussion (Misc queries) 3 January 4th 05 04:06 PM
Macro in Excel 2002 to save a workbook to a FTP location Lloyd Excel Discussion (Misc queries) 0 December 21st 04 02:49 PM


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